commit 178fe48b9c8f29fc3a5240edb9a4dae3cd60086a Author: Arya Kiran Date: Sat Mar 18 00:06:52 2023 +0530 first commit 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 +