Re: [ansible-project] Connection via Citrix

2019-09-26 Thread goforawalktwice .
Hi, Unless I'm missing something then the main thing to know is that a server being used to have applications published from (as opposed to the citrix delivery controllers) is just like any other server - it can run WinRM which is how Ansible interacts with a windows server. As it happens my compan

[ansible-project] PowerShell foreach loop in AWX?

2019-09-26 Thread Deven Suji
I've recently deployed a POC automation platform involving ServiceNow and AWX. I have a use case to automate access to windows servers. The ServiceNow form will be supplying me 10 windows server names at a time. I did write this Powershell script to handle multiple computer objects and it wo

[ansible-project] Failed to install ansible tower on CentOS 7

2019-09-26 Thread Sunil
I'm new to Ansible. I am failed to install ansible tower due to awx-manage migrate. Can some one review and help me? ansible 2.8.4 python 2.7.5 ansible tower - 3.4.2.-1 ( i tired 3.4 version also, got same issue on that) Getting below error TASK [awx_install : Wait for supervisor to stop

[ansible-project] Ansible Tower install is failing due to awx-manage migrate

2019-09-26 Thread Sunil
I new to Ansible and learning and installing Ansible tower on CentOS 7. ansible 2.8.4 python 2.7.5 ansible tower - 3.4.2.-1 ( i tired 3.4 version also, got same issue on that) Getting below error TASK [awx_install : Wait for supervisor to stop.] ** ok: [localho

[ansible-project] Re: [Ansible-Project] Launching applications remotely with GUI

2019-09-26 Thread Jordan Borean
The same comments in that linked post still pretty much applies here. There is never a guarantee that there will always be an interactive session that has a logged on user so whatever you write will be quite brittle unless you have some pretty in depth checks to conditionally run this beforehand

Re: [ansible-project] Hello guys, I'm unable to pass a dynamic inventory script to read a yml file from repo

2019-09-26 Thread Bariou Alarou
Le jeudi 26 septembre 2019 16:10:15 UTC-4, Vladimir Botka a écrit : > > > > usage: > > > > inventory.py [-h] [--sshkey SSHKEY] [--commit > > > > COMMIT] url inventory inventory.py: error: too few arguments > > > > > > Extra variables (-e, --extra-vars) are passed to the play not to the >

Re: [ansible-project] Hello guys, I'm unable to pass a dynamic inventory script to read a yml file from repo

2019-09-26 Thread Vladimir Botka
> > usage: > > > inventory.py [-h] [--sshkey SSHKEY] [--commit > > > COMMIT] url inventory inventory.py: error: too few arguments > > > > Extra variables (-e, --extra-vars) are passed to the play not to the > > dynamic > > inventory script. Create a wrapper for inventory.py with the parame

Re: [ansible-project] Hello guys, I'm unable to pass a dynamic inventory script to read a yml file from repo

2019-09-26 Thread Bariou Alarou
Le jeudi 26 septembre 2019 15:03:04 UTC-4, Vladimir Botka a écrit : > > On Thu, 26 Sep 2019 09:56:26 -0700 (PDT) > Bariou Alarou > wrote: > > > I'm able to get the list of my hosts from the yml file when running this > > command > > $ /opt/ansible/static/inventory/inventory.py > > https://gi

Re: [ansible-project] Hello guys, I'm unable to pass a dynamic inventory script to read a yml file from repo

2019-09-26 Thread Bariou Alarou
Thanks for your response. Where do I have to create the wrapper file? (is it in ansible.cfg) file. Le jeudi 26 septembre 2019 15:03:04 UTC-4, Vladimir Botka a écrit : > > On Thu, 26 Sep 2019 09:56:26 -0700 (PDT) > Bariou Alarou > wrote: > > > I'm able to get the list of my hosts from the yml fi

Re: [ansible-project] Hello guys, I'm unable to pass a dynamic inventory script to read a yml file from repo

2019-09-26 Thread Vladimir Botka
On Thu, 26 Sep 2019 09:56:26 -0700 (PDT) Bariou Alarou wrote: > I'm able to get the list of my hosts from the yml file when running this > command > $ /opt/ansible/static/inventory/inventory.py > https://github.com/adeyeri88/test.git staging.yml > [...] > But when I'm trying now to run any ansi

[ansible-project] Hello guys, I'm unable to pass a dynamic inventory script to read a yml file from repo

2019-09-26 Thread Bariou Alarou
I'm able to get the list of my hosts from the yml file when running this command $ /opt/ansible/static/inventory/inventory.py https://github.com/adeyeri88/test.git staging.yml { "_meta": { "hostvars": {} }, "db": { "children": [ "db-site2", "d

Re: [ansible-project] Any ansible module to JBOSS Explode ear file in the target server

2019-09-26 Thread Dick Visser
https://docs.ansible.com/ansible/latest/modules/jboss_module.html ? On Thu, 26 Sep 2019 at 14:30, Mona Gopal wrote: > > Hi, > > I have a ear file in my local. > And this needs to be exploded on the target machine. > Apart from the unarchive module. Is there any JBOSS explode option in Ansible? >

Re: [ansible-project] SLES 15 SP1 SAet to Permissive Mode

2019-09-26 Thread Stefan Hornburg (Racke)
On 9/26/19 2:28 PM, Keith Mills wrote: > Why doesn't this have anything to do with Ansible? I'm trying to do this with > Ansible! I'm asking if there's a way to do > it within Ansible! How would I set up the Ansible task? Well if you can come up with a shell command that does what you want, we ca

[ansible-project] Any ansible module to JBOSS Explode ear file in the target server

2019-09-26 Thread Mona Gopal
Hi, I have a ear file in my local. And this needs to be exploded on the target machine. Apart from the unarchive module. Is there any JBOSS explode option in Ansible? Thanks in advance, Mona -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] SLES 15 SP1 SAet to Permissive Mode

