commit 47ff6bcb42d18a3c60b34a27c47052defb56ab2c Author: root Date: Mon Feb 12 15:17:35 2024 +0200 1 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 }}"