From f471c51d397827a3835e878a709cf45b814becea Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 20 Aug 2018 15:53:03 +0200 Subject: [PATCH] iscsi group name preserve backward compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Recently we renamed the group_name for iscsi iscsigws where previously it was named iscsi-gws. Existing deployments with a host file section with iscsi-gws must continue to work. This commit adds the old group name as a backoward compatility, no error from Ansible should be expected, if the hostgroup is not found nothing is played. Close: https://bugzilla.redhat.com/show_bug.cgi?id=1619167 Signed-off-by: Sébastien Han (cherry picked from commit 77a3a682f358c8e9a40c5b50e980b5e9ec5f6d60) --- infrastructure-playbooks/purge-iscsi-gateways.yml | 4 +++- site-docker.yml.sample | 1 + site.yml.sample | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/purge-iscsi-gateways.yml b/infrastructure-playbooks/purge-iscsi-gateways.yml index fa86d126e..369901430 100644 --- a/infrastructure-playbooks/purge-iscsi-gateways.yml +++ b/infrastructure-playbooks/purge-iscsi-gateways.yml @@ -20,7 +20,9 @@ igw_purge_type: "{{ purge_config }}" - name: Removing the gateway configuration - hosts: iscsigws + hosts: + - iscsigws + - iscsi-gws # for backward compatibility only! become: yes vars: - igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}" diff --git a/site-docker.yml.sample b/site-docker.yml.sample index 6524e9569..b31bd00d8 100644 --- a/site-docker.yml.sample +++ b/site-docker.yml.sample @@ -12,6 +12,7 @@ - rbdmirrors - clients - iscsigws + - iscsi-gws # for backward compatibility only! - mgrs gather_facts: false diff --git a/site.yml.sample b/site.yml.sample index 3a956faf1..ce48e0fbf 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -13,6 +13,7 @@ - clients - mgrs - iscsigws + - iscsi-gws # for backward compatibility only! gather_facts: false @@ -153,7 +154,9 @@ - ceph-config - ceph-client -- hosts: iscsigws +- hosts: + - iscsigws + - iscsi-gws # for backward compatibility only! gather_facts: false become: True roles: -- 2.39.5