change hosts, add role
This commit is contained in:
parent
fc74760828
commit
7c88c82951
@ -1,22 +1,24 @@
|
|||||||
|
# yamllint disable-line rule:new-lines
|
||||||
---
|
---
|
||||||
homelab:
|
homelab:
|
||||||
children:
|
children:
|
||||||
dns:
|
servers:
|
||||||
hosts:
|
hosts:
|
||||||
|
dlna:
|
||||||
|
ansible_host: dlna.home.lab.local
|
||||||
|
sandbox:
|
||||||
|
ansible_host: 192.168.0.101
|
||||||
dns1:
|
dns1:
|
||||||
ansible_host: ns1.home.lab.local
|
ansible_host: ns1.home.lab.local
|
||||||
ansible_user: ovodianov
|
vars:
|
||||||
ansible_ssh_private_key_file: ~/.ssh/home.lab.local
|
ansible_user: ovodianov
|
||||||
pve:
|
ansible_ssh_private_key_file: ~/.ssh/home.lab.local
|
||||||
|
debian:
|
||||||
hosts:
|
hosts:
|
||||||
pve1:
|
pve1:
|
||||||
ansible_host: pve.home.lab.local
|
ansible_host: pve.home.lab.local
|
||||||
ansible_user: root
|
|
||||||
pve2:
|
pve2:
|
||||||
ansible_host: pve.home.lab.local
|
ansible_host: pve2.home.lab.local
|
||||||
ansible_user: root
|
vars:
|
||||||
sanbox:
|
ansible_user: root
|
||||||
hosts:
|
ansible_ssh_private_key_file: ~/.ssh/home.lab.local
|
||||||
sanbox1:
|
|
||||||
ansible_host: 192.168.0.101
|
|
||||||
ansible_user: ovodianov
|
|
||||||
|
|||||||
5
ansible/install.yml
Normal file
5
ansible/install.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- hosts: homelab
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- packages
|
||||||
5
ansible/roles/packages/tasks/main.yml
Normal file
5
ansible/roles/packages/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: install packages
|
||||||
|
apt:
|
||||||
|
name: qemu-guest-agent
|
||||||
|
state: present
|
||||||
Loading…
x
Reference in New Issue
Block a user