Skip to content
Snippets Groups Projects
Commit 3943adaa authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

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'.
parent e7d354c2
No related branches found
No related tags found
No related merge requests found
Showing
with 39 additions and 24 deletions
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
become: true become: true
tasks: tasks:
- ipahost: - name: Ensure host member managedby_host 'server.example.com' is present
ipahost:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: host01.example.com name: host01.example.com
managedby_host: server.example.com managedby_host: server.example.com
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
become: true become: true
tasks: tasks:
- ipahost: - name: Ensure host is present with managedby_host attribute.
ipahost:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: host01.example.com name: host01.example.com
managedby_host: server.example.com managedby_host: server.example.com
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
become: true become: true
tasks: tasks:
- name: Ensure hosts manadegby_host is absent. - name: Ensure hosts manadegby_host is present.
ipahost: ipahost:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
hosts: hosts:
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
become: true become: true
tasks: tasks:
- ipahost: - name: Ensure hosts are present with managedby_host attribute.
ipahost:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
hosts: hosts:
- name: host01.example.com - name: host01.example.com
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure host-group databases is present - name: Ensure host-group databases is absent
- ipahostgroup: ipahostgroup:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: databases name: databases
state: absent state: absent
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure host-group databases is present - name: Ensure host-group databases is present
- ipahostgroup: ipahostgroup:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: databases name: databases
host: host:
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure hosts and hostgroups are present in existing databases hostgroup - name: Ensure hosts and hostgroups are absent in existing databases hostgroup
- ipahostgroup: ipahostgroup:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: databases name: databases
host: host:
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure hosts and hostgroups are present in existing databases hostgroup - name: Ensure hosts and hostgroups are present in existing databases hostgroup
- ipahostgroup: ipahostgroup:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: databases name: databases
host: host:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
state: absent state: absent
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
description: A role in IPA. description: A role in IPA.
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'group' is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
group: group:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'group' is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
group: group:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'host' is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
host: host:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'host' is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
host: host:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'hostgroup' is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
hostgroup: hostgroup:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'hostgroup' is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
hostgroup: hostgroup:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'privilege' is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
privilege: privilege:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'privilege' is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
privilege: privilege:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'service' is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: testrole name: testrole
service: service:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'service' is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
service: service:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment