openstack-ansible-os_ironic/examples/playbook.yml
Jesse Pretorius 84f4a848d3 Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'ironic_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group. We also document the variable ironic_galera_address which
has been used for a long time, but never documented.

Change-Id: I8502d4aba54870a54900c3218563d66b864a1876
2018-06-01 16:05:08 +01:00

11 lines
237 B
YAML

- name: Playbook for role testing
hosts: localhost
remote_user: root
roles:
- role: "os_ironic"
vars:
galera_root_user: root
vars_prompt:
- name: "galera_root_password"
prompt: "What is galera_root_password?"