]> 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>
Tue, 24 Nov 2020 09:39:03 +0000 (10:39 +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 e9be2527ef7407046a606951fd506a5a78a57912..81bcce8031098934fa6e5afdf59ef49a601f8933 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'