khuedoan-homelab/metal/roles/tfstate/tasks/main.yml
2021-04-24 18:02:19 +07:00

23 lines
530 B
YAML

- name: Create a tfstate container
delegate_to: localhost
lxd_container:
name: tfstate
state: started
source:
type: image
mode: pull
server: https://images.linuxcontainers.org
alias: ubuntu/focal/amd64
wait_for_ipv4_addresses: yes
url: "https://{{ hostvars[groups['metal'][0]]['ansible_host'] }}:8443"
devices:
eth0:
type: nic
nictype: macvlan
parent: eno1
# - ansible.builtin.raw: dpkg -s python
# delegate_to: tfstate
# apt install -y etcd