https://github.com/imjoseangel/ansiblestuff
My ansible stuff
https://github.com/imjoseangel/ansiblestuff
Last synced: 10 days ago
JSON representation
My ansible stuff
- Host: GitHub
- URL: https://github.com/imjoseangel/ansiblestuff
- Owner: imjoseangel
- Created: 2017-07-04T09:22:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T08:23:21.000Z (about 5 years ago)
- Last Synced: 2025-01-06T16:39:53.404Z (9 months ago)
- Language: Python
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Scripts and Documentation Repository
## Commands Learned
Run the ansible command that lists all of the hosts configured in your control server 'hosts' file for the system.
`ansible all -m setup -a 'filter=ansible_*_ipv4*'`Using the 'setup' module for ansible, list all of the known facts on the local | all systems.
`ansible local | all -m setup`While listing the facts on the local system, filter the list showing only the content pertaining to the system IP addresses.
`ansible local -m setup -a 'filter=ans*ipv4*'`
async: 300 -> Number of seconds
poll: 3 -> Number of simultaneous hostsCopy Module: Backup option = yes - Very Useful. Avoids overriding files and creates a backup if they exist.