Given current constraints of CI Lab application of Ansible playbooks has
to be divided into several stages (changing Ansible controller between
them). This is why role structure can be flattened for increased
readability.
Issue-ID: INT-1601
Change-Id: I71f95649617e160f7887f03c6a96161fb8873c66
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
16 files changed:
connection: local
gather_facts: False
roles:
connection: local
gather_facts: False
roles:
- - openstack/create_devstack_network
- - openstack/create_devstack_securitygroup
- - openstack/create_devstack_keypair
- - role: openstack/create_devstack_hosts
+ - create_network
+ - create_securitygroup
+ - create_keypair
+ - role: create_hosts
hosts: "{{ operation.hosts }}"
operator_key: "dummy"
- name: Create cluster operator access keypair
hosts: "{{ operation.hosts }}"
operator_key: "dummy"
- name: Create cluster operator access keypair
connection: local
gather_facts: False
roles:
connection: local
gather_facts: False
roles:
- - role: openstack/create_devstack_hosts
hosts: "{{ cluster.hosts }}"
operator_key: "{{ hostvars['operator0']['key']['public_key'] }}"
- name: Create cluster operator access information
hosts: "{{ cluster.hosts }}"
operator_key: "{{ hostvars['operator0']['key']['public_key'] }}"
- name: Create cluster operator access information
connection: local
gather_facts: False
roles:
connection: local
gather_facts: False
roles:
- - role: openstack/destroy_devstack_hosts
hosts: "{{ cluster.hosts }}"
hosts: "{{ cluster.hosts }}"
- - role: openstack/destroy_devstack_hosts
hosts: "{{ operation.hosts }}"
hosts: "{{ operation.hosts }}"
- - openstack/destroy_devstack_keypair
- - openstack/destroy_devstack_network
- - openstack/destroy_devstack_securitygroup
+ - destroy_keypair
+ - destroy_network
+ - destroy_securitygroup