Configure KeepassXC settings

This commit is contained in:
Jake Howard 2018-10-08 20:08:23 +01:00
parent 9fcde64823
commit 1c239a594b
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 33 additions and 1 deletions

View file

@ -17,6 +17,7 @@
- import_tasks: tasks/shell.yml - import_tasks: tasks/shell.yml
- import_tasks: tasks/fonts.yml - import_tasks: tasks/fonts.yml
- import_tasks: tasks/autostart.yml - import_tasks: tasks/autostart.yml
- import_tasks: tasks/keepassxc.yml
- import_tasks: tasks/dabapps.yml - import_tasks: tasks/dabapps.yml
when: ansible_fqdn == "TOO-Work" when: ansible_fqdn == "TOO-Work"

31
tasks/keepassxc.yml Normal file
View file

@ -0,0 +1,31 @@
- file:
state: directory
recurse: true
path: "{{ home }}/Private"
owner: "{{ user }}"
mode: 0700
- set_fact:
keepassxc_config:
- {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"}
- name: Set KeepassXC configuration
ini_file:
path: "{{ home }}/.config/keepassxc/keepassxc.ini"
mode: 0600
owner: "{{ user }}"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items: "{{ keepassxc_config }}"

View file

@ -3,4 +3,4 @@ extends: default
rules: rules:
document-start: "disable" document-start: "disable"
line-length: line-length:
max: 100 max: 150