fix: homelab hosts
This commit is contained in:
parent
5ca07cf48d
commit
82f614eb47
5 changed files with 22 additions and 5 deletions
4
hosts/homelab.hcloud.yaml
Normal file
4
hosts/homelab.hcloud.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
plugin: hetzner.hcloud.hcloud
|
||||
|
||||
api_token: "{{ lookup('rbw', 'Hetzner Ansible Token').data.password }}"
|
||||
cache: true
|
||||
|
|
@ -22,6 +22,7 @@ keyed_groups:
|
|||
prefix: distro_
|
||||
|
||||
compose:
|
||||
ansible_host: proxmox_lxc_interfaces | selectattr('name','equalto','eth0') | map(attribute='inet') | first | ansible.utils.ipaddr('address')
|
||||
# ansible_host: proxmox_ipconfig0.ip | default(proxmox_net0.ip) | ansible.utils.ipaddr('address')
|
||||
ansible_host: proxmox_hostname + ".lan"
|
||||
# ansible_host: proxmox_hostname + ".internal"
|
||||
ansible_become_method: proxmox_ostyle == "alpine" | ternary("doas", "sudo")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue