use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0] Switch to include_tasks or import_playbook as necessary [0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated Change-Id: I55394d053218016be20fa9b2c92cefc1473d5c64
This commit is contained in:
parent
12e3e92be1
commit
b2bce755e0
@ -13,8 +13,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: test-install-memcached.yml
|
||||
- import_playbook: test-install-memcached.yml
|
||||
|
||||
- include: test-install-rabbitmq.yml
|
||||
- import_playbook: test-install-rabbitmq.yml
|
||||
|
||||
- include: test-install-galera.yml
|
||||
- import_playbook: test-install-galera.yml
|
||||
|
@ -35,7 +35,7 @@
|
||||
# config file changes which causes a container/service
|
||||
# restart do 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:
|
||||
@ -46,7 +46,7 @@
|
||||
# Now that container changes are 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:
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: setting-nodepool-variables.yml
|
||||
- import_playbook: setting-nodepool-variables.yml
|
||||
|
||||
- name: Make /lib/modules accessible on neutron_agent containers
|
||||
hosts: neutron_agent
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: setting-nodepool-variables.yml
|
||||
- import_playbook: setting-nodepool-variables.yml
|
||||
|
||||
- name: Prepare for nova services
|
||||
hosts: nova_all
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: test-setup-swifthosts.yml
|
||||
- import_playbook: test-setup-swifthosts.yml
|
||||
|
||||
- name: Playbook for deploying swift
|
||||
hosts: "{{ swift_groups | default('swift_all:swift_remote_all') }}"
|
||||
|
@ -23,9 +23,9 @@
|
||||
become: yes
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- include: "common-tasks/test-set-nodepool-vars.yml"
|
||||
- include_tasks: "common-tasks/test-set-nodepool-vars.yml"
|
||||
|
||||
- include: destroy_containers.yml
|
||||
- import_playbook: destroy_containers.yml
|
||||
when: destroy_first | default(True) | bool
|
||||
|
||||
- name: Playbook for creating containers
|
||||
@ -62,7 +62,7 @@
|
||||
remote_user: root
|
||||
gather_facts: true
|
||||
pre_tasks:
|
||||
- include: "common-tasks/test-set-nodepool-vars.yml"
|
||||
- include_tasks: "common-tasks/test-set-nodepool-vars.yml"
|
||||
roles:
|
||||
- role: "openstack_hosts"
|
||||
vars_files:
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: test-repo-setup.yml
|
||||
- import_playbook: test-repo-setup.yml
|
||||
|
||||
- name: Playbook for configuring hosts
|
||||
hosts: localhost
|
||||
@ -26,7 +26,7 @@
|
||||
vars_files:
|
||||
- test-vars.yml
|
||||
tasks:
|
||||
- include: "common-tasks/test-set-nodepool-vars.yml"
|
||||
- include_tasks: "common-tasks/test-set-nodepool-vars.yml"
|
||||
|
||||
- name: Clear iptables rules
|
||||
shell: "{{ playbook_dir }}/iptables-clear.sh"
|
||||
@ -83,7 +83,7 @@
|
||||
openrc_openstack_client_config_dir_owner: "root"
|
||||
openrc_clouds_yml_file_owner: "root"
|
||||
|
||||
- include: test-install-openstack-hosts.yml
|
||||
- import_playbook: test-install-openstack-hosts.yml
|
||||
|
||||
- name: Playbook for configuring the LXC host
|
||||
hosts: localhost
|
||||
|
@ -14,10 +14,10 @@
|
||||
# limitations under the License.
|
||||
|
||||
# Prepare the user ssh keys
|
||||
- include: test-prepare-keys.yml
|
||||
- import_playbook: test-prepare-keys.yml
|
||||
|
||||
# Prepare the host
|
||||
- include: test-prepare-host.yml
|
||||
- import_playbook: test-prepare-host.yml
|
||||
|
||||
# Prepare the containers
|
||||
- include: test-prepare-containers.yml
|
||||
- import_playbook: test-prepare-containers.yml
|
||||
|
@ -14,19 +14,19 @@
|
||||
# limitations under the License.
|
||||
|
||||
# Prepare the user ssh keys
|
||||
- include: common/test-prepare-keys.yml
|
||||
- import_playbook: common/test-prepare-keys.yml
|
||||
|
||||
# Prepare the host
|
||||
- include: common/test-prepare-host.yml
|
||||
- import_playbook: common/test-prepare-host.yml
|
||||
|
||||
# Prepare the containers
|
||||
- include: common/test-prepare-containers.yml
|
||||
- import_playbook: common/test-prepare-containers.yml
|
||||
|
||||
# Install RabbitMQ/MariaDB/Memcached
|
||||
- include: common/test-install-infra.yml
|
||||
- import_playbook: common/test-install-infra.yml
|
||||
|
||||
# Install Keystone
|
||||
- include: common/test-install-keystone.yml
|
||||
- import_playbook: common/test-install-keystone.yml
|
||||
|
||||
# Install Tempest
|
||||
- include: common/test-install-tempest.yml
|
||||
- import_playbook: common/test-install-tempest.yml
|
||||
|
Loading…
Reference in New Issue
Block a user