Re: [ansible-project] problem with conditional and facts,

2015-01-23 Thread Jan Mattsson
thank you...I feel ashamed that I obviously had not tried that rather obvious solution.. On Thursday, January 22, 2015 at 4:59:16 PM UTC+1, Brian Coca wrote: try: when: ansible_swaptotal_mb == 2047 no quotes -- Brian Coca -- You received this message because you are subscribed

Re: [ansible-project] problem with conditional and facts,

2015-01-23 Thread Brian Coca
no shame, sometimes when immersed in a problem, it is hard to see the obvious (forest/trees saying). -- 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

[ansible-project] [Windows] When executed locally, powershell script works, but over winrm I get errors

2015-01-23 Thread John-Paul Herold
Greetings, I am on the linux side of my company, but have been working with the windows team to increase their level of automation. I have been having our windows devs script out anything the native ansible windows modules cannot do, and have had a 99% success rate with all our tasks. The

Re: [ansible-project] [Windows] When executed locally, powershell script works, but over winrm I get errors

2015-01-23 Thread John-Paul Herold
Hey Brian, Here is a paste of the errors: http://tny.cz/10fb3baa Seems like the issue is with how the params are passed to the script over winrm. This leads me to some ambiguity I've had with proper formatting when it comes to Ansible's script module script params (that's a confusing

[ansible-project] SSH Errors during provisioning of ec2 hosts through ansible

2015-01-23 Thread doug
Hi All, I've been battling with this issue all day. I wrote a playbook which spins up nodes on ec2 using ansible and then bootstraps the box by creating the ansible user on the remote machine, then it pushes the ansible user's rsa.pub key to the box and finally overwrites the

Re: [ansible-project] Running from source forces new terminals to cd into ansible's source dir

2015-01-23 Thread David Reagan
To those who replied, thanks! When I got to my work office computer, it wasn't cd'ing on me anymore. When I finally had time today to try and test things here on my home computer, it stopped cd'ing on me after I updated to the latest devel commit. So, everything is working fine now. Go figure...

[ansible-project] Any way to re-read ssh_config on-the-fly from Ansible playbook?

2015-01-23 Thread Даниил Ярославцев
Hello, Ansible admins and users! I am using Ansible with Amazon EC2. I've configured provisioning of EC2 private hosts over public SSH bastions (exactly as specified here: http://alexbilbie.com/2014/07/using-ansible-with-a-bastion-host). So I have an ssh_config like below containing settings

[ansible-project] Re: Current state of pivoting through a jumpbox

2015-01-23 Thread Даниил Ярославцев
Andrew, try to create public SSH bastions for every Amazon VPC you have at the moment. So you will have an ability to provision any private node over appropriate Bastion from Ansible playbook. The ony problem will be to tell Ansible to reload ssh_config on-the-fly if you would like to generate

Re: [ansible-project] module copy with content reports changes on every run

2015-01-23 Thread Matt Martz
Your problem is in the way you are using the content argument. Your string does not include a trailing newline, and when you run dpkg-reconfigure to update the timezone, dpkg-reconfigure will notice that there is no trailing newline and fix it. So every time your task runs, you are removing the

[ansible-project] Re: Using variables from var_files in serial

2015-01-23 Thread Ruben Oostinga
Anyone? I am considering posting this as a bug in ansible 1.8. Op donderdag 15 januari 2015 18:19:56 UTC+1 schreef Ruben Oostinga: Hi, I am currently upgrading from ansible 1.7 to 1.8 and my current playbooks are not working anymore. I have batch_size defined in a vars_file and I would

Re: [ansible-project] Re: override non-defaults role variables

2015-01-23 Thread Antoine Jacoutot
On Thu, Jan 22, 2015 at 10:59:18AM -0800, James Martin wrote: Antoine, Let's say for example you have your foobar role, and #defaults/main.yml foobar_port: 42 And let's say you have an inventory group called foobar which is a list of all your foobar hosts. By using the

Re: [ansible-project] Re: override non-defaults role variables

2015-01-23 Thread Tomasz Kontusz
There is another way: you can put foo: '{{ default_foo }}' in defaults, and only set default_foo in the per-OS variables Antoine Jacoutot ajacou...@bsdfrog.org napisał: On Thu, Jan 22, 2015 at 10:59:18AM -0800, James Martin wrote: Antoine, Let's say for example you have your foobar role,

Re: [ansible-project] User module: useradd without cerate home directory

2015-01-23 Thread Brian Coca
createhome=no On Fri, Jan 23, 2015 at 12:09 AM, hce h jupiter@gmail.com wrote: Hi, Which option in ansible user module to create user account whitout creating user home directory like useradd -M? Thank you. - j -- You received this message because you are subscribed to the Google

[ansible-project] module copy with content reports changes on every run

2015-01-23 Thread Christian Loos
Hi, if i run a task with this: copy: dest=/etc/timezone content=Europe/Berlin owner=root group=root mode=0644 it reports on every run changes. Verbose output of two runs: changed: [xxx] = {changed: true, checksum: d34f419876c03cf85365d9102477a4f5791451ae, dest: /etc/timezone, gid: 0, group:

Re: [ansible-project] Re: override non-defaults role variables

2015-01-23 Thread Antoine Jacoutot
On Fri, Jan 23, 2015 at 11:42:11AM +0100, Tomasz Kontusz wrote: There is another way: you can put foo: '{{ default_foo }}' in defaults, and only set default_foo in the per-OS variables Ok, It took me a little while to understand what you meant with only set default_foo in the per-OS