# Latest

**URL:** https://forum.ansible.com/latest.md?page=977

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 978

---

## [Meeting up at pycon this weekend (Montreal)](https://forum.ansible.com/t/meeting-up-at-pycon-this-weekend-montreal/14959)

<div class="topic-metadata">

**Author:** [@John\_Jarvis](https://forum.ansible.com/u/John_Jarvis)\
**Replies:** 1\
**Last updated:** [April 9, 2014, 1:46pm UTC](https://forum.ansible.com/t/meeting-up-at-pycon-this-weekend-montreal/14959 "2014-04-09T13:46:17Z")

</div>

Sorry to spam but the list seemed like the best way to get in touch with other folks using Ansible. If there are others ops folk going to pycon this week would anyone be interested in meeting up? I was thinking right…

---

## [Error on service nginx start: type problem on Linuxmint](https://forum.ansible.com/t/error-on-service-nginx-start-type-problem-on-linuxmint/14953)

<div class="topic-metadata">

**Author:** [@Andre\_Torgal](https://forum.ansible.com/u/Andre_Torgal)\
**Replies:** 1\
**Last updated:** [April 9, 2014, 1:36pm UTC](https://forum.ansible.com/t/error-on-service-nginx-start-type-problem-on-linuxmint/14953 "2014-04-09T13:36:19Z")

</div>

First post here. In one of my hosts I have a permanent error on nginx service start. Everything else works just fine, and the same playbook also runs fine on different servers. Starting the server from the console on t…

---

## [Variable Register: key](https://forum.ansible.com/t/variable-register-key/14950)

<div class="topic-metadata">

**Author:** [@ralovely](https://forum.ansible.com/u/ralovely)\
**Replies:** 1\
**Last updated:** [April 9, 2014, 1:35pm UTC](https://forum.ansible.com/t/variable-register-key/14950 "2014-04-09T13:35:37Z")

</div>

Hi list. I tried, unsuccessfully, to have a register key set to a variable name: -name: Some other task \[…\] vars: register\_name: a\_specific\_name name: The task \[…\] register: “{{ register\_name }}” I imagine the …

---

## [Playbook not idempotent because operation is not, any way to workaround?](https://forum.ansible.com/t/playbook-not-idempotent-because-operation-is-not-any-way-to-workaround/14947)

<div class="topic-metadata">

**Author:** [@Sean](https://forum.ansible.com/u/Sean)\
**Replies:** 2\
**Last updated:** [April 9, 2014, 1:35pm UTC](https://forum.ansible.com/t/playbook-not-idempotent-because-operation-is-not-any-way-to-workaround/14947 "2014-04-09T13:35:05Z")

</div>

I am experimenting a playbook and one task failed during its execution ----- my playbook ----- name: yum install epel packages yum: name=http://dl.fedoraproject.org/pub/epel/6/x86\_64/epel-release-6-8.noarch.rpm state…

---

## [ec2\_elb\_lb module fails with trivial example](https://forum.ansible.com/t/ec2-elb-lb-module-fails-with-trivial-example/14939)

<div class="topic-metadata">

**Author:** [@i\_iordanov](https://forum.ansible.com/u/i_iordanov)\
**Replies:** 10\
**Last updated:** [April 9, 2014, 1:34pm UTC](https://forum.ansible.com/t/ec2-elb-lb-module-fails-with-trivial-example/14939 "2014-04-09T13:34:43Z")

</div>

Hello! I may be doing something wrong, but I tried so many different things, I though it should report just in case. So far, I’ve tried Ansible 1.5 built from the repository and from Debian testing, and Ansible 1.6 (bui…

---

## [Can't use register module (error).](https://forum.ansible.com/t/cant-use-register-module-error/14940)

<div class="topic-metadata">

**Author:** [@David\_Alvarez](https://forum.ansible.com/u/David_Alvarez)\
**Replies:** 2\
**Last updated:** [April 9, 2014, 1:31pm UTC](https://forum.ansible.com/t/cant-use-register-module-error/14940 "2014-04-09T13:31:57Z")

</div>

Hello community, I’m learning this tool, and it’s great =). My first problem is when I’m testing register module, Ansible show me a error: Error: Syntax Error while loading YAML script, test\_monitor.yml Note: The err…

---

## [Optimizing inventory parsing: vars\_plugins need some love](https://forum.ansible.com/t/optimizing-inventory-parsing-vars-plugins-need-some-love/14746)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 7\
**Last updated:** [April 9, 2014, 1:30pm UTC](https://forum.ansible.com/t/optimizing-inventory-parsing-vars-plugins-need-some-love/14746 "2014-04-09T13:30:25Z")

</div>

Hi, I have been diving into the Inventory the last couple of days, and for part of that I wrote a script to dump my - mostly dir/ini based - inventory into a json set that follows the api for dynamic inventory. This mad…

---

## [Issue with loop in template](https://forum.ansible.com/t/issue-with-loop-in-template/14975)

<div class="topic-metadata">

**Author:** [@Pawel\_Peryga](https://forum.ansible.com/u/Pawel_Peryga)\
**Replies:** 0\
**Last updated:** [April 9, 2014, 7:19am UTC](https://forum.ansible.com/t/issue-with-loop-in-template/14975 "2014-04-09T07:19:55Z")

</div>

Hi, I have some issues with for loop in jinja2 template. In hosts\_vars/name\_of\_host i have defined: add\_php\_packages: php5-xcache apps: { … postgres: { db\_host: ‘xxx’, db\_user: ‘xxx’, db\_name: ‘some\_name’, db\_…

---

## [apt module is giving me some very strange behavior: sometimes it works, sometimes it says python-apt is not installed](https://forum.ansible.com/t/apt-module-is-giving-me-some-very-strange-behavior-sometimes-it-works-sometimes-it-says-python-apt-is-not-installed/14962)

<div class="topic-metadata">

**Author:** [@chris\_d1](https://forum.ansible.com/u/chris_d1)\
**Replies:** 1\
**Last updated:** [April 8, 2014, 3:35pm UTC](https://forum.ansible.com/t/apt-module-is-giving-me-some-very-strange-behavior-sometimes-it-works-sometimes-it-says-python-apt-is-not-installed/14962 "2014-04-08T15:35:41Z")

</div>

hi everyone, i’m really digging ansible so far, but I keep running into this one strange issue. I have a couple different roles, and for now they all target the same host. In a common role, it ansible uses the apt modu…

---

## [Subversion export via Ansible - strange error msg](https://forum.ansible.com/t/subversion-export-via-ansible-strange-error-msg/14960)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 1\
**Last updated:** [April 8, 2014, 3:25pm UTC](https://forum.ansible.com/t/subversion-export-via-ansible-strange-error-msg/14960 "2014-04-08T15:25:21Z")

</div>

Using Ansible v1.5.4, I’m trying to do a simple export of a file from SVN: subversion: repo=svn+ssh://theusername@svn.mysite.com/sites/svn/admin/stuff.tar.gz dest=/var/stuff export=True The error I’m getting is: fail…

---

## [cannot access ec2.instances data](https://forum.ansible.com/t/cannot-access-ec2-instances-data/14954)

<div class="topic-metadata">

**Author:** [@Fred\_Badel](https://forum.ansible.com/u/Fred_Badel)\
**Replies:** 2\
**Last updated:** [April 8, 2014, 8:44am UTC](https://forum.ansible.com/t/cannot-access-ec2-instances-data/14954 "2014-04-08T08:44:55Z")

</div>

Hello, I am sure that I miss something obvious… but after having tried for a few hours, I just don’t know where to look for a solution … I have the following playbook to create a new amazon instance and do a few things…

---

## [Help creating an ansible playbook](https://forum.ansible.com/t/help-creating-an-ansible-playbook/14963)

<div class="topic-metadata">

**Author:** [@andrew\_thornton](https://forum.ansible.com/u/andrew_thornton)\
**Replies:** 0\
**Last updated:** [April 7, 2014, 8:10pm UTC](https://forum.ansible.com/t/help-creating-an-ansible-playbook/14963 "2014-04-07T20:10:32Z")

</div>

Hello everyone, I am new to ansible but I am really enjoying it. I am trying to create a playbook to spin up new droplets (servers) at DigitalOcean. I have the following playbook put together and I need a little help. M…

---

## [AWS prives required aren't documented](https://forum.ansible.com/t/aws-prives-required-arent-documented/14961)

<div class="topic-metadata">

**Author:** [@ben\_lumina](https://forum.ansible.com/u/ben_lumina)\
**Replies:** 0\
**Last updated:** [April 7, 2014, 6:38pm UTC](https://forum.ansible.com/t/aws-prives-required-arent-documented/14961 "2014-04-07T18:38:56Z")

</div>

Using ansible to deploy AWS instances, but each time more privs need granted that I would expect. Does anyone know what privs are required for this operation? name: Launch instance local\_action: ec2 keypair= group= …

---

## [apt install with version wildcards](https://forum.ansible.com/t/apt-install-with-version-wildcards/14313)

<div class="topic-metadata">

**Author:** [@David\_Zentgraf](https://forum.ansible.com/u/David_Zentgraf)\
**Replies:** 1\
**Last updated:** [April 7, 2014, 4:51pm UTC](https://forum.ansible.com/t/apt-install-with-version-wildcards/14313 "2014-04-07T16:51:52Z")

</div>

Hi, I’m trying to use version wildcards while installing apt packages, like so: apt: pkg=php5=5.4.\* Since those packages are being updated in the repository, I cannot hardcode a precise version number. However, on som…

---

## [Multiple actions in task](https://forum.ansible.com/t/multiple-actions-in-task/14958)

<div class="topic-metadata">

**Author:** [@James\_Carroll](https://forum.ansible.com/u/James_Carroll)\
**Replies:** 1\
**Last updated:** [April 7, 2014, 4:28pm UTC](https://forum.ansible.com/t/multiple-actions-in-task/14958 "2014-04-07T16:28:12Z")

</div>

I have two tasks, one works (sorta) and the other doesn’t (at all). The first: name: Install JCE when: jce\_install == true copy: src=US\_export\_policy.jar dest={{item}} with\_items: “{{jre\_path}}” “{{jdk\_path}}” cop…

---

## [global role hooks](https://forum.ansible.com/t/global-role-hooks/14955)

<div class="topic-metadata">

**Author:** [@dmitry.a.burmistrov](https://forum.ansible.com/u/dmitry.a.burmistrov)\
**Replies:** 1\
**Last updated:** [April 7, 2014, 4:18pm UTC](https://forum.ansible.com/t/global-role-hooks/14955 "2014-04-07T16:18:12Z")

</div>

I have role, I run playbook. It finished successfully, and I want to make some post-role action (like set some flags in other system, put file or etc). In this case the behavior is predictable (I have task in playbook). …

---

## [bash\_completion issues and some ideas](https://forum.ansible.com/t/bash-completion-issues-and-some-ideas/14945)

<div class="topic-metadata">

**Author:** [@dmitry.a.burmistrov](https://forum.ansible.com/u/dmitry.a.burmistrov)\
**Replies:** 10\
**Last updated:** [April 7, 2014, 4:17pm UTC](https://forum.ansible.com/t/bash-completion-issues-and-some-ideas/14945 "2014-04-07T16:17:23Z")

</div>

Hello Ansible team! I’m having great time with Ansible and I want make my experience (and Ansible) better. My story is related with administrating over 500 nodes with legacy and hacks, so I can’t do everything “The rig…

---

## [Cleaning up after failed ansible run](https://forum.ansible.com/t/cleaning-up-after-failed-ansible-run/14741)

<div class="topic-metadata">

**Author:** [@Rike-Benjamin\_Schupp](https://forum.ansible.com/u/Rike-Benjamin_Schupp)\
**Replies:** 3\
**Last updated:** [April 7, 2014, 10:32am UTC](https://forum.ansible.com/t/cleaning-up-after-failed-ansible-run/14741 "2014-04-07T10:32:15Z")

</div>

Hi, sometimes, ansible fails on a machine and leaves back running but possibly blocking and frozen processes such as /usr/bin/python /root/.ansible/tmp/ansible-tmp-1394441713.94-63420941773266/apt Is there a way to cl…

---

## ["Correct" way to install EPEL rpms?](https://forum.ansible.com/t/correct-way-to-install-epel-rpms/14948)

<div class="topic-metadata">

**Author:** [@Sean](https://forum.ansible.com/u/Sean)\
**Replies:** 2\
**Last updated:** [April 6, 2014, 6:24pm UTC](https://forum.ansible.com/t/correct-way-to-install-epel-rpms/14948 "2014-04-06T18:24:53Z")

</div>

TASK: \[common | yum install epel packages\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[ceph-osd1\] =\> {“changed”: true, “item”: “”, “rc”: 1, “results”: \[“Loaded plugins: fastestmirror, security\\nDetermining fastest mir…

---

## [simple thing that looks difficult: cooking command line for nmap](https://forum.ansible.com/t/simple-thing-that-looks-difficult-cooking-command-line-for-nmap/14943)

<div class="topic-metadata">

**Author:** [@txemi](https://forum.ansible.com/u/txemi)\
**Replies:** 2\
**Last updated:** [April 6, 2014, 2:45pm UTC](https://forum.ansible.com/t/simple-thing-that-looks-difficult-cooking-command-line-for-nmap/14943 "2014-04-06T14:45:29Z")

</div>

I am starting with ansible and sometimes I find things that I would be able to program in python, bash or java but I do not know hot to handle in ansible playbooks. I want some remote machine to make an nmap on all loca…

---

## [Specific variable "disappears" in 1.5.4 ?](https://forum.ansible.com/t/specific-variable-disappears-in-1-5-4/14942)

<div class="topic-metadata">

**Author:** [@rick](https://forum.ansible.com/u/rick)\
**Replies:** 1\
**Last updated:** [April 6, 2014, 2:02pm UTC](https://forum.ansible.com/t/specific-variable-disappears-in-1-5-4/14942 "2014-04-06T14:02:23Z")

</div>

In my main playbooks I define a global variable named “dns\_type”, used in multiple roles. It’s simply defined like this: vars: dns\_type: “CNAME” This worked fine up to 1.5.3. In 1.5.4, this variable turns up empty wh…

---

## [Galaxy Maintenance Tonight, 4/4/2014](https://forum.ansible.com/t/galaxy-maintenance-tonight-4-4-2014/14944)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [April 5, 2014, 2:26am UTC](https://forum.ansible.com/t/galaxy-maintenance-tonight-4-4-2014/14944 "2014-04-05T02:26:25Z")

</div>

There will be a small maintenance window tonight for Galaxy starting at 10PM EDT to deploy a few bug fixes and the following two major items: All roles starting with “ansible-(role-)” will be renamed so they no longer…

---

## [FATAL: all hosts have already failed -- aborting](https://forum.ansible.com/t/fatal-all-hosts-have-already-failed-aborting/14941)

<div class="topic-metadata">

**Author:** [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Replies:** 3\
**Last updated:** [April 5, 2014, 1:55am UTC](https://forum.ansible.com/t/fatal-all-hosts-have-already-failed-aborting/14941 "2014-04-05T01:55:29Z")

</div>

I am getting FATAL: all hosts have already failed – aborting even though none of the hosts are showing any errors. This problem starting creeping up in the 1.5.x releases. Any ideas?

---

## [Using sudo as root](https://forum.ansible.com/t/using-sudo-as-root/14937)

<div class="topic-metadata">

**Author:** [@Dustin\_C\_Hatch](https://forum.ansible.com/u/Dustin_C_Hatch)\
**Replies:** 5\
**Last updated:** [April 5, 2014, 1:54am UTC](https://forum.ansible.com/t/using-sudo-as-root/14937 "2014-04-05T01:54:04Z")

</div>

In my environment, when a VM is first provisioned, it has no users other than root, and root has no password. The machines are pre-seeded with an authorized SSH key so I can log in as root remotely to finish the set u…

---

## [Ansible 1.5.4 breaks variables in vars\_files](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936)

<div class="topic-metadata">

**Author:** [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 11:32pm UTC](https://forum.ansible.com/t/ansible-1-5-4-breaks-variables-in-vars-files/14936 "2014-04-04T23:32:58Z")

</div>

I have a playbook with the following: vars\_files: “vars/{{ ansible\_pkg\_mgr }}.yml” … that works fine in 1.5.3, but 1.5.4 doesn’t appear to be able to find it; when one of the variables that should have been imported …

---

## [Variables in defaults/main.yml of a role are accessible from other roles. What if we have same {{ VAR }} names in several roles? Just wanted to check if this case is intended.](https://forum.ansible.com/t/variables-in-defaults-main-yml-of-a-role-are-accessible-from-other-roles-what-if-we-have-same-var-names-in-several-roles-just-wanted-to-check-if-this-case-is-intended/14933)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 7\
**Last updated:** [April 4, 2014, 6:11pm UTC](https://forum.ansible.com/t/variables-in-defaults-main-yml-of-a-role-are-accessible-from-other-roles-what-if-we-have-same-var-names-in-several-roles-just-wanted-to-check-if-this-case-is-intended/14933 "2014-04-04T18:11:28Z")

</div>

Hi, I stumbled onto little mind game with ansible today : D . I have three roles that are tagged. hosts: vagrant sudo: yes roles: {role: ansible\_users, tags: users} {role: ansible\_nginx, tags: nginx} {role: ansibl…

---

## [feature request: host\_key\_checking offered as 'ansible\_host\_key\_checking' option](https://forum.ansible.com/t/feature-request-host-key-checking-offered-as-ansible-host-key-checking-option/14935)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 5:40pm UTC](https://forum.ansible.com/t/feature-request-host-key-checking-offered-as-ansible-host-key-checking-option/14935 "2014-04-04T17:40:45Z")

</div>

Enabling host\_key\_checking as ‘ansible\_host\_key\_checking’, like several other remote user config options (e.g., ansible\_ssh\_user) could simplify development workflows when MITM attacks are not of concern. For example, a …

---

## [Running remote playbooks within a play](https://forum.ansible.com/t/running-remote-playbooks-within-a-play/14922)

<div class="topic-metadata">

**Author:** [@herby.gillot1](https://forum.ansible.com/u/herby.gillot1)\
**Replies:** 4\
**Last updated:** [April 4, 2014, 3:26pm UTC](https://forum.ansible.com/t/running-remote-playbooks-within-a-play/14922 "2014-04-04T15:26:26Z")

</div>

Purely out of curiosity, what is the suggested course of action to run playbooks present on a remote host within a current run of a local Ansible play? The worst case being to use the shell module to actually exec Ansib…

---

## [variable isn't expanded correctly?](https://forum.ansible.com/t/variable-isnt-expanded-correctly/14934)

<div class="topic-metadata">

**Author:** [@Dario\_Bertini](https://forum.ansible.com/u/Dario_Bertini)\
**Replies:** 6\
**Last updated:** [April 4, 2014, 3:24pm UTC](https://forum.ansible.com/t/variable-isnt-expanded-correctly/14934 "2014-04-04T15:24:42Z")

</div>

Hi, I have a variable set up like this: ansible\_ssh\_user: “{{ lookup(‘env’, ‘USER’) }}” all the commands execute fine, until I get to the point where I want to use the synchronize module, where it fails with: failed: …

---

## [Running python command on when statement](https://forum.ansible.com/t/running-python-command-on-when-statement/14932)

<div class="topic-metadata">

**Author:** [@douglaslopespereira](https://forum.ansible.com/u/douglaslopespereira)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 3:19pm UTC](https://forum.ansible.com/t/running-python-command-on-when-statement/14932 "2014-04-04T15:19:25Z")

</div>

Hi all, I was trying to update ansible from 1.2 to 1.5 and noticed that I can no longer use “only\_if” which has been replaced by “when”. But when I try to run a shell task with this condition: when: “len(filter(lambda…

[Previous page](https://forum.ansible.com/latest.md?page=976)

[Next page](https://forum.ansible.com/latest.md?page=978)
