tripleo-quickstart-extras/playbooks/multinode-standalone.yml
Chandan Kumar a818303f05 Set gather_facts to false while calling tempest playbook
By default gather_facts is always true and tempest playbook
runs tempest as a root user for creating some directories and
once the tempest run finish, The ansible user dir is changed
to /root and any other playbook called with gather_facts
to false have same /root directory leading to failure in
other playbooks where ansible user dir is used.

Setting gather_facts to false fixes the issue

Change-Id: Ia696afa16a995dfc7c91373f6d162425fe39c7a9
Signed-off-by: Chandan Kumar <chkumar@redhat.com>
2019-04-22 16:50:18 +00:00

63 lines
1.4 KiB
YAML

---
- name: Add the overcloud nodes to the generated inventory
hosts: undercloud
gather_facts: true
tags:
- standalone
vars:
inventory: multinode
roles:
- tripleo-inventory
- name: Prepare the undercloud for installation
hosts: undercloud
roles:
- undercloud-setup
tags:
- standalone
- name: Run DLRN gate role and install repo
hosts: undercloud
vars:
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
roles:
- build-test-packages
- {role: install-built-repo, when: compressed_gating_repo is defined}
tags:
- build
# NOTE(aschultz): nested virt causes problems in CI so we default to qemu
# and do not do the dynamic virt lookup.
- name: Deploy Standalone
hosts: undercloud
vars:
standalone_libvirt_type: "{{ standalone_virt_type|default('qemu') }}"
roles:
- standalone
tags:
- standalone
- name: Validate the undercloud
hosts: undercloud
gather_facts: false
roles:
- {role: validate-services, when: validate_services|default(false)|bool}
- {role: validate-tempest, when: run_tempest|bool}
tags:
- standalone
- name: Validate the deployment
hosts: undercloud
gather_facts: false
tasks:
- include_tasks: tempest.yml
vars:
tempest_install_method: distro
tempest_cloud_name: 'standalone'
when:
- not run_tempest|bool
- use_os_tempest is defined
- use_os_tempest|bool
tags:
- standalone