35 lines
892 B
YAML
35 lines
892 B
YAML
- name: Uninstall gnome-keyring
|
|
become: true
|
|
apt:
|
|
name: gnome-keyring
|
|
state: absent
|
|
- name: Install Keepassxc
|
|
become: true
|
|
apt:
|
|
pkg:
|
|
- keepassxc
|
|
- libsecret-tools
|
|
- 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
|
|
option: AuthSockOverride
|
|
value: "{{ ssh_agent_socket }}"
|
|
no_extra_spaces: true
|
|
- name: Autostart keepassxc
|
|
copy:
|
|
src: "{{ role_path }}/files/org.keepassxc.KeePassXC.desktop"
|
|
dest: ~/.config/autostart/org.keepassxc.KeePassXC.desktop
|