From 178fe48b9c8f29fc3a5240edb9a4dae3cd60086a Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 18 Mar 2023 00:06:52 +0530 Subject: [PATCH] first commit --- README.md | 0 ansible.cfg | 2 ++ inventory | 4 ++++ inventory.yml | 15 +++++++++++++++ playbook.yaml | 9 +++++++++ 5 files changed, 30 insertions(+) create mode 100644 README.md create mode 100644 ansible.cfg create mode 100644 inventory create mode 100644 inventory.yml create mode 100644 playbook.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..66c09e6 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +INVENTORY = inventory.yml diff --git a/inventory b/inventory new file mode 100644 index 0000000..203b815 --- /dev/null +++ b/inventory @@ -0,0 +1,4 @@ +[ansibletest] +in.projectsegfau.lt ansible_user=root ansible_port=6945 +in.projectsegfau.lt ansible_user=root ansible_port=6946 +in.projectsegfau.lt ansible_user=root ansible_port=6947 diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..1c78eef --- /dev/null +++ b/inventory.yml @@ -0,0 +1,15 @@ +ansibletest: + hosts: + ansible01: + ansible_host: in.projectsegfau.lt + ansible_user: root + ansible_port: 6945 + ansible02: + ansible_host: in.projectsegfau.lt + ansible_user: root + ansible_port: 6946 + ansible03: + ansible_host: in.projectsegfau.lt + ansible_user: root + ansible_port: 6947 + diff --git a/playbook.yaml b/playbook.yaml new file mode 100644 index 0000000..397949a --- /dev/null +++ b/playbook.yaml @@ -0,0 +1,9 @@ +- name: My first play + hosts: ansibletest + tasks: + - name: Ping my hosts + ansible.builtin.ping: + - name: Print message + ansible.builtin.debug: + msg: Hello world +