From 5f571923a11dca9dfedb64d0d4d591330c2ee2fd Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 30 Oct 2022 18:11:47 +0100 Subject: [PATCH] add gather fact --- tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 879ad6f..cf5c88f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,7 +2,7 @@ # tasks file for ansible_bootstrap - name: detect debian - raw: at /etc/os-release|grep Debian||true + raw: cat /etc/os-release|grep Debian||true register: debian - name: detect Rocky @@ -61,6 +61,12 @@ when: arch.stdout and (upgrade.changed and "linux" in upgrade.packages) become: yes +- name: Collect only selected facts + ansible.builtin.setup: + filter: + - 'ansible_distribution' + - 'ansible_os_familly' + - name: import sssd role for ldap support import_role: name: ansible-role-sssd