openstack-infrastructure-te.../ansible-tf-templates/main_net_dns_router.yml

21 lines
715 B
YAML

---
- name: Create the main_net_dns_router workspace for Terraform
hosts: localhost
connection: local
gather_facts: false
become: false
tasks:
- name: Create the terraform directory workspaces for all the OpenStack Projects
ansible.builtin.file:
dest: "../{{ item.name }}/main_net_dns_router"
state: directory
mode: "0755"
loop: "{{ main_net_dns_router_data }}"
- name: Create the main_net_dns_router workspace for Terraform on all the OpenStack Projects
ansible.builtin.template:
src: main_net_dns_router_main.tf.j2
dest: "../{{ item.name }}/main_net_dns_router/main.tf"
mode: "0644"
loop: "{{ main_net_dns_router_data }}"