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 52 additions and 48 deletions
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'user' is absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
user: user:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role member 'user' is present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
user: user:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role members are absent.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
user: user:
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Ensure role members are present.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
user: user:
...@@ -21,3 +22,4 @@ ...@@ -21,3 +22,4 @@
- User Administrators - User Administrators
service: service:
- service01 - service01
action: member
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
gather_facts: no gather_facts: no
tasks: tasks:
- iparole: - name: Rename role.
iparole:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: somerole name: somerole
rename: anotherrole rename: anotherrole
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure management host is absent. - name: Ensure management host is absent.
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
host: "{{ groups.ipaserver[0] }}" host: "{{ groups.ipaserver[0] }}"
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure management host is present. - name: Ensure management host is present.
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
host: "{{ groups.ipaserver[0] }}" host: "{{ groups.ipaserver[0] }}"
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service is absent - name: Ensure service is absent
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
state: absent state: absent
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service is disabled - name: Ensure service is disabled
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
state: disabled state: disabled
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service is present - name: Ensure service is present
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
certificate: certificate:
......
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service is present - name: Ensure service is present
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/ihavenodns.info name: HTTP/ihavenodns.info
force: yes force: yes
# state: absent
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service is present - name: Ensure service is present
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.ansible.com name: HTTP/www.ansible.com
skip_host_check: yes skip_host_check: yes
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service is present - name: Ensure service is present
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service certificate is absent - name: Ensure service certificate is absent
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
certificate: certificate:
- MIICBjCCAW8CFHnm32VcXaUDGfEGdDL/erPSijUAMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQwHhcNMjAwMTIzMDA1NjQ2WhcNMjEwMTIyMDA1NjQ2WjBCMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBhbnkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYrdVmsr7iT3f67DM5bb1osSEe5/c91UUMEIcFq5wrgBhzVfs8iIMDVC1yiUGTsDLJNJc4nb1tUxeR9K5fh25E6n/eWDBP75NStotjAXRU4Ahi3FNRhWFOKesds5xNqgDk5/dY8UekJv2yUblQuZzeF8b2XFrmHuCaYuFctzPfWwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACF+5RS8Ce0HRixGPu4Xd51i+Kzblg++lx8fDJ8GW5G16/Z1AsB72Hc7etJL2PksHlue/xCq6SA9fIfHc4TBNCiWjPSP1NhHJeYyoPiSkcYsqXuxWyoyRLbnAhBVvhoiqZbUt3u3tGB0uMMA0yJvj07mP7Nea2KdBYVH8X1pM0V+ - MIICBjCCAW8CFHnm32VcXaUDGfEGdDL/erPSijUAMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQwHhcNMjAwMTIzMDA1NjQ2WhcNMjEwMTIyMDA1NjQ2WjBCMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZhdWx0IENvbXBhbnkgTHRkMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYrdVmsr7iT3f67DM5bb1osSEe5/c91UUMEIcFq5wrgBhzVfs8iIMDVC1yiUGTsDLJNJc4nb1tUxeR9K5fh25E6n/eWDBP75NStotjAXRU4Ahi3FNRhWFOKesds5xNqgDk5/dY8UekJv2yUblQuZzeF8b2XFrmHuCaYuFctzPfWwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBACF+5RS8Ce0HRixGPu4Xd51i+Kzblg++lx8fDJ8GW5G16/Z1AsB72Hc7etJL2PksHlue/xCq6SA9fIfHc4TBNCiWjPSP1NhHJeYyoPiSkcYsqXuxWyoyRLbnAhBVvhoiqZbUt3u3tGB0uMMA0yJvj07mP7Nea2KdBYVH8X1pM0V+
action: member action: member
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
gather_facts: false gather_facts: false
tasks: tasks:
# Ensure service certificate is present - name: Ensure service certificate is present
- ipaservice: ipaservice:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: HTTP/www.example.com name: HTTP/www.example.com
certificate: certificate:
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure sudo command is absent - name: Ensure sudo command is absent
- ipasudocmd: ipasudocmd:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: /usr/bin/su name: /usr/bin/su
state: absent state: absent
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure sudo command is present - name: Ensure sudo command is present
- ipasudocmd: ipasudocmd:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: /usr/bin/su name: /usr/bin/su
state: present state: present
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure sudocmds are absent in sudocmdgroup - name: Ensure sudocmds are absent in sudocmdgroup
- ipasudocmdgroup: ipasudocmdgroup:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: network name: network
sudocmd: sudocmd:
......
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
become: true become: true
tasks: tasks:
# Ensure sudo commands are present - name: Ensure sudo commands are present
- ipasudocmd: ipasudocmd:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: name:
- /usr/sbin/ifconfig - /usr/sbin/ifconfig
- /usr/sbin/iwlist - /usr/sbin/iwlist
state: present state: present
# Ensure sudo commands are present in existing sudocmdgroup - name: Ensure sudocmdgroup is present with sudo commands.
- ipasudocmdgroup: ipasudocmdgroup:
ipaadmin_password: SomeADMINpassword ipaadmin_password: SomeADMINpassword
name: network name: network
sudocmd: sudocmd:
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
become: true become: true
tasks: tasks:
# Ensure sudocmdgroup is absent - name: Ensure sudocmdgroup is absent
- ipasudocmdgroup: ipasudocmdgroup:
ipaadmin_password: pass1234 ipaadmin_password: pass1234
name: network name: network
state: absent state: absent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment