mirror of https://github.com/ceph/ceph-ansible.git
iscsi group name preserve backward compatibility
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 <seb@redhat.com>pull/3047/head
parent
8c70a5b197
commit
77a3a682f3
|
@ -20,7 +20,9 @@
|
||||||
igw_purge_type: "{{ purge_config }}"
|
igw_purge_type: "{{ purge_config }}"
|
||||||
|
|
||||||
- name: Removing the gateway configuration
|
- name: Removing the gateway configuration
|
||||||
hosts: iscsigws
|
hosts:
|
||||||
|
- iscsigws
|
||||||
|
- iscsi-gws # for backward compatibility only!
|
||||||
become: yes
|
become: yes
|
||||||
vars:
|
vars:
|
||||||
- igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
|
- igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
|
||||||
|
|
|
@ -697,6 +697,7 @@
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
- "{{ iscsi_gw_group_name|default('iscsigws') }}"
|
- "{{ iscsi_gw_group_name|default('iscsigws') }}"
|
||||||
|
- iscsi-gws # for backward compatibility only!
|
||||||
|
|
||||||
serial: 1
|
serial: 1
|
||||||
become: True
|
become: True
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
- rbdmirrors
|
- rbdmirrors
|
||||||
- clients
|
- clients
|
||||||
- iscsigws
|
- iscsigws
|
||||||
|
- iscsi-gws # for backward compatibility only!
|
||||||
- mgrs
|
- mgrs
|
||||||
|
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
@ -331,7 +332,9 @@
|
||||||
status: "Complete"
|
status: "Complete"
|
||||||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||||
|
|
||||||
- hosts: iscsigws
|
- hosts:
|
||||||
|
- iscsigws
|
||||||
|
- iscsi-gws # for backward compatibility only!
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: True
|
become: True
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
- clients
|
- clients
|
||||||
- mgrs
|
- mgrs
|
||||||
- iscsigws
|
- iscsigws
|
||||||
|
- iscsi-gws # for backward compatibility only!
|
||||||
|
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
|
@ -358,7 +359,9 @@
|
||||||
status: "Complete"
|
status: "Complete"
|
||||||
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||||
|
|
||||||
- hosts: iscsigws
|
- hosts:
|
||||||
|
- iscsigws
|
||||||
|
- iscsi-gws # for backward compatibility only!
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: True
|
become: True
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
|
Loading…
Reference in New Issue