6218b77c4b
In Ansible 2.8 the become and become_user are not valid options for include_role. This is causing the multinode devstack gate job to fail with: ERROR! 'become' is not a valid attribute for a IncludeRole This patch uses the correct variable ansible_become to be used with include_roles. Change-Id: I50dd7f447ec347177b245af69532b6688154acca
24 lines
926 B
YAML
24 lines
926 B
YAML
# NOTE(artom) We need to install cruini and iniparse from source until
|
|
# https://github.com/pixelb/crudini/issues/58 and
|
|
# https://github.com/candlepin/python-iniparse/issues/5 are on fixed PyPi.
|
|
- name: crudini and iniparse
|
|
pip:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- git+https://github.com/pixelb/crudini.git#egg=crudini
|
|
- git+https://github.com/candlepin/python-iniparse.git#egg=iniparse
|
|
become: yes
|
|
|
|
# NOTE(artom) The run-tempest role runs as the tempest user, so we need to give
|
|
# the tempest user SSH access to all hosts. Devstack's orchestrate-devstack
|
|
# role should have put a pubkey into the stack user's authorized_keys, so if we
|
|
# put the corresponding private key in the tempest user's .ssh, things should
|
|
# magically work.
|
|
- name: Setup tempest SSH key
|
|
include_role:
|
|
name: copy-build-sshkey
|
|
vars:
|
|
ansible_become: yes
|
|
copy_sshkey_target_user: 'tempest'
|