[ansible-project] Adding a nested xml element using ansible xml module fails

2018-03-27 Thread 'Uvindra Dias Jayasinha' via Ansible Project
Im using Ansible 2.5 on Ubuntu 17.10 Given the following xml file Trying to add nested elements so that the file is changed to the following output fails. Old Rasputin 2000 Here is the playbook I used - name: Add several more beers with the year

[ansible-project] Re: win_group_membership

2018-03-27 Thread Jordan Borean
You can currently only use the winrm connection plugin with Ansible to talk to Windows hosts. WinRM allows you to connect using both domain and local accounts and usually you need administrative rights on that host to both connect and manipulate group membership. WinRM allows you to

[ansible-project] Re: Cannot enable WinRM remoting on Windows 10 Home Edition

2018-03-27 Thread Jordan Borean
As others have pointed out, WinRM is enabled but it is rejecting the user you are trying to connect with. This can be due to numerous reasons but here are the most common ones * The username or password is incorrect * Basic auth is not enabled on the WinRM side, need to run *Set-Item -Path

[ansible-project] win_group_membership

2018-03-27 Thread anil kumar
Hello, few questions on this module - Context - we have Cloudform, that spins up windows machine and joins it to domain, now I need to add user to the local "Remote Desktop user" group on target windows machine. I hoping to achieve that using win_group_membership module, now my questions are

[ansible-project] Re: Cannot enable WinRM remoting on Windows 10 Home Edition

2018-03-27 Thread anil kumar
Check here - https://github.com/ansible/ansible/issues/16478 On Tuesday, March 27, 2018 at 11:12:50 AM UTC-4, J Hawkesworth wrote: > > double check the password is correct - that error implies the > username/password combination doesn't exist or is incorrect on the windows > hosts. > > On

Re: [ansible-project] How to loop var number of times with Ansible 2.5

2018-03-27 Thread Kai Stian Olstad
On Tuesday, 27 March 2018 21.38.32 CEST ddrake2...@gmail.com wrote: > Hi, > > Just looking over the new looping documentation for Ansible 2.5 and I'm not > sure how to loop a var number of times. It seems that everything now needs > to be a list that is fed into loop. We used to be able to run

[ansible-project] How to loop var number of times with Ansible 2.5

2018-03-27 Thread ddrake2012
Hi, Just looking over the new looping documentation for Ansible 2.5 and I'm not sure how to loop a var number of times. It seems that everything now needs to be a list that is fed into loop. We used to be able to run "with_sequence: count=var" To loop var number of times. Is there any easy

[ansible-project] What are the best practices for adding and removing users/groups to /etc/security/pam_winbind.conf?

2018-03-27 Thread Tony Chia
in particular I am looking to manage the require_membership_of field in /etc/security/pam_winbind.conf through ansible. # make successful authentication dependend on membership of one SID # (can also take a name) require_membership_of = user1,group1 -- You received this message because you

Re: [ansible-project] Issues with Network Automation

2018-03-27 Thread Andrew Latham
Jon http://docs.ansible.com/ansible/latest/modules/expect_module.html is what you may want to try. On Tue, Mar 27, 2018 at 10:31 AM, Jon wrote: > >

[ansible-project] Issues with Network Automation

2018-03-27 Thread Jon
Hi all, I am having issues with using Ansible on the HP Aruba 3810. This is due to the Aruba requesting a "Press

Re: [ansible-project] BigIP timing out while running playbook

2018-03-27 Thread Tim
It's likely due to your connection parameters. First, take a look at your "server" parameter. You're specifying inventory_hostname for it, so the module expects that the value that is eventually dropped there (the host in "mygroups" is resolvable in either DNS or your hosts file). For example,

[ansible-project] Re: Cannot enable WinRM remoting on Windows 10 Home Edition

2018-03-27 Thread 'J Hawkesworth' via Ansible Project
double check the password is correct - that error implies the username/password combination doesn't exist or is incorrect on the windows hosts. On Tuesday, March 27, 2018 at 4:09:21 PM UTC+1, Dinesh Vashisht wrote: > > > While trying to enable PowerShell removing on Windows 10 Home Edition >

[ansible-project] Cannot enable WinRM remoting on Windows 10 Home Edition

2018-03-27 Thread Dinesh Vashisht
While trying to enable PowerShell removing on Windows 10 Home Edition following error displayed: 192.168.169.76 | UNREACHABLE! => { "changed": false, "msg": "ssl: the specified credentials were rejected by the server", "unreachable": true } The '/etc/ansible/hosts' and 'group_vars'

Re: [ansible-project] ansiible: skip when not type function

2018-03-27 Thread Kai Stian Olstad
On Tuesday, 27 March 2018 16.43.50 CEST z z wrote: > > - name: Httpd running ? > shell: ps axo args | grep httpd | grep -v grep > register: apache > failed_when: false > ignore_errors: yes <* if this removed I get red error on non httpd > servers* > > - name: Copy script >

[ansible-project] ansiible: skip when not type function

2018-03-27 Thread z z
- name: Httpd running ? shell: ps axo args | grep httpd | grep -v grep register: apache failed_when: false ignore_errors: yes <* if this removed I get red error on non httpd servers* - name: Copy script get_url: url: "http://anotherscript.sh dest: /tmp/anotherscript.sh

Re: [ansible-project] command using pipes does not work when using ansible without a playbook

2018-03-27 Thread Abey Thomas
Hi Kai, Did not know that I had use shell. Thanks . Works OK. ansible -i ./ec2.py 192.168.108.53 -m shell -s -u ansible -a "rpm -qa --last | grep kernel" Regards, Abey On Tuesday, March 27, 2018 at 2:54:19 PM UTC+1, Kai Stian Olstad wrote: > > On Tuesday, 27 March 2018 15.50.48 CEST Abey

