add ssh-agent service
This commit is contained in:
parent
61b7b05944
commit
3b60b2e09c
10 changed files with 61 additions and 18 deletions
36
roles/keepassxc/files/keepassxc.ini
Normal file
36
roles/keepassxc/files/keepassxc.ini
Normal file
|
@ -0,0 +1,36 @@
|
|||
[General]
|
||||
ConfigVersion=1
|
||||
|
||||
[Browser]
|
||||
CustomProxyLocation=
|
||||
Enabled=true
|
||||
|
||||
[FdoSecrets]
|
||||
Enabled=false
|
||||
|
||||
[GUI]
|
||||
MinimizeOnClose=true
|
||||
MinimizeOnStartup=true
|
||||
ShowTrayIcon=true
|
||||
TrayIconAppearance=colorful
|
||||
|
||||
[KeeShare]
|
||||
Active="<?xml version=\"1.0\"?>\n<KeeShare xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <Active/>\n</KeeShare>\n"
|
||||
Foreign="<?xml version=\"1.0\"?>\n<KeeShare xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <Foreign/>\n</KeeShare>\n"
|
||||
Own="<?xml version=\"1.0\"?>\n<KeeShare xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <PrivateKey/>\n <PublicKey/>\n</KeeShare>\n"
|
||||
QuietSuccess=true
|
||||
|
||||
[PasswordGenerator]
|
||||
AdditionalChars=
|
||||
AdvancedMode=false
|
||||
ExcludedChars=
|
||||
Length=40
|
||||
SpecialChars=false
|
||||
UpperCase=true
|
||||
|
||||
[SSHAgent]
|
||||
Enabled=true
|
||||
|
||||
[Security]
|
||||
ClearClipboardTimeout=30
|
||||
ClearSearch=false
|
22
roles/keepassxc/tasks/main.yml
Normal file
22
roles/keepassxc/tasks/main.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
- name: Install Keepassxc
|
||||
become: true
|
||||
apt:
|
||||
name: keepassxc
|
||||
- name: Create keepassxc config directory
|
||||
file:
|
||||
path: ~/.config/keepassxc
|
||||
state: directory
|
||||
- name: Copy keepassxc.ini
|
||||
copy:
|
||||
src: "{{ role_path }}/files/keepassxc.ini"
|
||||
dest: ~/.config/keepassxc/keepassxc.ini
|
||||
- name: Create cache directory
|
||||
file:
|
||||
path: ~/.cache/keepassxc
|
||||
state: directory
|
||||
recurse: true
|
||||
- name: Set SSH_AUTH_SOCK override
|
||||
ini_file:
|
||||
path: ~/.cache/keepassxc/keepassxc.ini
|
||||
section: SSHAgent
|
||||
value: "{{ ssh_agent_socket }}"
|
Reference in a new issue