dotfiles/tasks/keepassxc.yml

40 lines
1.4 KiB
YAML
Raw Normal View History

2020-05-14 16:43:20 +01:00
- name: Create private directory
file:
state: directory
recurse: true
path: "{{ home }}/Private"
owner: "{{ user }}"
mode: 0700
2020-05-14 16:43:20 +01:00
- name: Create KeepassXC config directory
file:
state: directory
recurse: true
path: "{{ home }}/.config/keepassxc"
owner: "{{ user }}"
mode: 0700
- name: Set KeepassXC configuration
ini_file:
path: "{{ home }}/.config/keepassxc/keepassxc.ini"
mode: 0700
owner: "{{ user }}"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
2020-05-14 16:40:36 +01:00
loop_control:
label: "{{ item.section }}.{{ item.option }}={{ item.value }}"
2020-05-14 16:43:20 +01:00
loop:
- {section: General, option: SSHAgent, value: "true"}
- {section: General, option: AutoSaveAfterEveryChange, value: "true"}
- {section: General, option: LastOpenedDatabases, value: "{{ home }}/Private/KeePass/Password Safe.kdbx"}
- {section: General, option: SingleInstance, value: "true"}
- {section: Http, option: Enabled, value: "false"}
- {section: GUI, option: ShowTrayIcon, value: "true"}
- {section: GUI, option: MinimizeToTray, value: "true"}
- {section: GUI, option: MinimizeOnStartup, value: "true"}
- {section: security, option: lockdatabasescreenlock, value: "true"}
- {section: Browser, option: Enabled, value: "true"}
- {section: Browser, option: AlwaysAllowAccess, value: "true"}
- {section: Browser, option: AlwaysAllowUpdate, value: "true"}