Re: [ansible-project] About using docker.io/ansible/ansible:httptester

2018-03-27 Thread Matt Martz
When using the container that is on docker hub, there is no need to run services.sh. The "CMD" in the Dockerfile will run services.sh automatically. The image exposes 80/443, but you also have to instruct docker to publish them. Such as `-p 80:80 -p 443:443`: $ docker run --rm -d -p 80:80 -p

Re: [ansible-project] command using pipes does not work when using ansible without a playbook

2018-03-27 Thread Kai Stian Olstad
On Tuesday, 27 March 2018 15.50.48 CEST Abey Thomas wrote: > I would like to use ansible to execute commands on a host. > > This works > ansible -i ./ec2.py 192.168.108.53 -s -u ansible -a "rpm -qa --last kernel" > > This does not work as expected the output of rpm is given as the final >

[ansible-project] command using pipes does not work when using ansible without a playbook

2018-03-27 Thread Abey Thomas
Hi, I would like to use ansible to execute commands on a host. This works ansible -i ./ec2.py 192.168.108.53 -s -u ansible -a "rpm -qa --last kernel" This does not work as expected the output of rpm is given as the final output. I would like to filter the output further. ansible -i

[ansible-project] About using docker.io/ansible/ansible:httptester

2018-03-27 Thread Albert Shamsiyan
Hi I'm trying to use docker.io/ansible/ansible:httptester. When /services.sh is executed, following errors are prompted: 2018/03/27 13:39:46 [emerg] 43#43: bind() to 0.0.0.0:80 failed (98: Address in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use) 2018/03/27 13:39:46

Re: [ansible-project] BigIP timing out while running playbook

2018-03-27 Thread Marcos Alano
Could you send more debug messages? I think you should delegate the task to localhost instead of use "connection: local". On Tue, Mar 27, 2018 at 9:36 AM, eric landers wrote: > I'm trying to run the below playbook. It gets to the modules task, does > nothing for about a

[ansible-project] BigIP timing out while running playbook

2018-03-27 Thread eric landers
I'm trying to run the below playbook. It gets to the modules task, does nothing for about a minutes, then i get the below error. The BigIP is reachable via SSH from the ansible server. This playbook is working for other BigIP's. I'm also able to run ad-hoc commands from the ansible server to

Re: [ansible-project] file ... with_first_found uses unexpected value

2018-03-27 Thread Kai Stian Olstad
On 27.03.2018 13:09, Werner Flamme wrote: Kai Stian Olstad [27.03.2018 12:17]: with_first_found always do lookup on localhost not the remote host. To get files on remote you need to use the find module. Oh, thanks, I didn't see this mentioned on the

Re: [ansible-project] Command timeout adjustment in 2.5 with new network modules?

2018-03-27 Thread Peter Sprygada
For network_cli connections, we do not support a per command timeout today. This is something we are looking at adding but as of 2.5, there is only the global timeout parameter. On Mon, Mar 26, 2018 at 4:18 AM 'Scott Pettit' via Ansible Project < ansible-project@googlegroups.com> wrote: >

Re: [ansible-project] file ... with_first_found uses unexpected value

2018-03-27 Thread Werner Flamme
Kai Stian Olstad [27.03.2018 12:17]: > On 27.03.2018 11:44, Werner Flamme wrote: >> Hi all, >> >> I have a piece of code that gives an unexpected error: >> >> --- snip --- >> - name: link the proper certificate issue directory >> file: >> src: '{{ item }}' >> dest: '/etc/mycert/current'

Re: [ansible-project] file ... with_first_found uses unexpected value

2018-03-27 Thread Kai Stian Olstad
On 27.03.2018 11:44, Werner Flamme wrote: Hi all, I have a piece of code that gives an unexpected error: --- snip --- - name: link the proper certificate issue directory file: src: '{{ item }}' dest: '/etc/mycert/current' state: link follow: yes with_first_found: -

[ansible-project] Re: win_shell failing since Ansible 2.5 (?)

2018-03-27 Thread Jeremie Levy
Thanks Jordan! I am able to bypass this issue by checking the directory with win_stat and use a register as a condition for the win_shell. I noticed the handlers are now working which is great :) Thanks again! On Tuesday, March 27, 2018 at 2:50:05 AM UTC+3, Jordan Borean wrote: > > Sidenote:

[ansible-project] file ... with_first_found uses unexpected value

2018-03-27 Thread Werner Flamme
Hi all, I have a piece of code that gives an unexpected error: --- snip --- - name: link the proper certificate issue directory file: src: '{{ item }}' dest: '/etc/mycert/current' state: link follow: yes with_first_found: - "/etc/mycert/von_2020" -

Re: [ansible-project] Dynamic Inventory and Openstack: how to cache ?

2018-03-27 Thread Ilyes Semlali
I've found some doc ! https://docs.openstack.org/os-client-config/latest/user/configuration.html#ipv6 Le lundi 26 mars 2018 16:00:07 UTC+2, Ilyes Semlali a écrit : > > Any suggestions on where to find some documentation on "the config there" > ? I've looked through a few source code to check

[ansible-project] Cannot provision VM in Azure using Ansible

2018-03-27 Thread cloudworld79
Team, Trying to provision VM in Azure Environment using Ansible. However, getting error while running the command - $ sudo ansible-playbook azure_create_vm.yml PLAY [Create Azure VM] * TASK [Gathering Facts]