From 34416351f2f5a3cdb3e824b2fdb8251eb3ce0727 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sun, 23 Mar 2025 10:56:15 +0100 Subject: [PATCH] added os_family condition in hostname package, added arch linux hostname package --- tasks/personal-linux-config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/personal-linux-config.yml b/tasks/personal-linux-config.yml index 5848570..1f73e56 100644 --- a/tasks/personal-linux-config.yml +++ b/tasks/personal-linux-config.yml @@ -1,8 +1,14 @@ --- -- name: Ensure the hostname package is installed and updated +- name: (debian/rhel) Ensure the hostname package is installed and updated ansible.builtin.package: name: hostname state: latest + where: ansible_facts["os_family"] == "Debian" or ansible_facts["os_family"] == "RHEL" +- name: (arch) Ensure the inetutils package is installed and updated + ansible.builtin.package: + name: inetutils + state: latest + where: ansible_facts["os_family"] == "Archlinux" - name: Ensure the personal-linux-config repositories is updated ansible.builtin.git: dest: /root/personal-linux-config