[ansible-project] Re: questions regarding ansible raw module on windows

2015-09-15 Thread breatheoften
Nevermind -- not sure where I remember seeing reference to running powershell snippets via raw: -- but I certainly can't find it again ... It sure would be a nice feature ... -- I've found that even on the unix side, it is frequently a 'very-fast-value-add' proposition to quickly rewrite old

[ansible-project] questions regarding ansible raw module on windows

2015-09-15 Thread Ben Cohen
I'm seeing some references online that make it sound like the ansible "raw" module when run versus windows hosts (winrm) should allow execution of powershell commands -- I'm able to execute raw: commands with the older windows shell (batch file syntax) -- but don't seem to be able to use any

Re: [ansible-project] set fact - concatenate to the same list -iterating over with items

2015-09-15 Thread trupti mali
> > Thanks for the response Brian. I tried your solution but the same error > sticks around Failed to template {{ exceptions | union(['-A INPUT -p tcp --source '+ item + ' --dport 3306 -j ACCEPT','-A INPUT -p tcp --source '+ item +' --dport 4567 -j ACCEPT','-A INPUT -p tcp --source '+ item

[ansible-project] Re: Problem with vsphere_guest on vm_extra_config and state reconfigured

2015-09-15 Thread Timo
Hi, no one any ideas on that? Thx! Timo On Thursday, September 10, 2015 at 4:24:28 PM UTC+2, Timo wrote: > > Dear list, > > i want to change a parameter in the vm_extra_config from what i understand > will modify my .vmx of my VM. > > This is my part of the vm_extra_config: > >

[ansible-project] Re: Notifying tasks in related roles

2015-09-15 Thread Guy Knights
Actually, having thought about it a bit more I could rephrase my question more simply as "is there anything like Puppet's 'subscribe' relationship parameter?" On Tuesday, September 15, 2015 at 11:08:12 AM UTC-7, Guy Knights wrote: > > I have an haproxy role that can be used for a variety of

[ansible-project] Delegation of plays

2015-09-15 Thread Tony Yarusso
So, for both security and other management reasons, we have several (currently 12) separate "environments", firewalled off from each other, each with their own Ansible server. That's fine for most things, but certain one-off tasks (eg. changing my password) are a pain, since I have to do it

Re: [ansible-project] Re: Rescue block doesn't seem to work when error is in an included file

2015-09-15 Thread Brian Coca
he, no worries, I didn't catch that either -- 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...@googlegroups.com. To

[ansible-project] Using variables as dictionary keys

2015-09-15 Thread Patrick McMahon
Hi, Is something like this possible when defining a dictionary in defaults/main.yml: agent_instances: "{{ [ansible_fqdn] }}": port: 5912 "{{ [ansible_fqdn]-2 }}": port: 5913 I want to then call agent_instances.keys() | join (",") in a jinja2 template. Thanks in Advance! Paddy

[ansible-project] Notifying tasks in related roles

2015-09-15 Thread Guy Knights
I have an haproxy role that can be used for a variety of purposes (load balancing, local proxying, etc), and I need to be able to notify handlers in several other roles if a task in the haproxy role changes, based on which of those "other" roles exist on the current node. The main reason I

Re: [ansible-project] Ansible Galaxy username syncing with Github

2015-09-15 Thread Greg DeKoenigsberg
On Tue, Sep 15, 2015 at 4:58 AM, Karl Fischer wrote: > Hi > > Will usernames be synced from Github to Galaxy, when the switch happens in > January, > reason I'm asking is that my github username is 3 characters and it seems > that Galaxy only supports 4 characters and up.

[ansible-project] Re: Rescue block doesn't seem to work when error is in an included file

2015-09-15 Thread Frank Perks
I am dumb, and the issue is because i have: - rescue when it should be: rescue My mistake. On Tuesday, September 15, 2015 at 9:03:04 AM UTC-4, Frank Perks wrote: > > So i was hoping to use blocks as an easy way to notify success/failure of > ansible runs. > > - block: > - include:

Re: [ansible-project] Ansible Galaxy username syncing with Github

2015-09-15 Thread James Cammarata
Hi Karl, we can adjust that to match what Github allows, thanks for pointing it out! As for the linkage, you'll have to add the Github social linkage yourself, which you can do from your profile page on Galaxy. Thanks! James Cammarata Director, Ansible Core Engineering github: jimi-c On Tue,

[ansible-project] Need advice to setup autoscaling on Google Cloud Platform using Ansible

2015-09-15 Thread poiuytrez
Hi guys, I have a machine configured using Ansible as a webserver. I would like to use the autoscaling feature of Google Compute Engine. What is the correct way to do it? I don't know how to make them both work together (ansible and autoscaling). Thank you for your help -- You received

Re: [ansible-project] Using variables as dictionary keys

2015-09-15 Thread Dan Stillman
On 9/15/15 12:57 PM, Patrick McMahon wrote: Is something like this possible when defining a dictionary in defaults/main.yml: | agent_instances: "{{ [ansible_fqdn] }}": port:5912 "{{ [ansible_fqdn]-2 }}": port:5913 | I want to then call |agent_instances.keys() | join (",") |in a

Re: [ansible-project] Using variables as dictionary keys

2015-09-15 Thread Patrick McMahon
Ahh, I'll have to think of another way to do it then. Thanks Dan! Paddy -- 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

Re: [ansible-project] shell command not getting executed on the remote node

2015-09-15 Thread Brian Coca
you seem to have a mixed installation, that error is normally produced by version 1.x of the command module when used with 2.x ansible. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] Re: Rescue block doesn't seem to work when error is in an included file

2015-09-15 Thread James Cammarata
Hi Frank, I did just test this out on the latest version of devel, and it appears to be working for me just fine: # cat fail.yml - fail: # cat test.yml - hosts: localhost gather_facts: no tasks: - block: - include: fail.yml - debug: msg="you should not see me" rescue: -

Re: [ansible-project] user is not allowed to execute '/bin/sh -c

2015-09-15 Thread Brian Coca
no, sadly ansible needs to be able to run a shell as the commands it runs are temporary scripts it copies over and not specific commands that can be listed. On Tue, Sep 15, 2015 at 12:43 AM, Srinivas Kotaru wrote: > Hi > > > > Am having a issue to use ansible in our

Re: [ansible-project] set fact - concatenate to the same list -iterating over with items

2015-09-15 Thread Brian Coca
I did not realize, you are self referencing exceptions, that won't work -- 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] Re: Rescue block doesn't seem to work when error is in an included file

2015-09-15 Thread Brian Coca
This is a bug, open a github issue please, using this template https://raw.githubusercontent.com/ansible/ansible/devel/ISSUE_TEMPLATE.md and supplying a minimal reproducible test will help us getting this fixed. -- You received this message because you are subscribed to the Google Groups

[ansible-project] user is not allowed to execute '/bin/sh -c

2015-09-15 Thread Srinivas Kotaru
Hi Am having a issue to use ansible in our environment. We use sudo to run any commands. We don't use root to login. In fact even hosting team don't use root account. Every command ( privileged) has to be run as sudo. Am getting below error while running command with sudo permission

[ansible-project] Ansible Galaxy username syncing with Github

2015-09-15 Thread Karl Fischer
Hi Will usernames be synced from Github to Galaxy, when the switch happens in January, reason I'm asking is that my github username is 3 characters and it seems that Galaxy only supports 4 characters and up. Karl -- You received this message because you are subscribed to the Google Groups

[ansible-project] Docker and Ansible: running specific tasks on a dynamically defined host list

2015-09-15 Thread Kamesh Sampath
Hello, I am running docker swarm with Ansible, my playbook deploys a docker image on specific node using swarm, post that deployment I want to execute certain Ansible tasks on the host where the image is deployed (still running from the same playbook role), as I am using consul as my backend

[ansible-project] Re: Nagios module usage

2015-09-15 Thread Dimitri Yioulos
I didn't realize that I needed to create a separate play in my playbook to do this piece. Once I did that, everything worked as advertise. Sorry that my learning mistakes have created noise. Thanks, again, to Brian Coca for all the help - greatly appreciated! On Monday, September 14, 2015

[ansible-project] Rescue block doesn't seem to work when error is in an included file

2015-09-15 Thread Frank Perks
So i was hoping to use blocks as an easy way to notify success/failure of ansible runs. - block: - include: build.yml - include: deploy_site.yml - name: Notify Slack it successfully deployed slack: - rescue: - name: Notify Slack it failed slack: When there is an error in

[ansible-project] shell command not getting executed on the remote node

2015-09-15 Thread Sharwari Phadnis
I want to add a linux bridge on a remote node having ubuntu 14.04 version. I wrote a playbook to do so, it is as following: * hosts: ans# user: sudo tasks:- name: send and execute shell: /sbin/brctl addbr br11*I've used shell command to execute brctl on the remote node

[ansible-project] Re: Ansible + Jenkins

2015-09-15 Thread abraham
i configure like as below for ci 1)i configured Jenkins,maven and git 2) In that .war file to upload to S3 bucket uisng publish artifacts to s3 bucket plugin 3) create new EC2 instance using cloud formation template from S3 bucket using cloud formation plugin 4) now i want to configure

[ansible-project] Re: Setting hostname

2015-09-15 Thread Frank Perks
Like i said move your ansible-hostname into the roles folder (if you don't have one make one). As far as i know ansible only loads roles from the roles folder, which is probably your issue. Also his documentation is wrong, he doesn't use hostname_domain, he actually in the code uses