mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-06 09:08:26 +07:00
Create etcd container for terraform state
This commit is contained in:
parent
316ce29ccb
commit
59e5624c02
@ -9,3 +9,6 @@ metal3 ansible_host=192.168.1.113 mac='00-23-24-d1-f5-69'
|
||||
|
||||
[metal:vars]
|
||||
ansible_user=root
|
||||
|
||||
[etcd]
|
||||
metal0
|
||||
|
@ -14,3 +14,8 @@
|
||||
gather_facts: no
|
||||
roles:
|
||||
- { role: wake, tag: wake }
|
||||
|
||||
- name: Install etcd for Terraform state
|
||||
hosts: etcd
|
||||
roles:
|
||||
- { role: etcd, tag: etcd }
|
||||
|
8
metal/roles/etcd/tasks/main.yml
Normal file
8
metal/roles/etcd/tasks/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
- name: Create etcd container
|
||||
docker_container:
|
||||
name: etcd-tfstate
|
||||
image: quay.io/coreos/etcd
|
||||
exposed_ports:
|
||||
- 2379
|
||||
volumes:
|
||||
- default.etcd
|
Loading…
Reference in New Issue
Block a user