Fix linting issues

This commit is contained in:
Jake Howard 2020-05-14 16:43:20 +01:00
parent 286b0a4c6b
commit e39272e5b7
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,32 +1,19 @@
- file: - name: Create private directory
file:
state: directory state: directory
recurse: true recurse: true
path: "{{ home }}/Private" path: "{{ home }}/Private"
owner: "{{ user }}" owner: "{{ user }}"
mode: 0700 mode: 0700
- file: - name: Create KeepassXC config directory
file:
state: directory state: directory
recurse: true recurse: true
path: "{{ home }}/.config/keepassxc" path: "{{ home }}/.config/keepassxc"
owner: "{{ user }}" owner: "{{ user }}"
mode: 0700 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 - name: Set KeepassXC configuration
ini_file: ini_file:
path: "{{ home }}/.config/keepassxc/keepassxc.ini" path: "{{ home }}/.config/keepassxc/keepassxc.ini"
@ -35,6 +22,18 @@
section: "{{ item.section }}" section: "{{ item.section }}"
option: "{{ item.option }}" option: "{{ item.option }}"
value: "{{ item.value }}" value: "{{ item.value }}"
loop: "{{ keepassxc_config }}"
loop_control: loop_control:
label: "{{ item.section }}.{{ item.option }}={{ item.value }}" label: "{{ item.section }}.{{ item.option }}={{ item.value }}"
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"}