mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-24 10:02:23 +07:00
22 lines
512 B
YAML
22 lines
512 B
YAML
- name: Install Python library for the Docker
|
|
dnf:
|
|
name: python-docker
|
|
|
|
- name: Create etcd container
|
|
docker_container:
|
|
name: etcd-tfstate
|
|
image: bitnami/etcd
|
|
restart_policy: always
|
|
env:
|
|
ALLOW_NONE_AUTHENTICATION: "yes"
|
|
published_ports:
|
|
- "{{ etcd_port }}:2379"
|
|
volumes:
|
|
- tfstate:/bitnami/etcd/data
|
|
|
|
- name: Generate Terraform backend config
|
|
delegate_to: localhost
|
|
template:
|
|
src: backend.tfvars.j2
|
|
dest: "{{ playbook_dir }}/../infra/backend.tfvars"
|