Fix ansible-lint error 502 (unnamed-task) for example playbooks.

This patch adds 'name' to all example playbook tasks that did not
have it, fixing ansible-lint's error 'unnamed-task'.
This commit is contained in:
Rafael Guterres Jeffman
2021-05-31 14:43:08 -03:00
parent e7d354c2d4
commit 3943adaa8d
99 changed files with 232 additions and 184 deletions

View File

@@ -10,18 +10,21 @@
gather_facts: True
tasks:
- copy:
- name: Copy public key file to server.
copy:
src: "{{ playbook_dir }}/public.pem"
dest: "{{ ansible_facts['env'].HOME }}/public.pem"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: 0600
- ipavault:
- name: Ensure asymmetric vault exists with public key from file.
ipavault:
ipaadmin_password: SomeADMINpassword
name: asymvault
username: admin
vault_type: asymmetric
vault_public_key_file: "{{ ansible_facts['env'].HOME }}/public.pem"
- file:
- name: Remove public key file from server.
file:
path: "{{ ansible_facts['env'].HOME }}/public.pem"
state: absent