first commit

This commit is contained in:
Arya 2023-03-18 00:06:52 +05:30
commit 178fe48b9c
Signed by: arya
GPG Key ID: 842D12BDA50DF120
5 changed files with 30 additions and 0 deletions

0
README.md Normal file
View File

2
ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
INVENTORY = inventory.yml

4
inventory Normal file
View File

@ -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

15
inventory.yml Normal file
View File

@ -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

9
playbook.yaml Normal file
View File

@ -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