]> git-server-git.apps.pok.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>
Wed, 16 Dec 2020 13:05:45 +0000 (14:05 +0100)
Fix ansible-lint 502 error:

[502] All tasks should be named

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 97dd9218dd0493edc68bc9e69cb39fae8924f6dc)

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 a166ba89aa87e63ffc93ba5af5b2685519404e67..196f2937f746aeb953bad97eae6fc3eb1d1aa92e 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'