Re: [ansible-project] Interpolation in Jinja2 default() values

2015-09-08 Thread Mike Dillon
Thanks Brian! For some reason I didn't get a notification for your response, so sorry for the delay. -md On Thursday, September 3, 2015 at 10:03:13 AM UTC-7, Brian Coca wrote: > > no mustache stacking > > key: "{{item.ssh_public_key | > default('https://github.myenterprise.com/' + item.u

Re: [ansible-project] Confused about windows passwords and working with ec2?

2015-09-08 Thread Brian Coca
have you tried this? - hosts: windows gather_facts: false tasks: - ec2_win_password: connection: local - set_fact: ansible_ssh_host="{{ ec2_win_password.whatver}}" - do_other_stuff -- Brian Coca -- You received this message because you are subscribed to the Google Grou

[ansible-project] Copr builds of ansible-2.0.0-alpha2

2015-09-08 Thread Toshio Kuratomi
If anyone is running Ansible on Fedora/RHEL/CentOS and has been waiting for some rpms to test the 2.0 alpha code, I now have some rpms built in copr: http://copr-fe.cloud.fedoraproject.org/coprs/toshio/ansible-upstream/ These are unofficial builds, neither affiliated with Ansible nor with Fedora/

[ansible-project] Re: win_updates not working

2015-09-08 Thread Dimitri Yioulos
All, After lots of testing, I can only report that I have results all over the place. - I ran the playbook against a group containing two servers. The first one reported: "updates_installed_count": 11, "updates_reboot_needed": true, "updates_success": "true", but no updates were appl

[ansible-project] Confused about windows passwords and working with ec2?

2015-09-08 Thread Frank Perks
Hi, I am unsure exactly how i am supposed to handle and work with windows passwords when working with EC2 and inventories. I know i can query the passwords by using ec2_win_password, however i am unsure exactly how i can use this value to set the ansible_ssh_pass. For that connection. For exam

[ansible-project] Programatically run Ansible. Generated inventory file not working?

2015-09-08 Thread Kevin White
Hey guys, I'm following this https://serversforhackers.com/running-ansible-programmatically but I've built a RESTful API around it using cherrypy. I generate an inventory file and try to set the "host_list" variable in the ansible.playbook.PlayBook object but it doesn't seem like this is worki

