]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
lint: all tasks should be named
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Oct 2020 11:38:04 +0000 (13:38 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 23 Nov 2020 07:33:47 +0000 (08:33 +0100)
Fix ansible-lint 502 error:

[502] All tasks should be named

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-iscsi-gateways.yml
infrastructure-playbooks/rolling_update.yml
infrastructure-playbooks/shrink-rgw.yml

index 9c478736e7900bca3a9104a04699fc364ed59dfa..7c2482bd25d71b924da73fd8c7a6ddb651a4edaf 100644 (file)
@@ -16,7 +16,8 @@
           "You have aborted the purge of the iSCSI gateway configuration"
       when: purge_config == 'abort'
 
-    - set_fact:
+    - name: set_fact igw_purge_type
+      set_fact:
         igw_purge_type: "{{ purge_config }}"
 
 - name: stopping the gateways
index aa918a54c8bba3ce3d5474fd773d01a041be7931..f381fd4b348b5cb552bfa8ee08eb44611c11e581 100644 (file)
@@ -99,7 +99,9 @@
         - containerized_deployment | bool
         - ceph_docker_registry_auth | bool
 
-    - set_fact: rolling_update=true
+    - name: set_fact rolling_update
+      set_fact:
+        rolling_update: true
 
 - name: upgrade ceph mon cluster
   vars:
index 8c0902b6a9ea69deae043cf9507c7fb84c06b8f0..3131ef3f23f46702e5132f609c645c8d87ea95fc 100644 (file)
@@ -46,7 +46,8 @@
   become: true
   gather_facts: false
   tasks:
-    - setup:
+    - name: gather facts
+      setup:
         gather_subset:
           - 'all'
           - '!facter'