From 99e92594031e58237b423bd6aa3780eabef8355c Mon Sep 17 00:00:00 2001 From: aggarwalakshun <110321230+aggarwalakshun@users.noreply.github.com> Date: Mon, 18 Mar 2024 02:00:35 +0530 Subject: [PATCH 1/4] Update ansible.cfg --- ansible.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From baa6fbf43a0a9bb10217b8331ec88162ccb5327d Mon Sep 17 00:00:00 2001 From: akshun Date: Mon, 18 Mar 2024 02:05:08 +0530 Subject: [PATCH 2/4] modified hosts --- inventory.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/inventory.yml b/inventory.yml index 231b693..0fb5c88 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 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 From 5fc873102bdd146e21f22f82421ba51608f3209f Mon Sep 17 00:00:00 2001 From: akshun Date: Mon, 18 Mar 2024 02:06:23 +0530 Subject: [PATCH 3/4] Use apt --- playbooks/update-packages.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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' From 6c2251c4f286a38ccbd549dca730c5bc23a335bf Mon Sep 17 00:00:00 2001 From: aggarwalakshun <110321230+aggarwalakshun@users.noreply.github.com> Date: Mon, 18 Mar 2024 02:11:54 +0530 Subject: [PATCH 4/4] remove localhost --- inventory.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inventory.yml b/inventory.yml index 0fb5c88..98bb375 100644 --- a/inventory.yml +++ b/inventory.yml @@ -11,8 +11,8 @@ ungrouped: ansible_host: 192.168.1.73 pihole: ansible_host: 192.168.1.210 - ansible: - ansible_host: localhost +# ansible: +# ansible_host: localhost kube: hosts: kube-01: