This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/keepassxc/tasks/main.yml

31 lines
714 B
YAML
Raw Normal View History

- name: Uninstall gnome-keyring
apt:
name: gnome-keyring
state: absent
2023-02-22 21:04:05 +00:00
- name: Install Keepassxc
become: true
apt:
pkg:
- keepassxc
- libsecret-tools
2023-02-22 21:04:05 +00:00
- 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
2023-02-22 21:09:10 +00:00
option: AuthSockOverride
2023-02-22 21:04:05 +00:00
value: "{{ ssh_agent_socket }}"
no_extra_spaces: true