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

@@ -5,18 +5,21 @@
gather_facts: True
tasks:
- copy:
- name: Copy file containing password to server.
copy:
src: "{{ playbook_dir }}/password.txt"
dest: "{{ ansible_facts['env'].HOME }}/password.txt"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: 0600
- ipavault:
- name: Ensure symmetric vault exists with password from file.
ipavault:
ipaadmin_password: SomeADMINpassword
name: symvault
username: admin
vault_type: symmetric
vault_password_file: "{{ ansible_facts['env'].HOME }}/password.txt"
- file:
- name: Remove file containing password from server.
file:
path: "{{ ansible_facts['env'].HOME }}/password.txt"
state: absent