[ansible-project] no password supply

2014-11-02 Thread 'Diogene Laerce' via Ansible Project
Hi, I try to run this in a dedicated playbook test.yml : --- - hosts: localhost tasks: - name: Create Django user for database sudo: yes sudo_user: postgres postgresql_user: user=django password=django role_attr_flags=CREATEDB,NOSUPERUSER,NOCREATEROLE

Re: [ansible-project] no password supply

2014-11-02 Thread 'Diogene Laerce' via Ansible Project
On 11/02/2014 01:49 PM, 'Diogene Laerce' via Ansible Project wrote: Hi, I try to run this in a dedicated playbook test.yml : --- - hosts: localhost tasks: - name: Create Django user for database sudo: yes sudo_user: postgres postgresql_user: user=django

Re: [ansible-project] deploying with ansible

2014-11-02 Thread ramon
Hey Michael (and anyone else interested), I’ve been working on the deploy_helper module, but it’s not ready for a pull-request just yet. From the perspective of a consumer, I think a common deploy role looks something like this (following along the lines of a deploy procedure that uses

[ansible-project] Issue with default value

2014-11-02 Thread Viktor Petersson
Hey guys, I'm trying to write an ansible playbook with the shell module. In the command, I'm want to use the eth1 interface if it exists. If the eth1 interface doesn't exist, it should fallback to the loopback interface. My initial approach was to use the defaulting undefined variables as

[ansible-project] SSH connection slow after going from 1.6 to 1.8

2014-11-02 Thread Thomas Fuchs
Hi there! I've these options in my ansible.cfg: [ssh_connection] pipelining=True ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=7200s On an older version (Ansible 1.6 development, shortly before 1.7 was final), these settings make deploying relatively fast. On Ansible

[ansible-project] Error attaching Elastic IP to new AMI

2014-11-02 Thread Vincent Passaro
Hi All, I'm getting an error when trying to attach and EIP to an EC2 AMI thats provisioned with Ansible. The instance is provisioned correctly but then I receive the error below. The key pair used has full administrative access to AWS PLAY [localhost]

[ansible-project] ansible -m setup takes extra 2 min on Fedora 20

2014-11-02 Thread pixel fairy
the setup module (and any playbooks) takes an extra 2 min for a fedora 20 based vm. other ansible modules, at least command(date) and yum (upgrade all), take less than a second, on an up to date machine. tried from os x 10.10 (homebrew) and ubuntu 14.04, both running ansible 1.7.2. heres, the

[ansible-project] Weird /tmp file issue

2014-11-02 Thread Paul Becker
Hello, I'm running ansible-playbook 1.7.2 on Centos 6 and after running ok for a couple of weeks, now I'm getting this: https://lh5.googleusercontent.com/-I6RPfiltD-o/VFP4D5X6e2I/BYY/DAxhmNUlszc/s1600/Screen%2BShot%2B2014-10-31%2Bat%2B3.48.28%2BPM.png Note that the /tmp full path is

[ansible-project] need a tip. this feels wrong

2014-11-02 Thread Andrew Rothstein
I like Ubuntu but I want to switch to Fedora. I'm trying to port my playbooks that I wrote to work on Ubuntu and port them to Fedora. Here is the most I've been able to factor my roles down to: --- - name: file system related packages (Ubuntu)... apt: name={{item}} when:

[ansible-project] Rolling restart using handlers

2014-11-02 Thread Costi Ciudatu
Is there a way to run the handlers with a different `serial` value than the rest of the play ? What I want is to install my services in large batches (usually, on all the machines at once) and if any of those services needs to be restarted, I want to perform that operation on X machines at a

Re: [ansible-project] SSH connection slow after going from 1.6 to 1.8

2014-11-02 Thread Matt Martz
What is your control machine (machine you are running ansible from)? Ansible 1.8 now chooses paramiko as the smart transport when running from Mac. If this is your case, you will need to set transport = ssh under defaults as well. You can verify if you are using ssh or paramiko by running with

Re: [ansible-project] Issue with default value

2014-11-02 Thread Matt Martz
Jinja2 is a little more picky about using dot notation as opposed to [] type notation as it pertains to using default You might want to try: ansible_eth1[ipv4][address] | default(127.0.0.1) You may also need to place the default closer to ansible_eth1 as opposed to deeper nesting like it is

Re: [ansible-project] need a tip. this feels wrong

2014-11-02 Thread Matt Martz
I believe your approach to be the most robust and standard within the community. There is this concept of DRY that I feel too many people get captured in. In general I would say that much of The Zen of Python applies to overthinking playbooks too. One thing that you need to take into account is

Re: [ansible-project] How to use template inside of shell creates conditional check?

2014-11-02 Thread Matt Martz
It might help to actually state what the syntax error is. Also what version of ansible are you using? On Sunday, November 2, 2014, hce h jupiter@gmail.com wrote: Hi, The following examples gave me a syntax error, appreciate clues to use template inside creates statement. shell: cp

Re: [ansible-project] How to use template inside of shell creates conditional check?

2014-11-02 Thread hce h
Thanks Matt, please see following comments: On Monday, November 3, 2014 12:44:38 PM UTC+11, Matt Martz wrote: It might help to actually state what the syntax error is. ERROR: Syntax Error while loading YAML script copyCert.yml creates: /etc/{{ my_server }}.crt