Re: [ansible-devel] requirements.yml failing due to a non existant new line char

2021-02-18 Thread John Westcott
For issues with Ansible Tower its best to open a support ticket with Red Hat. -John > On Feb 18, 2021, at 7:46 AM, tntda...@gmail.com wrote: > > Hi all, > > I have this problem that for the life of me I cannot figure out... been > bashing my head for a day now with no luck. > > I have a rol

Re: [ansible-devel] Ansible Tower Copy Module can't find file on Ansible Controller

2020-10-01 Thread John Westcott
Tower runs Ansible through bubble wrap which is like a chroot jail. The /tmp available in the bubble wrap environment may not be the same /tmp on the actual Tower server. If you need a directory exposed to the bubble wrap container look in settings => jobs => path to expose to isolated jobs. -Jo

Re: [ansible-devel] json parsing help

2020-08-29 Thread John Westcott
If I’m reading the json right, try: {{ hc_pim_info.dpListProcessesReply.dpServiceList.dpService[0][‘@Name’] }} -John Sent from my iPhone > On Aug 28, 2020, at 16:41, Kevin Hoyt wrote: > > Hi everyone, I'm just learning ansible and having some trouble parsing out > some json data. I'm hoping

Re: [ansible-devel] Ansible - Using the http get method to pull data SSL Cert data

2020-07-08 Thread John Westcott
formation from the load balancer itself, it's about 12 pages. When I > run my playbook, I'm not even close to that number of pages being retrieved. > > Hope this helps. > > Thanks. > > On Wed, Jul 8, 2020 at 12:15 PM John Westcott <mailto:john.westcott...@redhat.c

Re: [ansible-devel] Ansible - Using the http get method to pull data SSL Cert data

2020-07-08 Thread John Westcott
I’m not sure if I am understanding the question correctly but if you are trying to get the SSL certificate that is being served through a port you could look at the get_certificate module https://docs.ansible.com/ansible/latest/modules/get_certificate_module.html#get-certificate-module

Re: [ansible-devel] ERROR! the field 'hosts' is required but was not set

2020-02-09 Thread John Westcott
FYI, because the hyphen of roles was at the same level as name it was treated as a second play in the playbook. Your first play did nothing as dude against the dev hosts. Your second play applied roles to an unspecified list of hosts. Thus the error of hosts being required. -John Sent from my

Re: [ansible-devel] Cant SSH / PING to Network Devices

2020-01-10 Thread John Westcott
Based on the output it appears that Ansible is able to reach the device just not able to authenticate. I say that because you get the line: > "msg": "Authentication failure.", Where as if Ansible was unable to reach the device at all I would expect something like this: "msg": "Failed t

Re: [ansible-devel] custom module is failing with MODULE FAILURE\nSee stdout/stderr for the exact error" rc:0

2020-01-10 Thread John Westcott
Have you figure this out? It looks like ansible can’t parse the return from your module. Do you have any prints in your module dumping extra data out? Ansible should also be giving you stdout and stderr lines with this message. For example, I wrote a module that prints a message that looks like jso