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