[ansible-project] No Kerberos Credentials available and unspecified GSS Error: Ansible Tower

2016-05-03 Thread Chethan S
I have setup my Ansible Tower and Windows Kerberos / Active Directory authentication as specified here . It is the same procedure explained in the official documentation too.

Re: [ansible-project] Yum packages being skipped using Ansible 2.0.2.0

2016-05-03 Thread Larry Smith
You are absolutely correct. Thanks for that. I was just heading over there to check for similar bugs as well...Will contribute to that issue as seeing it as well... On Tuesday, May 3, 2016 at 10:44:52 PM UTC-4, Matt Martz wrote: > > It may be related to https://github.com/ansible/ansible/issues/

Re: [ansible-project] Yum packages being skipped using Ansible 2.0.2.0

2016-05-03 Thread Matt Martz
It may be related to https://github.com/ansible/ansible/issues/15211 On Tuesday, May 3, 2016, Larry Smith wrote: > So I am seeing something rather strange when using Ansible 2.0.2.0...If I > execute a play with the following tasks the second one is skipped. However > if I run the same play using

[ansible-project] Yum packages being skipped using Ansible 2.0.2.0

2016-05-03 Thread Larry Smith
So I am seeing something rather strange when using Ansible 2.0.2.0...If I execute a play with the following tasks the second one is skipped. However if I run the same play using Ansible 2.0.1.0 it runs as expected. Anyone else experienced anything similar? Thoughts? - name: installing epel

[ansible-project] Yum packages being skipped using 2.0.2.0

2016-05-03 Thread Larry Smith
So I am seeing something rather strange when using Ansible 2.0.2.0...If I execute a play with the following tasks the second one is skipped. However if I run the same play using Ansible 2.0.1.0 it runs as expected. Anyone else experienced anything similar? Thoughts? - name: installing epel

[ansible-project] Re: The async task did not return valid JSON: Extra data ...

2016-05-03 Thread Seth Alford
I get the same error on ansible-2.0.1.0-2.el7.noarch running on a CentOS Linux release 7.2.1511 (Core) system attempting to run the playbook on a CentOS release 5.5 (Final) system. --Seth On Wednesday, December 16, 2015 at 4:51:21 AM UTC-8, Nuriel Shem-Tov wrote: > > I just noticed that this wo

[ansible-project] What's the state on roles and with_items?

2016-05-03 Thread Johannes Kastl
Hi all, apparently roles allowed using with_items some time ago: https://github.com/ansible/ansible/issues/12623 https://github.com/ansible/ansible-examples/blob/master/language_features/roletest2.yml I read 2.1 will bring this feature back, but I only found examples using includes. https://docs

[ansible-project] Register variables in tasks that use with_items?

2016-05-03 Thread Johannes Kastl
Hi all, say I want to create a file for two users. I create a list containing the users and create a task with a loop using with_items: userlist: - foo - bar To avoid trouble I want to check if the target folder exists and fail if it does not. How to get this working? - name: "Check if fol

Re: [ansible-project] Settings for ansible_shell_type in inventory file not work

2016-05-03 Thread Johannes Kastl
On 21.04.16 11:02 WD Wang wrote: > $ ansible -i dev -m synchronize -a "src=node_modules/ ^^^ Is this just a typo in your mail? Before you use '... -i hosts ...', maybe this leads to your error? Johannes -- You received this message because you are subscribed to the Google Grou

[ansible-project] Re: Is there a json module yet?

2016-05-03 Thread Dan Lang
Would the lineinfile module be sufficient? If you're updating a single line in your JSON file, this seems appropriate. On Monday, May 2, 2016 at 2:59:15 PM UTC-4, Will LaSeur wrote: > > I'm looking for a quick way to update a json fil

Re: [ansible-project] Dynamic Group Var Name

2016-05-03 Thread Brian Coca
I think you want this: with_dict: "{{hostvars[inventory_hostname]['rdsusers' + env]}}" ​ -- 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] Configuring module_utils path?

2016-05-03 Thread Jonathan Rowlands
Dang! Glad it's in the pipeline at least. Thanks! On Tuesday, May 3, 2016 at 1:16:41 PM UTC-5, Brian Coca wrote: > > not yet, this is a feature planned for a future release. > > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Pro

[ansible-project] Configuring module_utils path?

