From e9a9533a14f897c2d33737254d7be0d4ec9d7251 Mon Sep 17 00:00:00 2001 From: rubenb Date: Wed, 18 Oct 2023 14:33:17 +0200 Subject: [PATCH] add var to task --- .../base-config-debian/roles/config-fail2ban/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml b/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml index cee2397..39002d1 100644 --- a/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml +++ b/linux/base-config-debian/roles/config-fail2ban/tasks/main.yaml @@ -8,6 +8,11 @@ ansible.builtin.package_facts: manager: auto +# print the package facts in var +- name: print the package facts in var + ansible.builtin.debug: + var: ansible_facts.packages + # install packages if is not in the system - name: install fail2ban package if is not in the system apt: