Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
[root@ams-bkp-101 Unix]# ls -lrta | |
total 160 | |
-rwx------. 1 root root 52 Mar 12 03:16 cvpkgseed | |
-rwx------. 1 root root 52 Mar 12 03:16 support | |
-rwx------. 1 root root 10 Mar 20 01:00 pkg.xml.description | |
-rwx------. 1 root root 80514 Mar 20 01:00 pkg.xml | |
-rwx------. 1 root root 118 Mar 20 01:00 version | |
-rwx------. 1 root root 132 Mar 20 01:00 silent_install | |
-rwx------. 1 root root 47053 Mar 20 01:00 detect | |
-rwx------. 1 root root 132 Mar 20 01:00 cvpkgadd |
[root@ansible-box ansible]# ansible --version | |
ansible 2.5.3 | |
config file = /root/ansible/ansible.cfg | |
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/lib/python2.7/site-packages/ansible | |
executable location = /bin/ansible | |
python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] |
[root@ansible-box ansible]# ansible all --list-hosts | |
hosts (4): | |
db101.techbeatly.com | |
localhost | |
servera.techbeatly.coms | |
serverb.techbeatly.com | |
[root@ansible-box ansible]# ansible intranetweb --list-hosts | |
hosts (2): | |
servera.techbeatly.com |
# Version 2.0.0 - [email protected] | |
import os | |
import socket | |
import subprocess, shlex | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKGREEN = '\033[92m' | |
WARNING = '\033[93m' |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of