mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-24 18:06:16 +07:00
23 lines
530 B
YAML
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
|