Remove tfstate role

This commit is contained in:
Khue Doan 2021-08-31 02:12:03 +07:00
parent 626afa352c
commit e4b2ebb979
4 changed files with 0 additions and 23 deletions

View File

@ -8,9 +8,3 @@
gather_facts: no
roles:
- wake
- name: Create Terraform state storage
hosts: metal[0]
gather_facts: no
roles:
- tfstate

View File

@ -1 +0,0 @@
etcd_port: 23799

View File

@ -1,11 +0,0 @@
- name: Wait for etcd
wait_for:
port: 23799
host: '{{ ansible_ssh_host }}'
connection: local
- name: Generate Terraform backend config
delegate_to: localhost
template:
src: backend.tfvars.j2
dest: "{{ playbook_dir }}/../cluster/backend.tfvars"

View File

@ -1,5 +0,0 @@
endpoints = [
{% for host in ansible_play_hosts %}
"{{ hostvars[host].ansible_host }}:{{ etcd_port }}",
{% endfor %}
]