From 2d4a85826dcc9b4518b80451a6f3410fcea5b759 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 22 Jun 2025 18:45:41 +0200 Subject: [PATCH] Fixed include_task --- Playbooks/machine-update/update-debian-hosts.yaml | 14 +++++--------- Playbooks/machine-update/update-fedora-hosts.yaml | 12 ++++-------- Playbooks/machine-update/update-machines.yaml | 4 ++-- 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/Playbooks/machine-update/update-debian-hosts.yaml b/Playbooks/machine-update/update-debian-hosts.yaml index 7a3c803..b0348d6 100644 --- a/Playbooks/machine-update/update-debian-hosts.yaml +++ b/Playbooks/machine-update/update-debian-hosts.yaml @@ -1,9 +1,5 @@ ---- - -- hosts: debian - tasks: - - name: update APT packages - apt: - upgrade: yes - update_cache: yes - cache_valid_time: 86400 \ No newline at end of file +- name: update APT packages + apt: + upgrade: yes + update_cache: yes + cache_valid_time: 86400 \ No newline at end of file diff --git a/Playbooks/machine-update/update-fedora-hosts.yaml b/Playbooks/machine-update/update-fedora-hosts.yaml index 94cc1fe..ea0d2e7 100644 --- a/Playbooks/machine-update/update-fedora-hosts.yaml +++ b/Playbooks/machine-update/update-fedora-hosts.yaml @@ -1,8 +1,4 @@ ---- - -- hosts: fedora - tasks: - - name: Upgrade all packages - ansible.builtin.dnf: - name: "*" - state: latest \ No newline at end of file +- name: Upgrade all packages + ansible.builtin.dnf: + name: "*" + state: latest \ No newline at end of file diff --git a/Playbooks/machine-update/update-machines.yaml b/Playbooks/machine-update/update-machines.yaml index c55ca56..7deb571 100644 --- a/Playbooks/machine-update/update-machines.yaml +++ b/Playbooks/machine-update/update-machines.yaml @@ -2,9 +2,9 @@ - hosts: fedora tasks: - name: Update fedora hosts - include_tasks: update-fedora-hosts.yaml + include_tasks: update-fedora-hosts.yaml - hosts: debian tasks: - name: Update debian hosts - include_tasks: update-debian-hosts.yaml + include_tasks: update-debian-hosts.yaml