From 47ff6bcb42d18a3c60b34a27c47052defb56ab2c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 Feb 2024 15:17:35 +0200 Subject: [PATCH] 1 --- ansible.cfg | 2 ++ inventory | 2 ++ play.yml | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 ansible.cfg create mode 100644 inventory create mode 100644 play.yml diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..14c8065 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +host_key_checking = False diff --git a/inventory b/inventory new file mode 100644 index 0000000..65c5f33 --- /dev/null +++ b/inventory @@ -0,0 +1,2 @@ +[my] +192.168.220.116 web_status_id=teting diff --git a/play.yml b/play.yml new file mode 100644 index 0000000..2a2db52 --- /dev/null +++ b/play.yml @@ -0,0 +1,7 @@ +--- +- name: Ansible debug module in action + hosts: all + tasks: + - name: "Print a simple host variable from the inventory" + debug: + msg: "{{ web_status_id }}"