configure the clouds.py script on the host
This commit is contained in:
parent
f35776479e
commit
803bb21868
@ -23,6 +23,9 @@
|
|||||||
import_tasks: tasks/common_vars.yml
|
import_tasks: tasks/common_vars.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: configure clouds.yml
|
||||||
|
import_tasks: tasks/configure_openstacksdk.yml
|
||||||
|
|
||||||
- name: setup flavors
|
- name: setup flavors
|
||||||
openstack.cloud.compute_flavor:
|
openstack.cloud.compute_flavor:
|
||||||
cloud: linuxadminbooks
|
cloud: linuxadminbooks
|
||||||
|
6
ansible/playbooks/tasks/configure_openstacksdk.yml
Normal file
6
ansible/playbooks/tasks/configure_openstacksdk.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: Upload clouds.py
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "../scripts/clouds.py"
|
||||||
|
dest: /root/clouds.py
|
||||||
|
mode: '0750'
|
@ -21,4 +21,4 @@ clouds = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print(yaml.dumps(clouds))
|
print(yaml.safe_dump(clouds))
|
||||||
|
Loading…
Reference in New Issue
Block a user