Merge branch 'main' of github.com:aggarwalakshun/ansible
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = inventory.yml
|
inventory = inventory.yml
|
||||||
private_key_file = ~/.ssh/ansible-key
|
# private_key_file = ~/.ssh/ansible-key
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
|
|||||||
@@ -7,16 +7,12 @@ ungrouped:
|
|||||||
ansible_host: 192.168.1.4
|
ansible_host: 192.168.1.4
|
||||||
proxmox:
|
proxmox:
|
||||||
ansible_host: 192.168.1.126
|
ansible_host: 192.168.1.126
|
||||||
acer:
|
debian:
|
||||||
ansible_host: 192.168.1.201
|
ansible_host: 192.168.1.73
|
||||||
pihole:
|
pihole:
|
||||||
ansible_host: 192.168.1.210
|
ansible_host: 192.168.1.210
|
||||||
nextcloud:
|
# ansible:
|
||||||
ansible_host: 192.168.1.211
|
# ansible_host: localhost
|
||||||
ansible:
|
|
||||||
ansible_host: localhost
|
|
||||||
jellyfin:
|
|
||||||
ansible_host: 192.168.1.125
|
|
||||||
kube:
|
kube:
|
||||||
hosts:
|
hosts:
|
||||||
kube-01:
|
kube-01:
|
||||||
@@ -26,8 +22,8 @@ kube:
|
|||||||
kube-03:
|
kube-03:
|
||||||
ansible_host: 192.168.1.87
|
ansible_host: 192.168.1.87
|
||||||
kube-04:
|
kube-04:
|
||||||
ansible_host: 192.168.1.181
|
ansible_host: 192.168.1.147
|
||||||
kube-05:
|
|
||||||
ansible_host: 192.168.1.182
|
|
||||||
pi:
|
pi:
|
||||||
ansible_host: 192.168.1.239
|
ansible_host: 192.168.1.239
|
||||||
|
jellyfin:
|
||||||
|
ansible_host: 192.168.1.125
|
||||||
|
|||||||
@@ -4,6 +4,12 @@
|
|||||||
vars_files:
|
vars_files:
|
||||||
- ../secret
|
- ../secret
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update deb packages via nala
|
- name: Update cache
|
||||||
command: sudo nala upgrade -y
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
when: ansible_distribution == 'Debian'
|
||||||
|
- name: Upgrade packages
|
||||||
|
apt:
|
||||||
|
name: "*"
|
||||||
|
state: latest
|
||||||
when: ansible_distribution == 'Debian'
|
when: ansible_distribution == 'Debian'
|
||||||
|
|||||||
Reference in New Issue
Block a user