From 0c3adbc710ab6546ebf654c4f36e3b53bd8c2cc4 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 2 Oct 2020 13:38:04 +0200 Subject: [PATCH] lint: all tasks should be named Fix ansible-lint 502 error: [502] All tasks should be named Signed-off-by: Guillaume Abrioux (cherry picked from commit 97dd9218dd0493edc68bc9e69cb39fae8924f6dc) --- infrastructure-playbooks/purge-iscsi-gateways.yml | 3 ++- infrastructure-playbooks/rolling_update.yml | 4 +++- infrastructure-playbooks/shrink-rgw.yml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/infrastructure-playbooks/purge-iscsi-gateways.yml b/infrastructure-playbooks/purge-iscsi-gateways.yml index 9c478736e..7c2482bd2 100644 --- a/infrastructure-playbooks/purge-iscsi-gateways.yml +++ b/infrastructure-playbooks/purge-iscsi-gateways.yml @@ -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 diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index e9be2527e..81bcce803 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -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: diff --git a/infrastructure-playbooks/shrink-rgw.yml b/infrastructure-playbooks/shrink-rgw.yml index 8c0902b6a..3131ef3f2 100644 --- a/infrastructure-playbooks/shrink-rgw.yml +++ b/infrastructure-playbooks/shrink-rgw.yml @@ -46,7 +46,8 @@ become: true gather_facts: false tasks: - - setup: + - name: gather facts + setup: gather_subset: - 'all' - '!facter' -- 2.39.5