2016-05-03 Thread Jonathan Rowlands
Is there a way to configure the module_utils path for supporting code like the way ANSIBLE_LIBRARY works with modules? -- 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

Re: [ansible-project] Configuring module_utils path?

2016-05-03 Thread Brian Coca
not yet, this is a feature planned for a future release. -- 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...@g

[ansible-project] Re: Windows - Ansible freezes when network connection disrupted

2016-05-03 Thread Matt Davis
Depending on what you're trying to do, doing it as a scheduled task/script might make sense in the interim (eg, see http://docs.ansible.com/ansible/win_scheduled_task_module.html) On Tuesday, May 3, 2016 at 11:09:12 AM UTC-7, Matt Davis wrote: > > SSH seems to be very tolerant of momentary conne

[ansible-project] Re: Windows - Ansible freezes when network connection disrupted

2016-05-03 Thread Matt Davis
SSH seems to be very tolerant of momentary connection losses, so long as the connection isn't actually "refused". WinRM under the covers is a very different beast (HTTP-based, logical connection instead of a single fixed TCP connection). It might be possible to retry certain parts of the WinRM

[ansible-project] Re: StartProcess doesn't work with raw

2016-05-03 Thread Matt Davis
hmm: ansible win -i hosts -m raw -a "start-process powershell" seems to work fine for me (though not sure what purpose that would serve, since the process will get nuked when the winrm connection closes). What is it you're trying to accomplish? On Tuesday, May 3, 2016 at 9:17:20 AM UTC-7, ja

[ansible-project] Windows - Ansible freezes when network connection disrupted

2016-05-03 Thread hodgese
I am running Windows modules that disrupt the network connection. For instance, the installation of a network driver or the creation of a Network Team. The IP address doesn't change, and the network connection is only out for a few moments. But when these run, my Ansible playbook basically free

[ansible-project] Bug in with_nested and registered variables?

2016-05-03 Thread Patrick Laimbock
Hi, Earlier today on irc I heard that the snippet below not working might be a bug. Being new to Ansible and not wanting to waste the developers time I'd appreciate a confirmation that this is indeed a bug before filing it. --- - hosts: localhost gather_facts: no vars: my_users:

[ansible-project] Synchronize module with ansible-pull

2016-05-03 Thread Karibou Hunter
Hi all, I have an error with this task : - name: sync app directory synchronize: mode: pull src: rsync://192.168.1.1/home/user/files_www/ dest: "/var/www/example.com/" become: false running *ansible-pull -vvv -o -d /home/user/repo -i /home/lvd/repo/hosts -U gitaddre

[ansible-project] StartProcess doesn't work with raw

2016-05-03 Thread jacob
I recently started using Ansible to control Windows and I'm have some trouble with the StartProcess command. On a regular Powershell terminal I can open a new shell with this command: StartProcess powershell However this task in Ansible does not have that result: - name: Start powershell raw:

[ansible-project] Re: Using playbook to start, stop or restart a service

2016-05-03 Thread rup
But using the service module isn't quite that simple, right? You have to set up your init script to identify the services that the module would call. That's where I'm at currently. On Sunday, May 1, 2016 at 2:49:44 PM UTC-6, Rick O'Shea wrote: > > We have host groups whose service states we wi

[ansible-project] How can I figure out which version of Ansible an ansible-modules-core merge request first appears in?

2016-05-03 Thread Josh Smift
KS> This pull request: KS> https://github.com/ansible/ansible-modules-core/pull/2673 supposedly KS> adds MySQL 5.7 support on mysql_user. The last note says it's been KS> merged into the 2.0 stable and the devel branch, but it's not clear to KS> me if it means it's in the 2.0 release or the upcomin

[ansible-project] New Modules Report, 03-May-2016

2016-05-03 Thread Greg DeKoenigsberg
There are currently 150 modules waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: New module - elastic_beanstalk - re-submit https://github.com/ansible/ansible-modules-extras/pull/2151 new module: httpd_proxy https://github.com/ansible/ansible-mo

Re: [ansible-project] synchronize between two remote servers: you can pull but you cannot push?

