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