Replace deprecated include statement
Include has been deprecated and porepared for removal from ansible 2.12 We need to replace that before upgrading ansible version. Change-Id: Ibda72a87252339c09ede9da691438908ffb4108e
This commit is contained in:
parent
1710979577
commit
172779f545
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
- name: Install cinder scheduler services
|
||||
include: common-playbooks/cinder.yml
|
||||
import_playbook: common-playbooks/cinder.yml
|
||||
vars:
|
||||
cinder_hosts: "cinder_scheduler:!cinder_api"
|
||||
cinder_serial: "{{ cinder_scheduler_serial | default(['1', '100%']) }}"
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
- name: Install cinder volume services
|
||||
include: common-playbooks/cinder.yml
|
||||
import_playbook: common-playbooks/cinder.yml
|
||||
vars:
|
||||
cinder_hosts: "cinder_volume:!cinder_scheduler:!cinder_api"
|
||||
cinder_serial: "{{ cinder_backend_serial | default(['1', '100%']) }}"
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
- name: Install cinder backup services
|
||||
include: common-playbooks/cinder.yml
|
||||
import_playbook: common-playbooks/cinder.yml
|
||||
vars:
|
||||
cinder_hosts: "cinder_backup:!cinder_volume:!cinder_scheduler:!cinder_api"
|
||||
cinder_serial: "{{ cinder_backend_serial | default(['1', '100%']) }}"
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
- name: Install cinder API services
|
||||
include: common-playbooks/cinder.yml
|
||||
import_playbook: common-playbooks/cinder.yml
|
||||
vars:
|
||||
cinder_hosts: "cinder_api"
|
||||
cinder_serial: "{{ cinder_api_serial | default(['1', '100%']) }}"
|
||||
@ -107,7 +107,7 @@
|
||||
- cinder
|
||||
tasks:
|
||||
- name: Execute cinder service reload
|
||||
include: common-tasks/restart-service.yml
|
||||
include_tasks: common-tasks/restart-service.yml
|
||||
vars:
|
||||
service_name: "{{ item.name }}"
|
||||
service_action: "{{ item.action }}"
|
||||
@ -137,7 +137,7 @@
|
||||
# In order to ensure that the service restart does not
|
||||
# cause an unexpected outage, we drain the load balancer
|
||||
# back end for this container.
|
||||
- include: common-tasks/haproxy-endpoint-manage.yml
|
||||
- include_tasks: common-tasks/haproxy-endpoint-manage.yml
|
||||
vars:
|
||||
haproxy_state: disabled
|
||||
when:
|
||||
@ -146,7 +146,7 @@
|
||||
- "groups['cinder_api'] | length > 1"
|
||||
|
||||
- name: Execute cinder service restart
|
||||
include: common-tasks/restart-service.yml
|
||||
include_tasks: common-tasks/restart-service.yml
|
||||
vars:
|
||||
service_name: "cinder-api"
|
||||
service_action: "restarted"
|
||||
@ -158,7 +158,7 @@
|
||||
# Now that service restart is done, we can set
|
||||
# the load balancer back end for this container
|
||||
# to available again.
|
||||
- include: common-tasks/haproxy-endpoint-manage.yml
|
||||
- include_tasks: common-tasks/haproxy-endpoint-manage.yml
|
||||
vars:
|
||||
haproxy_state: enabled
|
||||
when: "groups['cinder_api'] | length > 1"
|
||||
|
@ -151,7 +151,7 @@
|
||||
# In order to ensure that the service restart does not
|
||||
# cause an unexpected outage, we drain the load balancer
|
||||
# back end for this container.
|
||||
- include: common-tasks/haproxy-endpoint-manage.yml
|
||||
- include_tasks: common-tasks/haproxy-endpoint-manage.yml
|
||||
vars:
|
||||
haproxy_backend: glance_api-back
|
||||
haproxy_state: disabled
|
||||
@ -161,7 +161,7 @@
|
||||
- "groups['glance_api'] | length > 1"
|
||||
|
||||
- name: Execute glance service restart
|
||||
include: common-tasks/restart-service.yml
|
||||
include_tasks: common-tasks/restart-service.yml
|
||||
vars:
|
||||
service_name: "glance-api"
|
||||
service_action: "restarted"
|
||||
@ -173,7 +173,7 @@
|
||||
# Now that service restart is done, we can set
|
||||
# the load balancer back end for this container
|
||||
# to available again.
|
||||
- include: common-tasks/haproxy-endpoint-manage.yml
|
||||
- include_tasks: common-tasks/haproxy-endpoint-manage.yml
|
||||
vars:
|
||||
haproxy_backend: glance_api-back
|
||||
haproxy_state: enabled
|
||||
|
@ -19,7 +19,7 @@
|
||||
tags:
|
||||
- neutron
|
||||
tasks:
|
||||
- include: common-tasks/dynamic-grouping.yml
|
||||
- import_tasks: common-tasks/dynamic-grouping.yml
|
||||
vars:
|
||||
src_group: "nova_compute"
|
||||
dest_group: "neutron_l3_agent, neutron_metadata_agent"
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
|
||||
- name: Install neutron server
|
||||
include: common-playbooks/neutron.yml
|
||||
import_playbook: common-playbooks/neutron.yml
|
||||
vars:
|
||||
neutron_hosts: "neutron_server"
|
||||
neutron_serial: "{{ neutron_server_serial | default(['1', '100%']) }}"
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
- name: Install neutron L2 agents
|
||||
include: common-playbooks/neutron.yml
|
||||
import_playbook: common-playbooks/neutron.yml
|
||||
vars:
|
||||
neutron_hosts: "neutron_linuxbridge_agent:neutron_openvswitch_agent:!neutron_server"
|
||||
neutron_serial: "{{ neutron_agent_serial | default('50%') }}"
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
|
||||
- name: Install all other neutron agents
|
||||
include: common-playbooks/neutron.yml
|
||||
import_playbook: common-playbooks/neutron.yml
|
||||
vars:
|
||||
neutron_hosts: "neutron_all:!neutron_linuxbridge_agent:!neutron_openvswitch_agent:!neutron_server"
|
||||
neutron_serial: "{{ neutron_other_serial | default('1') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user