From 605d9efb0ad2734278d8bdb5f9e0862d8e0a1a7e Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 7 Nov 2020 20:43:14 +0100 Subject: Playbook tools --- playbooks/debug.yml | 12 ++++++++++++ playbooks/templates | 1 + 2 files changed, 13 insertions(+) create mode 100644 playbooks/debug.yml create mode 120000 playbooks/templates (limited to 'playbooks') diff --git a/playbooks/debug.yml b/playbooks/debug.yml new file mode 100644 index 0000000..432e317 --- /dev/null +++ b/playbooks/debug.yml @@ -0,0 +1,12 @@ +--- + +- name: Debug + hosts: all + tasks: + - name: A + debug: + var: ansible_facts["distribution"] | lower + + - name: G + debug: + var: groups["all"] diff --git a/playbooks/templates b/playbooks/templates new file mode 120000 index 0000000..564a409 --- /dev/null +++ b/playbooks/templates @@ -0,0 +1 @@ +../templates \ No newline at end of file -- cgit v1.2.3