2019-09-26 Thread Keith Mills
Why doesn't this have anything to do with Ansible? I'm trying to do this with Ansible! I'm asking if there's a way to do it within Ansible! How would I set up the Ansible task? On Monday, September 23, 2019 at 11:24:58 AM UTC-5, Kai Stian Olstad wrote: > > On 23.09.2019 16:19, Keith Mills wrote:

[ansible-project] Re: [Ansible-Project] Launching applications remotely with GUI

2019-09-26 Thread Harini K
Reference to old post with the same problem : https://grokbase.com/p/gg/ansible-project/16442gt7pz/launching-applications-remotely-with-gui I tried with the below options of launching application in GUI mode both through Power shell and Ansible (win_shell) *Option #1:* Enter-PSSession -Comput

[ansible-project] [Ansible-Project] Launching applications remotely with GUI

2019-09-26 Thread Harini K
I tried with the below options of launching application in GUI mode. Procedure : #1 Enter-PSSession -ComputerName -Credential $cred Start-Process 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Snipping Tool.lnk' Procedure: #2 Invoke-Command -Computername -ScriptBlock

[ansible-project] Ansible-Project. ::: Launching applications remotely with GUI

2019-09-26 Thread Harini K
Hi Team, https://grokbase.com/p/gg/ansible-project/164593543v/launching-applications- remotely-with-gui With reference to above discussion, could you pls guide me. I tried with the below options of launching application in GUI mode. Procedure : #1 Enter-PSSession -ComputerName -Credential

[ansible-project] Re: os_server_volume module - Can not find server to attach volume to

2019-09-26 Thread Maiken Pedersen
Forgot to add that I believe it is the server it cannot find since if I check the code line 107 corresponds to: https://github.com/ansible/ansible/blob/stable-2.8/lib/ansible/modules/cloud/openstack/os_server_volume.py#L107 dev = cloud.get_volume_attach_device(volume, server.id) On Thursday,

[ansible-project] os_server_volume module - Can not find server to attach volume to

2019-09-26 Thread Maiken Pedersen
Hi, I am facing a puzzling error. I have earlier used os_volume and os_server_volume modules to create and attach openstack volumes to openstack instances. I have successfully created the volume with the os_volume module and can see it with the openstack client using (openstack_venv) [cento

[ansible-project] Undefined variable error when passing to include_task file in loop

2019-09-26 Thread Mohtashim S
I am dealing with nested loops inorder to build dynamic host using add_host. Outer Loop: with_items: "{{ command_result.stdout_lines }}" // gets > me the list of users > Inner Loop: with_items: "{{ dest_ip.split(',') }}" // gets > me the list of IP addresses seperated by comm