Mohammed Naser 3d4eb769b1 Refactor to use pre-run instead
Change-Id: I9ef70c76871a609dbb675800230aec8eee5674ad
2022-03-11 19:04:54 -05:00

14 lines
335 B
YAML

---
- name: Create folder for "clouds.yaml" file
file:
path: "{{ item }}"
state: directory
loop:
- "{{ ansible_env.HOME }}/.config"
- "{{ ansible_env.HOME }}/.config/openstack"
- name: Generate "clouds.yaml" file
template:
src: clouds.yaml.j2
dest: "{{ ansible_env.HOME }}/.config/openstack/clouds.yaml"