first commit
This commit is contained in:
commit
178fe48b9c
2
ansible.cfg
Normal file
2
ansible.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[defaults]
|
||||||
|
INVENTORY = inventory.yml
|
4
inventory
Normal file
4
inventory
Normal 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
15
inventory.yml
Normal 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
9
playbook.yaml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user