📖 DOC: Added Ansible Config File + Added Ansible Commands
This commit is contained in:
14
README.md
14
README.md
@@ -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
3
ansible.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
[defaults]
|
||||
inventory = inventory
|
||||
private_key_file = ~/.ssh/ansible
|
||||
Reference in New Issue
Block a user