📖 DOC: Added Ansible Config File + Added Ansible Commands

This commit is contained in:
Yuri Lima
2023-08-20 02:17:08 +01:00
parent 1d4188ea13
commit 961059da18
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
# Run Ansible Playbook Test
- ansible all --key-file ~/.ssh/ansible -i inventory -m ping
# Run Ansible Playbook Once we have the .cfg Created
- ansible all -m ping
# Show our Servers List
- ansible all --list-hosts
# Shows all Data from the servers
- ansible all -m setup
- ansible all -m setup -a 'filter=ansible_distribution*'
- ansible all -m gather_facts
- ansible all -m gather_facts --limit root@49.13.21.211

3
ansible.cfg Normal file
View File

@@ -0,0 +1,3 @@
[defaults]
inventory = inventory
private_key_file = ~/.ssh/ansible

View File

@@ -1,2 +1,2 @@
server.yurilima.uk
root@49.13.21.211