automatrop: Run ansible-lint --fix
This commit is contained in:
parent
d60f5aaa9d
commit
9c3dcba2e5
18 changed files with 342 additions and 333 deletions
|
@ -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
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
---
|
||||
gnupghome: "{{ ansible_user_dir }}/.config/gnupg"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue