configure the clouds.py script on the host

This commit is contained in:
Neil Hanlon 2022-04-07 02:03:49 -04:00
parent f35776479e
commit 803bb21868
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
3 changed files with 10 additions and 1 deletions

View File

@ -23,6 +23,9 @@
import_tasks: tasks/common_vars.yml
tasks:
- name: configure clouds.yml
import_tasks: tasks/configure_openstacksdk.yml
- name: setup flavors
openstack.cloud.compute_flavor:
cloud: linuxadminbooks

View File

@ -0,0 +1,6 @@
---
- name: Upload clouds.py
ansible.builtin.copy:
src: "../scripts/clouds.py"
dest: /root/clouds.py
mode: '0750'

View File

@ -21,4 +21,4 @@ clouds = {
}
print(yaml.dumps(clouds))
print(yaml.safe_dump(clouds))