2016-05-03 Thread Joseph Louthan
Good enough. Thank you. Sincerely, Joe Louthan joelout...@gmail.com 817-760-0765 On Mon, May 2, 2016 at 11:24 PM, Johannes Kastl wrote: > On 02.05.16 16:29 Joe Louthan wrote: > > > I guess what I am asking is how do you rsync pushing from one remote > server > > to another (as oppose to pull

[ansible-project] Re: Is there a Docker Compose -like solution for Ansible?

2016-05-03 Thread Bence Takács
I've just that inventory with group hosts and group variables could be suitable for storing the description of the environmental layout: One 'group' could be one 'environment', one 'host' could be one 'host' inside the environment, and every related service settings (port, queue, etc) could be s

[ansible-project] Is there a Docker Compose -like solution for Ansible?

2016-05-03 Thread Bence Takács
Hi We are mostly using ansible for creating/managing our TEST environments. One environment can contain the different types of services/nodes like: - web/application server(s) - windows services - DBs - JMS queues - etc The environment layout (the combination of the above types) can differ per p

[ansible-project] Re: storing Ansible facts in mysql database

2016-05-03 Thread Anil Dasmala
Thank you for the ideas, Uditha Desilva. On Tuesday, May 3, 2016 at 1:04:33 PM UTC+5:30, Uditha Desilva wrote: > > The host facts are dictionary objects and will most likely not have > exactly the same number of elements within them (unless you have a > trivially uniform environment!) so a MySQL

Re: [ansible-project] storing Ansible facts in mysql database

2016-05-03 Thread Anil Dasmala
thanks for your advice,Brian. Tried redis, so each host (key)and its facts(value) are stored as a key value pair. is there a way I can get the selective facts with in a given key value?. For example, if I just want to retrieve testhost1's HOSTNAME, ansible_default_ipv4 only, is that possible Ess

Re: [ansible-project] Multiple vars in with_nested problem

2016-05-03 Thread Patrick Laimbock
Hi Johannes, Thank you for your feedback. On 03-05-16 06:29, Johannes Kastl wrote: On 02.05.16 20:35 Patrick Laimbock wrote: with_nested: - "{{ user_exists.results }}" - "{{ mc_templates }}" Please correct me if I am mistaken, I am no expert on this. Maybe Brian can chime in

Re: [ansible-project] why the playbook does not run as many times as there are entries in the hosts file ?

2016-05-03 Thread fanvalt
thank you we did use an alias this way: [server] alias1 ansible_host=localhost ansible_connection=local ansible_user=fvaltat alias2 ansible_host=localhost ansible_connection=local ansible_user=greg regards Le lundi 2 mai 2016 15:18:25 UTC+2, Brian Coca a écrit : > > only 1 of them will be vi

[ansible-project] Re: storing Ansible facts in mysql database

2016-05-03 Thread Uditha Desilva
The host facts are dictionary objects and will most likely not have exactly the same number of elements within them (unless you have a trivially uniform environment!) so a MySQL backend isn't a particularly useful fit. Personally (on Red Hat), I prefer to use the jsonfile backend and a 1 day va

Re: [ansible-project] Dynamic Group Var Name

2016-05-03 Thread Johannes Kastl
On 26.04.16 23:22 Chanaka Samarajeewa wrote: > with_dict: "rdsusers{{ env }}" > > FAILED! => {"failed": true, "msg": "ERROR! with_dict expects a dict"} Maybe because your rdsusers{{ env }} is a list and not a dict? Does with_items work in your case? Johannes -- You received this message beca

Re: [ansible-project] custom facts with non-root account

2016-05-03 Thread Johannes Kastl
On 18.04.16 16:44 Uwe Bartels wrote: > I'd like to gather information via facts, because the "PLAY RECAP" shows > "changed=xx", but I'm only collecting information and don't change, when > everything is fine. Apart from calling setup, like Matt suggested, one idead is to use changed_when to des

Re: [ansible-project] map extract not working?

2016-05-03 Thread Johannes Kastl
On 26.04.16 03:56 Arthur Tsang wrote: > An exception occurred during task execution. To see the full traceback, use > -vvv. The error was: TemplateRuntimeError: no filter named 'extract' I would say your syntax is wrong. Apparently ansible does not know your filter called extract. Johannes --

Re: [ansible-project] Escalation Prompt Timeout?

2016-05-03 Thread Johannes Kastl
On 26.04.16 19:52 Tennis Smith wrote: > I'm getting "Timeout (12s) waiting for privilege escalation prompt" > errors. Can the escalation timeout value be changed somewhere? Each time I have seen this error, waiting for minutes would not have solved the issue, as there should not be a prompt at

Re: [ansible-project] Understanding group vars

2016-05-03 Thread Johannes Kastl
On 28.04.16 17:44 Shua Talansky wrote: > ├── prod > │ ├── selenium_hub > │ │ └── vars.yml > I get variables that are defined under prod website - what am I doing wrong? I thought host-specific variables are in a directory called host_vars (or host_vars/foobar for the host foobar), while gr

Re: [ansible-project] No config file found; using defaults

2016-05-03 Thread Johannes Kastl
On 21.04.16 17:09 skinnedknuckles wrote: > *No config file found; using defaults* AFAIK this means there is no ansible.cfg, which is not an error, just an information > *ERROR! Syntax Error while loading YAML* In your mail the yaml file had no line breaks, maybe there a windows unix linebreak i

Re: [ansible-project] mysql_user doesen't translate variables

2016-05-03 Thread Johannes Kastl
On 28.04.16 10:15 Florian Lüttgens wrote: > - name: Create MySQL Database User > mysql_user: name={{ item.value.projekt | lower }}_{{ item.key }}_{{ > stage }} password={{ item.value.password }} host=localhost login_host={{ > ansible.fqdn }} priv=*.*:ALL state=present > with_dict

Re: [ansible-project] help with Jinja2 for loops using keys value

2016-05-03 Thread Johannes Kastl
On 28.04.16 01:04 Eric Marquez wrote: > --- > > VLAN: > > ID: 12 > I am not sure if it would be better to use lists rather than dicts (if your syntax is a dict, no expert). You have two entries called VLAN. I would use something like this: vlan_list: - id12 - id: 12 - name: "Tes

Re: [ansible-project] Ansible command to get the ethtool information

2016-05-03 Thread Johannes Kastl
On 26.04.16 01:50 Mahendra wrote: > ansible root# ansible all -m shell -a "/sbin/ethtool eth4" -s >> > I am trying to get the nic (eth0) info using ansible .. Maybe your nic is not called eth0 on all hosts? You use eth4 later on, so on some hosts this would cause trouble. Also, does ansib

Re: [ansible-project] When condition

2016-05-03 Thread Johannes Kastl
On 29.04.16 12:08 'Suresh Uppu' via Ansible Project wrote: > - name: installing python setuptools > become: yes > become_method: sudo > yum: name=python-setuptools state=latest > when: ansible_os_family == "RedHat" > zypper: name=python-setuptools state=latest >

Re: [ansible-project] Using playbook to start, stop or restart a service

2016-05-03 Thread Johannes Kastl
On 01.05.16 22:49 Rick O'Shea wrote: > As near as we can tell this is the only way to automate a playbook to > start, stop, restart, enable, disable or status a service is to pass a > variable on the command line: > > ansible-playbook foo-service.yml -e state=started > > Is this best practice?

Re: [ansible-project] Multiple vars in with_nested problem

2016-05-03 Thread Johannes Kastl
On 02.05.16 20:35 Patrick Laimbock wrote: > with_nested: > - "{{ user_exists.results }}" > - "{{ mc_templates }}" Please correct me if I am mistaken, I am no expert on this. Maybe Brian can chime in. I think you are creating a list here, which has two list elements. And with_nest

Re: [ansible-project] synchronize between two remote servers: you can pull but you cannot push?

2016-05-03 Thread Johannes Kastl
On 02.05.16 16:29 Joe Louthan wrote: > I guess what I am asking is how do you rsync pushing from one remote server > to another (as oppose to pulling which I can successfully do). I would call rsync via shell/command rather than use the synchronize module. Johannes -- You received this mess

Re: [ansible-project] dictionary key as variable

2016-05-03 Thread Johannes Kastl
On 30.04.16 08:36 serkan wrote: > Thanks Matt, it works. > > On Friday, April 29, 2016 at 1:28:39 PM UTC+2, Matt Martz wrote: >> >> You cannot nest {{ }}, instead you want: >> >> {{ file[version] }} >> You might want to rename your variable (file) so it does not have the same name as a existing m

[ansible-project] Re: Using playbook to start, stop or restart a service

2016-05-03 Thread Uditha Desilva
The variable can be defined however you wish -- I'm not quite sure why you think it can only be passed from the command line? On the other hand, if all you want to do is to start a service from the command line, you can invoke the service module via the ansible command itself: ansible -m servi