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: I0d5e63a6bb72ac292a27b677ef32a2f1daf47550
This commit is contained in:
caoyuan 2018-07-24 18:58:00 +08:00
parent 1b9ec9b910
commit 6170df0834
2 changed files with 12 additions and 12 deletions

View File

@ -47,15 +47,15 @@
tags:
- always
- include: heat_pre_install.yml
- include_tasks: heat_pre_install.yml
tags:
- heat-install
- include: heat_install.yml
- include_tasks: heat_install.yml
tags:
- heat-install
- include: heat_post_install.yml
- include_tasks: heat_post_install.yml
tags:
- heat-config
@ -87,7 +87,7 @@
- heat-config
- systemd-service
- include: heat_domain_setup.yml
- include_tasks: heat_domain_setup.yml
static: no
when:
- "inventory_hostname == ansible_play_hosts[0]"
@ -113,18 +113,18 @@
tags:
- heat-config
- include: heat_db_setup.yml
- include_tasks: heat_db_setup.yml
static: no
when:
- "inventory_hostname == ansible_play_hosts[0]"
tags:
- heat-config
- include: heat_uwsgi.yml
- include_tasks: heat_uwsgi.yml
tags:
- heat-config
- include: heat_service_setup.yml
- include_tasks: heat_service_setup.yml
static: no
when:
- "inventory_hostname == ansible_play_hosts[0]"

View File

@ -14,16 +14,16 @@
# limitations under the License.
# Setup the host
- include: common/test-setup-host.yml
- import_playbook: common/test-setup-host.yml
# Install RabbitMQ/MariaDB
- 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 Heat
- include: common/test-install-heat.yml
- import_playbook: common/test-install-heat.yml
# Test Heat
- include: test-heat-functional.yml
- import_playbook: test-heat-functional.yml