Initial commit
This commit is contained in:
4
playbooks/ansible.cfg
Normal file
4
playbooks/ansible.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[defaults]
|
||||
inventory = /ansible/inventory.ini
|
||||
host_key_checking = False
|
||||
remote_user = uansible
|
||||
9
playbooks/inventory.ini
Normal file
9
playbooks/inventory.ini
Normal file
@@ -0,0 +1,9 @@
|
||||
[ubuntu]
|
||||
ubuntu_node
|
||||
|
||||
[rocky]
|
||||
rocky_node
|
||||
|
||||
[all:vars]
|
||||
ansible_user=uansible
|
||||
ansible_ssh_private_key_file=/home/uansible/.ssh/id_rsa
|
||||
7
playbooks/test.yml
Normal file
7
playbooks/test.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Test connectivity
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Ping
|
||||
ansible.builtin.ping:
|
||||
Reference in New Issue
Block a user