[ansible-project] Re: syntax error... where there is no syntax error...

2017-03-16 Thread Joost Ringoot
Thanks *Andrew latham* This python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < ansible/playbooks/ apt/sssdconfig.yml has no output, so I guess syntax is correct. Thanks Kai Stian Olstad *-e should be key=value. * That fixes it*,* thanks I also did a test changing - hosts: "{{hosts}}" into

[ansible-project] Re: Tower jobs failing after upgrade - SCM update failed

2017-03-16 Thread Nicholas Chrysandreas
My SCM (using mercurial) is indeed on a non-standard port (8000) but when the I run an SCM update on the project it completes fine. Also when running a template the SCM update job that spawns completes successfully but the play job fails because it is checking the wrong job ID. I'm wondering if t

Re: [ansible-project] When will Ansible 2.3 be released?

2017-03-16 Thread Kevin Csuka
> > . > https://github.com/ansible/ansible/blob/devel/ROADMAP.rst -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.

[ansible-project] using variables in group_vars/*

2017-03-16 Thread Dave Cottlehuber
How can I reference another variable within group_vars files? Specifically, I have a bunch of RFC1918-style (loopback internal like 192.168.1.1) IP addresses for things that are referenced all over the place. Depending on the environment, those addresses are different (test/dev, production) and I

[ansible-project] Proxy for Cloning Git Repo

2017-03-16 Thread Taseer Ahmed
Hi all, I wanted to know if there is any way to pull git repos via a proxy when using Ansible. My setup does not have direct connection to the internet. Any help would be greatly appreciated. Thank you Best Regards, Taseer Ahmed -- You received this message because you are subscribed to the

[ansible-project] Why is using args from variables considered unsave?

2017-03-16 Thread MichaƂ Czeraszkiewicz
I'm trying out this playbook: --- - name: Test hosts: all vars: link_list: - src: /etc/hosts dest: /tmp/2 state: link - src: /etc/fstab dest: /tmp/1 state: link - src: /etc/hostname dest: /tmp/3 state: link - src: /et

Re: [ansible-project] Using sudosh instead of just sudo

2017-03-16 Thread Craig Wickesser
Nick - the only thing that ended up working for us was to add the commands we needed to run to /etc/sudoers ( in believe that's the correct place). That was very painful and annoying. We ended up switching to Salt. Good luck! On Wed, Mar 15, 2017 at 10:27 PM Nicholas Nezis wrote: > Was there e

[ansible-project] fail a play if a hosts: value is incorrect?

2017-03-16 Thread zlemini
Is it possible to configure Ansible to fail early if a *hosts:* value is incorrect, i.e. doesn't match a target machine in the inventory? If the *hosts: *value is undefined like this: - name: Test module(s) hosts: Then Ansible throws this: "ERROR! the field 'hosts' is required but was n

[ansible-project] Re: Error in creating instance (Inner Exception: create() takes at least 4 arguments (9 given))

2017-03-16 Thread Markku Tavasti
maanantai 7. marraskuuta 2016 16.15.59 UTC+2 Lars Van Casteren kirjoitti: > > > fatal: [localhost]: FAILED! => {"changed": false, "extra_data": null, > "failed": true, "msg": "Error in creating instance (Inner Exception: > create() takes at least 4 arguments (9 given))"} > > I got this error whe

[ansible-project] Re: become_user with sudo adds a -u flag

2017-03-16 Thread Justin Bleach
I've tried a number of combinations with the ansible.cfg and my playbook to no avail. If this was an open source project I could find out how the -u flag is being used. As it is I am at the mercy of this forum. On Wednesday, March 15, 2017 at 10:27:37 PM UTC-4, Justin Bleach wrote: > > I am gett

[ansible-project] Re: Tower jobs failing after upgrade - SCM update failed

2017-03-16 Thread cupcake
It affects every other job run in my setup. I run template X it fails because of prior job (even though I am not doing "update on launch") then i run it again and it goes through fine. Only testing it at the moment so not end of the world. I was thinking of just doing a stunnel wrapper maybe.

Re: [ansible-project] Re: become_user with sudo adds a -u flag

2017-03-16 Thread Brian Coca
I suspect su_root is not a user but an alias or program that then runs `su - root`, ansible will add -u if you set a user every time, the only way to avoid it by not setting a user. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Pro

Re: [ansible-project] using variables in group_vars/*

2017-03-16 Thread Brian Coca
It doesn't matter as the templating happens lazily (on use) not on processing the files. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [ansible-project] fail a play if a hosts: value is incorrect?

2017-03-16 Thread Brian Coca
It will skip the play cause no groups/hosts match. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googleg

[ansible-project] Ansible Tower -failure in playbook during package installation

2017-03-16 Thread Reji
All, I am running a playbook through Ansible Tower [ver 3.0.3]. The playbook installs java. It fails during the installation of the java package. We use yum for installing packages. Please note the error: TASK [java : Install oracle java - 1.8.0] ** fatal:

Re: [ansible-project] Re: become_user with sudo adds a -u flag

2017-03-16 Thread Justin Bleach
Just saw you're reply. You are correct. It was a program that does the su - root for me. Cue the Fail Horns. On Thursday, March 16, 2017 at 9:24:38 AM UTC-4, Brian Coca wrote: > > I suspect su_root is not a user but an alias or program that then runs > `su - root`, ansible will add -u if you se

[ansible-project] Re: become_user with sudo adds a -u flag

2017-03-16 Thread Justin Bleach
Turns out on my linux machine su_root is not a user but a script for doing 'su - root'. Given it's a script and not an actual user I can just use the command module like so: command: sudo su_root. Or put that in a with_items block underneath a command I am running. On Thursday, March 16, 2017 a

[ansible-project] Re: Raise Exception("Cannot import pyOpenSSL")

2017-03-16 Thread cupcake
might want to run with -v to get winrm info as well; what auth are you doing. I saw a similar issue and when i tried to user kerberos auth to AD some version of pyopenssl was installed so i tried to upgrade. pip install pyopenssl --upgrade received some errors with openssl/opensslv.h. yu

Re: [ansible-project] Proxy for Cloning Git Repo

2017-03-16 Thread Pshem Kowalczyk
Hi, Have you tried setting the environmental variable HTTP_PROXY to the point to your internal proxy server? http://docs.ansible.com/ansible/playbooks_environment.html kind regards Pshem On Thu, 16 Mar 2017 at 23:17 Taseer Ahmed wrote: > Hi all, > > I wanted to know if there is any way to

[ansible-project] Re: WinRM configuration script

2017-03-16 Thread Erick Sevmont
Hi Trond! I'm very interested, I just joined a project where I need this exactly, wondering if you still have that available, the link sends 404, I snooped a bit in https://github.com/trondhindenes but I didn't see it! Would you mind sharing this again if you have it handy? Thanks! Erick On

[ansible-project] Re: WinRM configuration script

2017-03-16 Thread Matt Davis
You mean this one ? ;) On Thursday, March 16, 2017 at 11:43:11 AM UTC-7, Erick Sevmont wrote: > > Hi Trond! > > I'm very interested, I just joined a project where I need this exactly, > wondering i

[ansible-project] Re: Openstack module: Unable to create a router from specific users

2017-03-16 Thread Robson Ramos Barreto
Hi I did something like below and it worked as I wanted: - name: check if router exists shell: neutron --os-username="{{ os_user }}" --os-password="{{ os_user_password }}" --os-tenant-name="{{ os_project }}" --os-auth-url="{{ os_auth_url }}" router-list | awk '/{{ os_router_name }}/' | wc -l

[ansible-project] Network config modules (eos_config, ios_config) fuzzy matching lines, and what is the "config" parameter?

2017-03-16 Thread bboudrias via Ansible Project
Heya, *TLDR, the summary: *I'm trying to use Ansible 2.2's network modules to manage configs on EOS/IOS switches. I'm trying to find a module invocation that adds a number of, say, radius-server commands, removes any that aren't expected, and also diff properly before applying config so I can

Re: [ansible-project] Using sudosh instead of just sudo

2017-03-16 Thread Nicholas Nezis
Looks like this might solve my issue. https://github.com/ansible/ansible/issues/22718#issuecomment-287193691 Set "executable" in the ansible.cfg to "sudosh" I'll have to try it tomorrow at work. On Thursday, March 16, 2017 at 6:37:12 AM UTC-4, Craig Wickesser wrote: > > Nick - the only thing th