[ansible-project] ansible-playbook (still) ignores --limit option (#6449)

2015-09-08 Thread James Addison
https://github.com/ansible/ansible/issues/6449 is still an issue in ansible 1.9.3 as far as I can tell. A previous commenter said it was still existing on 1.8.4. Here's my vars, inventory and playbook: http://dpaste.com/30GGFNH. I run it on the command line (OSX 10.10.5) with: # ansible-playbo

Re: [ansible-project] Re: Failling to create ec2 root volume with indicated size on spinning up instnce

2015-09-08 Thread Joseph Djomeda
Thank you Brian for the Clarification Best Regards, On Tue, Sep 8, 2015 at 12:55 PM Brian Coca wrote: > This does not seem to be possible right now, you can specify the size > of additional volumes but not resize the default root volume from ec2 > instance creation. > A workaround is to create

Re: [ansible-project] module win_user

2015-09-08 Thread Matt Martz
IIRC, this has something to do with not being placed in any groups by default, specifically the one needed to show up on the login screen. I don't remember what it is, but logins should still be allowed. On Tuesday, September 8, 2015, Trond Hindenes wrote: > I don't understand the question. Can

[ansible-project] Re: module win_user

2015-09-08 Thread Trond Hindenes
I don't understand the question. Can you log on with the created user by typing in the username? On Tuesday, September 8, 2015 at 3:34:19 PM UTC+2, e.bar...@404-group.com wrote: > > Hi. > We have a vm ubuntu 14.04 LTS with ansible 1.9.3 and python 2.7. > I want to create users on a machine with

Re: [ansible-project] Problem with permissions

2015-09-08 Thread Roman H
I am trying to isolate the problem, I left the python files that are generated in the .ansible directory. I ran this: myhost001~/.ansible/tmp$ /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /home/svc_acplus_prod02/.ansible/tmp/ansible-tmp-1441218726.44-141986608018617/file' and see this outp

[ansible-project] module win_user

2015-09-08 Thread e . barausov
Hi. We have a vm ubuntu 14.04 LTS with ansible 1.9.3 and python 2.7. I want to create users on a machine with windows. Using module winrm on windows and win_user module for creating profile. (Testing in o.s.: windows 7, windows 8/8.1) My playbook: --- - name: Add a user hosts: all tasks: -

[ansible-project] Set up authorized_keys for purely new machine.

2015-09-08 Thread Andrey Voronkov
Hello community, I'm at very beginning of ansible understanding for now. And main goal is to get proper keys for set of users on a new server. And work in normal mode after. Given: some server which have password ssh access for root (or sudoer like azureuser for Microsoft Azure). Goal: setup ~/.ssh

Re: [ansible-project] Re: ETA on Ansible 2.0 ?

2015-09-08 Thread Brian Coca
We already started with the alpha releases, we hope to be on the beta soon. Since this release rewrote most of the core, we will take a bit longer to ensure everything works. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Do decrypted variables get copied to the host?

2015-09-08 Thread Brian Coca
So ... depends, data passed to a task is normally copied with the task to the remote machines so the task can be executed there. If using the ssh connection plugin with pipelining, the data never gets copied to disk and gets read from a pipe and is only present in memory. When copied to the disk it

Re: [ansible-project] Re: ETA on Ansible 2.0 ?

2015-09-08 Thread Martin
On Tue, Sep 8, 2015 at 2:25 PM Roman Belyakovsky wrote: > Any update on ETA? > Oh come on... you're one year ahead. Still plenty of time until early August :) (Sorry. Just. Could. Not. Resist.) -- -- http://www.xing.com/profile/Martin_Marcher http://www.linkedin.com/in/martinmarcher Mobil: +43

Re: [ansible-project] Re: Failling to create ec2 root volume with indicated size on spinning up instnce

2015-09-08 Thread Brian Coca
This does not seem to be possible right now, you can specify the size of additional volumes but not resize the default root volume from ec2 instance creation. A workaround is to create an ami with a root volume with the required size. On Tue, Sep 8, 2015 at 4:57 AM, Joseph Djomeda wrote: > Hello

[ansible-project] Re: ETA on Ansible 2.0 ?

2015-09-08 Thread Roman Belyakovsky
Any update on ETA? -- 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 post to this group, send email to ansible-

[ansible-project] Locality of reference: override semantics for ansible 1.9.2 are wrong (IMHO)

2015-09-08 Thread jan . grant
Just came across a really hard bug to track down. The code in question looked, essentially, like this: [[[ - include: some_file.yml vars: x: 1 ]]] The problem here was that some_file.yml was not being invoked with x set to 1. The reason for this was that another included playbook had do

[ansible-project] Re: su_exe feature

2015-09-08 Thread damasek . share
Hi Edgars, apologize for slow response - sure - you can actually see it in my post from Aug 31st. But here it is again: * * blahblahblah * ***

[ansible-project] Re: Ansible failing on Amazon Linux AMI 2015.03

2015-09-08 Thread Co S
Thanks Mark, All worked fine. -- 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 post to this group, send email

[ansible-project] Re: Failling to create ec2 root volume with indicated size on spinning up instnce

2015-09-08 Thread Joseph Djomeda
Hello All, I am totally desperate right now. Any help would be greatly appreciated. it Looks like this is something I am doing in a wrong way. Best Regards, On Sun, Sep 6, 2015 at 10:58 AM, Joseph Djomeda wrote: > Hello > > Anybody ? > > Thanks > > On Fri, Sep 4, 2015 at 4:48 PM Joseph Djomeda

[ansible-project] why dod notify not run?

2015-09-08 Thread Randy Bush
macosx 10.10.5 python 2.7.10 ansible 2.0.0 i can not figure out why the notify did not run {{{ --- - hosts: debian:ubuntu roles: - common gather_facts: no tasks: - name: install snmpd apt: name=snmpd state=present - name: push snmpd.conf copy: src=files/linux/sn

[ansible-project] Apt module : install only security update

2015-09-08 Thread Yoann DAVID
Hello, is there a way to install only security update through apt module ? I can do it with command line like this : sudo sh -c 'apt-get -o Dir::Etc::sourcelist="security.sources.list" -o Dir::Etc::sourceparts="-" update && apt-get upgrade' PS : I don't want to use unattended-upgrade, common

[ansible-project] Re: a question about 'Interrupt execution on any error'

2015-09-08 Thread Leon Xie
in the documentation, it says the below content: "second stage can’t be played if any server failed on “stage 1” but what I got is not what the document says. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group an

[ansible-project] a question about 'Interrupt execution on any error'

2015-09-08 Thread Leon Xie
hi all, according to the section entitled 'Interrupt execution on any error ' in the below URL: http://docs.ansible.com/ansible/playbooks_delegation.html#rolling-update-batch-size I wrote the below playbook: ++