Ansible scripting
Ansible scripting
(OP)
Anyone have any experience with Ansible and setting up scripts to patch gateways? Or change passwords on gateways and servers from the cli?
Kevin
Kevin
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you a
Computer / IT professional? Join Tek-Tips Forums!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
|
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Ansible scripting
You need to create inventory files to load into Tower for these to work.
There are two YML's, one for patching, and one for passwords. and one Python file for SSH commands to run in the gateways. You must use Python3 and Parimeko version to match.
Only allowed one attachment per post, so look for the follow on posts.
RE: Ansible scripting
RE: Ansible scripting
CODE
RE: Ansible scripting
Unfortunately python code without indentation is not readable. To post your code with proper formatting, please place it between the tags