From e85dea1036897a4901c1bc4fc2943e483c633dac Mon Sep 17 00:00:00 2001 From: tiijay Date: Sun, 2 Feb 2025 16:40:28 +0100 Subject: [PATCH] v.1.3.0 Problem-Fix: set "gather_facts: no" --- ansible.cfg | 1 + bootstrap.yml | 2 ++ inventory | 1 + system-upgrade.yml | 4 ++++ 4 files changed, 8 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index af1a4f6..582cf83 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -3,3 +3,4 @@ inventory=inventory private_key_file=~/.ssh/id_ed25519 remote_user=ansible #remote_user=admin +#remote_user=tiijay diff --git a/bootstrap.yml b/bootstrap.yml index 678b2a2..acdaa6a 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -2,6 +2,7 @@ - hosts: all become: true + gather_facts: no pre_tasks: - name: update respository index @@ -12,6 +13,7 @@ - hosts: all become: true + gather_facts: no tasks: - name: create ansible group diff --git a/inventory b/inventory index db4ed05..912573c 100644 --- a/inventory +++ b/inventory @@ -15,6 +15,7 @@ proxmox [vm] microk8s nginx +vm-ubuntu-01 [vserver] ionos-ubuntu-01 diff --git a/system-upgrade.yml b/system-upgrade.yml index 76c79cf..122adc8 100644 --- a/system-upgrade.yml +++ b/system-upgrade.yml @@ -2,6 +2,8 @@ - hosts: all become: true + gather_facts: no + tasks: - name: update respository index @@ -11,9 +13,11 @@ - hosts: homelab become: true + gather_facts: no tasks: - name: Upgrade flatpaks ansible.builtin.command: flatpak update --noninteractive register: flatpak_update_output changed_when: "'app/' in flatpak_update_output.stdout" +