mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Remove tfstate role
This commit is contained in:
parent
626afa352c
commit
e4b2ebb979
@ -8,9 +8,3 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- wake
|
- wake
|
||||||
|
|
||||||
- name: Create Terraform state storage
|
|
||||||
hosts: metal[0]
|
|
||||||
gather_facts: no
|
|
||||||
roles:
|
|
||||||
- tfstate
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
etcd_port: 23799
|
|
@ -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"
|
|
@ -1,5 +0,0 @@
|
|||||||
endpoints = [
|
|
||||||
{% for host in ansible_play_hosts %}
|
|
||||||
"{{ hostvars[host].ansible_host }}:{{ etcd_port }}",
|
|
||||||
{% endfor %}
|
|
||||||
]
|
|
Loading…
Reference in New Issue
Block a user