Re: [ansible-project] Variable in Ansible Role

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/6/19 8:48 AM, Rahul Rawat wrote: > Hi, > > I have to parse variable in static PowerShell script which will copy through > win_copy module on target machine. > Means when file copy on target machine after running playbook it should have > values of those variable. > > I've keep variable in

[ansible-project] Ansible AWX installation using docker compose

2019-12-05 Thread Rahul Rawat
Hi I have install ansible AWX using docker compose. Now check process using docker ps command. How i can access application through outside centos 7 image. [image: dockerps.png] regards, Rahul -- You received this message because you are subscribed to the Google Groups "Ansible Project" g

[ansible-project] Variable in Ansible Role

2019-12-05 Thread Rahul Rawat
Hi, I have to parse variable in static PowerShell script which will copy through win_copy module on target machine. Means when file copy on target machine after running playbook it should have values of those variable. I've keep variable in default like: user_name: ** password: ** and

Re: [ansible-project] Re: Need help using URI module for a curl command with json body

2019-12-05 Thread Robert Heppe
Hi Bram, Yes, I just removed the IP for the post. I think connectivity should be fine as I can telnet to the hostname from the ansible system. [centos@jumphost ~]$ telnet us1-ki01 5601 Trying x.x.101.185... Connected to us1-ki01. Escape character is '^]'. ^] I wonder if I have the double heade

Re: [ansible-project] Loop over multiple tasks

2019-12-05 Thread Kai Stian Olstad
On 05.12.2019 19:13, Jamie Addessi wrote: The only way I've found to accomplish this is to call out to a tasks file within the loop, and include all 3 tasks there. But it would be nicer to be able to do it in a single playbook. - name: Loop control include_tasks: "tasks.yml"

[ansible-project] Loop over multiple tasks

2019-12-05 Thread Jamie Addessi
Hello, Is it possible in Ansible to loop over multiple tasks? Something like: - loop: "{{ mylist }}" - name: Task 1 do something with item step 1 - name: Task 2 do something with item step 2 - name: Task 3 do something with item step 3 The only w

Re: [ansible-project] ERROR! the role 'network_facts' was not found

2019-12-05 Thread Bram Mertens
Where have you stored the role you are using? Is it in any of the directories listed? HTH Bram On Thu, Dec 5, 2019 at 4:37 PM James Lawrence wrote: > ansible version > > root@DESKTOP-NI19EMN:/etc/ansible# ansible --version > ansible 2.9.1 > config file = /etc/ansible/ansible.cfg > configur

Re: [ansible-project] Gather List of VMs running on vmware esxi host

2019-12-05 Thread alicia
The VMware dynamic inventory plugin will track your running VMs, creating and updating an inventory (or list) of all VMs running in VMware: https://docs.ansible.com/ansible/latest/scenario_guides/vmware_scenarios/vmware_inventory.html

Re: [ansible-project] How to bypass a Linux server FID

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/5/19 3:55 PM, Deepanjan Acharya wrote: > I am stuck here in a case , i have couple of clustered App servers running > Weblogic on top of them.Servers are Linux > RHEL 7 and needs us to run "be fid" to access application locations i,e a > functional id.  > I am not able to bypass the same us

Re: [ansible-project] How can I call list as a conditional for ansible_hostname

2019-12-05 Thread rajthecomputerguy
Great Sam! On Monday, November 4, 2019 at 8:45:51 PM UTC+5:30, Sam Doran wrote: > > Use the search string test > > . > > when: ansible_net_hostname is search('(csr|asw)') > > > You could store the regexp in

Re: [ansible-project] Re: Testing Authentication with Ansible

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/5/19 3:20 PM, Adam wrote: > We've been experimenting using Selenium for things like this.  It's not > simple and will probably make your head hurt (it > makes mine hurt), but it is very flexible for things like this. There are numerous crawlers around that can be used for that task if you c

[ansible-project] ERROR! the role 'network_facts' was not found

2019-12-05 Thread James Lawrence
ansible version root@DESKTOP-NI19EMN:/etc/ansible# ansible --version ansible 2.9.1 config file = /etc/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/dist-pac

[ansible-project] How to bypass a Linux server FID

2019-12-05 Thread Deepanjan Acharya
I am stuck here in a case , i have couple of clustered App servers running Weblogic on top of them.Servers are Linux RHEL 7 and needs us to run "be fid" to access application locations i,e a functional id. I am not able to bypass the same using ansible. Wherein another user has sudo access and

[ansible-project] Re: Testing Authentication with Ansible

2019-12-05 Thread Adam
We've been experimenting using Selenium for things like this. It's not simple and will probably make your head hurt (it makes mine hurt), but it is very flexible for things like this. On Wednesday, December 4, 2019 at 3:16:13 PM UTC-5, Cade Lambert wrote: > > We have a CMS web application that

[ansible-project] How much time do you invest in tagging?

2019-12-05 Thread Adam
I'm curious how much time people invest in using tags on individual tasks. Do you use them to narrow your execution of a playbook down to very specific tasks? I use them extensively for role execution, but I've found it's hard to maintain tags when multiple tasks depend on one another. Does

Re: [ansible-project] Fwd: Ansible Tower installation problem - package not found

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/5/19 11:04 AM, Davide Scrimieri wrote: > > > > > Hello,  > I am writing as I have found no other solution online. > > I am trying to install a tower-setup-bundle (version 3.5.1) as the > installation process must happen offline. Hello Davide, please contact RedHat support. This list i

[ansible-project] Fwd: Ansible Tower installation problem - package not found

2019-12-05 Thread Davide Scrimieri
Hello, I am writing as I have found no other solution online. I am trying to install a tower-setup-bundle (version 3.5.1) as the installation process must happen offline. However whenever I reach the task Install the Tower RPM i get the error message TASK [packages_el : Install the Tower RPM.] *

Re: [ansible-project] Task Output import to SQL

2019-12-05 Thread Stefan Hornburg (Racke)
On 12/4/19 11:00 PM, Ansible_USer2019 wrote: > Hi Group, > > i want to run several jobs. How can the JSON result stored in a database or > something like that to check what happened?  > I am not using tower or awx.  > > So do i need to pipe the output into a text file and run another script to