Re: [ansible-project] junos_scp not working

2019-05-17 Thread Ganesh Nalawade
Based on the logs it seems you have not set the value of provider argument in the task. junos_scp module requires the provider key to be set. More details refer the module documentation https://docs.ansible.com/ansible/latest/modules/junos_scp_module.html On Fri, May 17, 2019 at 4:38 PM Yan Sun

[ansible-project] Ansible copy files from remote host to network share

2019-05-17 Thread Andy Magana
I am trying to get a playbook to run the open-scap scanner but I need those results on the remote host to be copied over to a network share I am trying something like this but getting "permission denied" - name: find it find: path: /tmp/ patterns:

[ansible-project] junos_scp not working

2019-05-17 Thread Yan Sun
WARNING: The below traceback may *not* be related to the actual failure. File "/tmp/ansible_junos_scp_payload_jlnsCA/__main__.py", line 165, in main device = connect(module) File "/tmp/ansible_junos_scp_payload_jlnsCA/__main__.py", line 114, in connect device = Device(host, **kwargs)

[ansible-project] junos_scp not working

2019-05-17 Thread Yan Sun
WARNING: The below traceback may *not* be related to the actual failure. File "/tmp/ansible_junos_scp_payload_jlnsCA/__main__.py", line 165, in main device = connect(module) File "/tmp/ansible_junos_scp_payload_jlnsCA/__main__.py", line 114, in connect device = Device(host, **kwargs)

Re: [ansible-project] Re: How to try one task in Ansible ?

2019-05-17 Thread Mauricio Tavares
On Fri, May 17, 2019 at 10:36 AM Dan Linder wrote: > > > Your second question: >> >> But when i run my script with module command or script or shell, the state >> is changed but i'm not rassure if all task in my script is execut ...? > > > When you use the `script:` module, anything that script

[ansible-project] Role requiments other roles

2019-05-17 Thread Rafael Tomelin
Hi, I create new role for deploy services in cloud. My role requirement role azure.azure_preview_modules, but can`t execute. Not possible configuration with dependencies but execution role. How is create requirement in role other role? -- Atenciosamente, Rafael Tomelin Tel.: 51-984104084

[ansible-project] Re: How to try one task in Ansible ?

2019-05-17 Thread Dan Linder
Your second question: > But when i run my script with module command or script or shell, the state > is changed but i'm not rassure if all task in my script is execut ...? When you use the `script:` module, anything that script does on your remote system is outside of the control of Ansible.

Re: [ansible-project] Docker module error

2019-05-17 Thread Daniel Whitley
Hello- Without all the info, this looks similar to something I ran into. Try: pip3 install docker This will install the docker Python module for the version of Python that Ansible is using (3.6.7). Better yet, have a task in your playbook install it prior to using the docker Ansible module.

[ansible-project] Proxy/requests

2019-05-17 Thread Renato Marcandier
Hello all, I have a question regarding proxy/requests. Can Ansible proxy its requests through a single IP? So I can scale up the Ansible hosts and not have to update all my firewall rules with new IP. Regards RG -- You received this message because you are subscribed to the Google

[ansible-project] Re: IDRAC in DELL R610 with ipmi_power

2019-05-17 Thread Kevin Kwon
Hi.. Kai! Thank you so much your help! after change my playbook like below, it is working successfully. Have a nice weekend! Kevin root@ubuntu-Ansible:~# cat Host-Power_Off-01.yml --- - name: Power Off to Host - TEST *hosts: localhost* tasks: - name: Power OFF Server ipmi_power:

Re: [ansible-project] Re: query psql

2019-05-17 Thread Stefan Hornburg (Racke)
On 5/17/19 10:54 AM, Pierre Ochsenbein wrote: > Any feedback about my error? > The quotes are missing around vro03 when you execute it with Ansible. BTW: Ansible 2.8. comes with a postgresql_query module. Regards Racke > > > Le jeu. 16 mai 2019 à 16:47, Pierre Ochsenbein

[ansible-project] Re: query psql

2019-05-17 Thread Pierre Ochsenbein
Any feedback about my error? Le jeu. 16 mai 2019 à 16:47, Pierre Ochsenbein a écrit : > Hi Guys > > I want to use a SQL query in PostgreSQL Database with ansible and a > varibale which is call db_name. > I have the result with my varibale. > My problem is I don't know how interpret ' '

Re: [ansible-project] Generating a single line comma separated string variable from host group

2019-05-17 Thread Kai Stian Olstad
On 17.05.2019 07:15, James Armstrong wrote: > Hey, > > I've been pulling my hair out over what seems like a relatively simple task > for hours now. > > I've working on playbook for an Elasticsearch deployment. One requirement > for this is a config file item that is effectively just a comma

Re: [ansible-project] IDRAC in DELL R610 with ipmi_power

2019-05-17 Thread Kai Stian Olstad
On 17.05.2019 06:39, Kevin Kwon wrote: > I am trying to power management by "impi_power" > > First, I had checked the "ipmitool" is working on Ansible-Controller like > below. > > root@ubuntu-Ansible:~# > root@ubuntu-Ansible:~# ipmitool -I lanplus -H 192.168.200.211 -U root -P > password power

[ansible-project] how to get Host IPs

2019-05-17 Thread SarathChandra Bhaskara
hi, this is sarath, i have a group with 2 ips. i want to populate those 2 IPs once by one in ansible content module. how can i do that. i used {{ ansible_facts["eth0"]["ipv4"]["address"] }} but in the content file i m getting only one ip not 2 ips in content module. can some one help in this

[ansible-project] Re: How to try one task in Ansible ?

2019-05-17 Thread Ryad karkar
Hey, I want verify if my script is well execut and all task in my script is ok. But when i run my script with module command or script or shell, the state is changed but i'm not rassure if all task in my script is execut ...? Do you understand ? Thanks very much guy :) Regards, Le jeudi 16

[ansible-project] Docker module error

2019-05-17 Thread idemia pune
Hi, Please help to get this resolved, tried all most everything. Ansible Version: ansible 2.7.10 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/stack/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location =