2020-05-14 16:43:20 +01:00
|
|
|
- name: Create private directory
|
|
|
|
file:
|
2020-05-14 16:35:24 +01:00
|
|
|
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:
|
2020-05-14 16:35:24 +01:00
|
|
|
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:
|
2020-05-16 22:19:53 +01:00
|
|
|
- {section: Browser, option: Enabled, value: "true"}
|
|
|
|
- {section: Browser, option: AlwaysAllowAccess, value: "true"}
|
|
|
|
- {section: Browser, option: AlwaysAllowUpdate, value: "true"}
|
2020-05-14 16:43:20 +01:00
|
|
|
- {section: General, option: AutoSaveAfterEveryChange, value: "true"}
|
2020-05-16 22:19:53 +01:00
|
|
|
- {section: General, option: LastOpenedDatabases, value: "{{ home }}/Private/Keepass/Password Safe.kdbx"}
|
|
|
|
- {section: General, option: LastActiveDatabase, value: "{{ home }}/Private/Keepass/Password Safe.kdbx"}
|
2020-05-14 16:43:20 +01:00
|
|
|
- {section: General, option: SingleInstance, value: "true"}
|
2020-05-16 22:19:53 +01:00
|
|
|
- {section: generator, option: Length, value: 100}
|
2020-05-14 16:56:33 +01:00
|
|
|
- {section: GUI, option: AdvancedSettings, value: "true"}
|
2020-05-14 16:43:20 +01:00
|
|
|
- {section: GUI, option: ShowTrayIcon, value: "true"}
|
|
|
|
- {section: GUI, option: MinimizeToTray, value: "true"}
|
|
|
|
- {section: GUI, option: MinimizeOnStartup, value: "true"}
|
2020-05-14 16:56:33 +01:00
|
|
|
- {section: GUI, option: MinimizeOnClose, value: "true"}
|
2020-05-16 22:19:53 +01:00
|
|
|
- {section: Http, option: Enabled, value: "false"}
|
2020-05-14 16:43:20 +01:00
|
|
|
- {section: security, option: lockdatabasescreenlock, value: "true"}
|
2020-05-16 22:19:53 +01:00
|
|
|
- {section: security, option: clearclipboardtimeout, value: 60}
|