automatrop: Run ansible-lint --fix

This commit is contained in:
Geoffrey Frogeye 2023-11-02 19:51:54 +01:00
parent d60f5aaa9d
commit 9c3dcba2e5
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
18 changed files with 342 additions and 333 deletions

View file

@ -1,22 +1,23 @@
---
- name: Create GnuPG directory
file:
ansible.builtin.file:
path: "{{ gnupghome }}"
state: directory
mode: "u=rwx"
mode: u=rwx
- name: Create GnuPG configuration files
file:
ansible.builtin.file:
path: "{{ gnupghome }}/{{ item }}"
state: file
mode: "u=rw,g=r,o=r"
mode: u=rw,g=r,o=r
loop:
- gpg-agent.conf
- gpg.conf
- name: Configure GnuPG
lineinfile:
ansible.builtin.lineinfile:
path: "{{ gnupghome }}/gpg.conf"
regex: "^#?\\s*{{ item.key }}\\s"
regex: ^#?\s*{{ item.key }}\s
line: "{{ item.key }}{% if item.value is defined %} {{ item.value }}{% endif %}"
loop:
# Remove fluff
@ -25,7 +26,7 @@
- key: no-comments
# Output format that I prefer
- key: keyid-format
value: 0xlong
value: "0xlong"
# Show fingerprints
- key: with-fingerprint
# Make sure to show if key is invalid

View file

@ -1 +1,2 @@
---
gnupghome: "{{ ansible_user_dir }}/.config/gnupg"