ce7982192f
We need to differentiate local_working_dir from working_dir as well as decouple the stack user from `ansible_user` var. Both of these are causing issues as we begin to automate deployments in more environments. - Cleanup duplicate variables that are consumed via extras-common - Note: extras-common depends on the common role in OOOQ - Cleanup redundant var and superfluous quotes from overcloud-scale role - Cleanup redundant comments in <role>/defaults/main.yml Closes-bug: 1654574 Change-Id: I9c7a3166ed1fc5042c11e420223134ea912b45c5
28 lines
742 B
YAML
28 lines
742 B
YAML
---
|
|
# tasks file for ansible-role-tripleo-tempest-undercloud
|
|
|
|
- name: Add fake driver to Ironic config
|
|
become: yes
|
|
lineinfile:
|
|
backup: true
|
|
backrefs: true
|
|
dest: '/etc/ironic/ironic.conf'
|
|
regexp: '^(enabled_drivers=(?:(?!fake).)*)$'
|
|
line: '\1,fake'
|
|
|
|
- name: Restart the Ironic conductor service
|
|
become: yes
|
|
service: name=openstack-ironic-conductor state=restarted
|
|
|
|
- name: Ensure the fake driver is enabled
|
|
shell: >
|
|
source {{ working_dir }}/stackrc;
|
|
ironic driver-list;
|
|
register: driver_list
|
|
failed_when: "'fake' not in driver_list.stdout"
|
|
|
|
- name: Copy tempest input file to undercloud
|
|
copy:
|
|
src: "tempest-undercloud-config.conf"
|
|
dest: "{{ working_dir }}/{{ tempest_deployer_input_file }}"
|