diff --git a/ansible.cfg b/ansible.cfg index e4e7c92..a5de181 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,4 +1,4 @@ [defaults] inventory = inventory.yml -private_key_file = ~/.ssh/ansible-key +# private_key_file = ~/.ssh/ansible-key host_key_checking = False diff --git a/inventory.yml b/inventory.yml index 231b693..98bb375 100644 --- a/inventory.yml +++ b/inventory.yml @@ -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 diff --git a/playbooks/update-packages.yml b/playbooks/update-packages.yml index d21d729..6a78dbe 100644 --- a/playbooks/update-packages.yml +++ b/playbooks/update-packages.yml @@ -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'