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: Idf00933d271b5e80bda9113ccaa1f3bc71eb60c6
This commit is contained in:
ZhijunWei 2018-08-19 12:43:44 -04:00
parent 3cbb9a25cf
commit 55df48c58f
3 changed files with 14 additions and 14 deletions

View File

@ -23,23 +23,23 @@
tags:
- always
- include: sahara_pre_install.yml
- include_tasks: sahara_pre_install.yml
tags:
- sahara-install
- include: sahara_install.yml
- include_tasks: sahara_install.yml
tags:
- sahara-install
- include: sahara_post_install.yml
- include_tasks: sahara_post_install.yml
tags:
- sahara-config
- include: sahara_uwsgi.yml
- include_tasks: sahara_uwsgi.yml
tags:
- sahara-config
- include: sahara_init_common.yml
- include_tasks: sahara_init_common.yml
tags:
- sahara-config
@ -63,12 +63,12 @@
- common-mq
- sahara-config
- include: sahara_db_setup.yml
- include_tasks: sahara_db_setup.yml
when: inventory_hostname == groups['sahara_all'][0]
tags:
- sahara-config
- include: sahara_service_setup.yml
- include_tasks: sahara_service_setup.yml
when: inventory_hostname == groups['sahara_all'][0]
tags:
- sahara-config

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- include: sahara_init_systemd.yml
- include_tasks: sahara_init_systemd.yml
when:
- ansible_service_mgr == 'systemd'

View File

@ -14,19 +14,19 @@
# 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 Nova
- include: common/test-install-nova.yml
- import_playbook: common/test-install-nova.yml
# Install Sahara
- include: common/test-install-sahara.yml
- import_playbook: common/test-install-sahara.yml
# Install and execute Tempest
- include: common/test-install-tempest.yml
- import_playbook: common/test-install-tempest.yml