# Latest

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

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

**Page:** 818

---

## [performing a local task on every (remote) loop iteration - is that even possible?](https://forum.ansible.com/t/performing-a-local-task-on-every-remote-loop-iteration-is-that-even-possible/19789)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 1\
**Last updated:** [November 18, 2015, 5:52pm UTC](https://forum.ansible.com/t/performing-a-local-task-on-every-remote-loop-iteration-is-that-even-possible/19789 "2015-11-18T17:52:21Z")

</div>

Hi, I'm wondering whether the following is possible with ansible only or not. I've got a role that (besides other tasks) creates folders on remote hosts for every available IP address/port combination \[1\]. What I wou…

---

## [New to Ansible - how to setup a practice environment](https://forum.ansible.com/t/new-to-ansible-how-to-setup-a-practice-environment/19790)

<div class="topic-metadata">

**Author:** [@Paul\_Davies](https://forum.ansible.com/u/Paul_Davies)\
**Replies:** 1\
**Last updated:** [November 18, 2015, 5:21pm UTC](https://forum.ansible.com/t/new-to-ansible-how-to-setup-a-practice-environment/19790 "2015-11-18T17:21:51Z")

</div>

Hi all I am new to Linux, Ansible and CI/Devops in general having come from a Windows/SQL background I am trying to learn Ansible, My requirements are to control it from a CentOS machine and control other CentOS/Solari…

---

## [Spaces in URL and file name with get\_url and unarchive](https://forum.ansible.com/t/spaces-in-url-and-file-name-with-get-url-and-unarchive/19728)

<div class="topic-metadata">

**Author:** [@Nathan\_Sowatskey](https://forum.ansible.com/u/Nathan_Sowatskey)\
**Replies:** 4\
**Last updated:** [November 18, 2015, 9:34am UTC](https://forum.ansible.com/t/spaces-in-url-and-file-name-with-get-url-and-unarchive/19728 "2015-11-18T09:34:23Z")

</div>

Hi This URL is for the PyDev plugin for Eclipse: http://freefr.dl.sourceforge.net/project/pydev/pydev/PyDev 4.4.0/PyDev 4.4.0.zip Note that there is a space in the URL and in the file name itself. Those spaces mean t…

---

## [how does Ansible find my first hand made module? I put it in ./library](https://forum.ansible.com/t/how-does-ansible-find-my-first-hand-made-module-i-put-it-in-library/19787)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 3\
**Last updated:** [November 18, 2015, 4:23am UTC](https://forum.ansible.com/t/how-does-ansible-find-my-first-hand-made-module-i-put-it-in-library/19787 "2015-11-18T04:23:14Z")

</div>

I created my first module using your python boilerplates. How do I get my Ansible Playbook to find it? According to the docs, I placed it in ./library/env\_checks.py but I still get “ERROR: enviro\_checks\_ansmodule is not …

---

## [set file permission ONLY if file exists?](https://forum.ansible.com/t/set-file-permission-only-if-file-exists/19782)

<div class="topic-metadata">

**Author:** [@Jorgen\_Hagg](https://forum.ansible.com/u/Jorgen_Hagg)\
**Replies:** 1\
**Last updated:** [November 17, 2015, 10:58pm UTC](https://forum.ansible.com/t/set-file-permission-only-if-file-exists/19782 "2015-11-17T22:58:28Z")

</div>

I’m trying to use the file module to set permissions on files that exists. The manual says that state=file will do so, but I still get an error, “is absent, cannot continue”. From the manual for state: “If file, the fi…

---

## [Review of the upcoming Vagrant Ansible Local Provisioner](https://forum.ansible.com/t/review-of-the-upcoming-vagrant-ansible-local-provisioner/17597)

<div class="topic-metadata">

**Author:** [@Gilles\_Cornu](https://forum.ansible.com/u/Gilles_Cornu)\
**Replies:** 3\
**Last updated:** [November 17, 2015, 9:58pm UTC](https://forum.ansible.com/t/review-of-the-upcoming-vagrant-ansible-local-provisioner/17597 "2015-11-17T21:58:19Z")

</div>

Hello Ansiblings, I am currently working on a guest-based Vagrant provisioner for Ansible (and the consequent refactoring of the legacy host-based Vagrant Ansible provisioner). This feature is planned to be introduced …

---

## [msg: hostname module cannot be used on platform Linux (Centos linux)](https://forum.ansible.com/t/msg-hostname-module-cannot-be-used-on-platform-linux-centos-linux/19737)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 26\
**Last updated:** [November 17, 2015, 9:40pm UTC](https://forum.ansible.com/t/msg-hostname-module-cannot-be-used-on-platform-linux-centos-linux/19737 "2015-11-17T21:40:49Z")

</div>

Hello everyone, I am getting the following error while attempting to run a Galaxy role that was published for EL 7. My target host is an AWS EC2 instance running CentOS 7.0.1406. The only info I have found about this er…

---

## [Ansible Pull Inventory via Tower?](https://forum.ansible.com/t/ansible-pull-inventory-via-tower/19788)

<div class="topic-metadata">

**Author:** [@Ovidio\_B](https://forum.ansible.com/u/Ovidio_B)\
**Replies:** 1\
**Last updated:** [November 17, 2015, 9:08pm UTC](https://forum.ansible.com/t/ansible-pull-inventory-via-tower/19788 "2015-11-17T21:08:02Z")

</div>

Been playing with ansible and this is one of the easiest config-mgmt tools to get into!!! Just curious if it’s possible to pull a list of software packages installed on a system via Tower?

---

## [test-module fails during arg parsing with "zero length field name in format"](https://forum.ansible.com/t/test-module-fails-during-arg-parsing-with-zero-length-field-name-in-format/19786)

<div class="topic-metadata">

**Author:** [@Larry\_Fast](https://forum.ansible.com/u/Larry_Fast)\
**Replies:** 1\
**Last updated:** [November 17, 2015, 9:03pm UTC](https://forum.ansible.com/t/test-module-fails-during-arg-parsing-with-zero-length-field-name-in-format/19786 "2015-11-17T21:03:25Z")

</div>

I’m just starting to develop my first module and test-module gives me an error during arg parsing. So I tried running test-module against ping.py and got the same error. See below. My first guess is it’s a python 2.6.6 p…

---

## [\-include: {{ var }} not working](https://forum.ansible.com/t/include-var-not-working/15972)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 11\
**Last updated:** [November 17, 2015, 3:35pm UTC](https://forum.ansible.com/t/include-var-not-working/15972 "2015-11-17T15:35:37Z")

</div>

Hello! I am trying to include a file based on a variable name like so: do preparation stuff include: ‘{{ include\_before\_symlink }}’ when: ‘{{ include\_before\_symlink != None }}’ do symlinking This is to be able to do…

---

## [Install packages with specific versions in single transaction](https://forum.ansible.com/t/install-packages-with-specific-versions-in-single-transaction/19783)

<div class="topic-metadata">

**Author:** [@Daniil1](https://forum.ansible.com/u/Daniil1)\
**Replies:** 0\
**Last updated:** [November 17, 2015, 2:43pm UTC](https://forum.ansible.com/t/install-packages-with-specific-versions-in-single-transaction/19783 "2015-11-17T14:43:04Z")

</div>

Hello. As documentation says I can write construction like that: \` apt: name={{ item }} state=present with\_items: package1 package2 \` and have single transaction to package management system: ok: \[foo.bar\] =\> (i…

---

## [Manage Unix Users Over Multiple Evironments with Ansible](https://forum.ansible.com/t/manage-unix-users-over-multiple-evironments-with-ansible/19759)

<div class="topic-metadata">

**Author:** [@Ralph\_Bolton](https://forum.ansible.com/u/Ralph_Bolton)\
**Replies:** 7\
**Last updated:** [November 17, 2015, 9:08am UTC](https://forum.ansible.com/t/manage-unix-users-over-multiple-evironments-with-ansible/19759 "2015-11-17T09:08:07Z")

</div>

Hi, I’m trying to manage a small number of Unix users on a smallish estate of servers (~100 servers). My users are either devs, sysadmins or support, and need different access to different boxes. I’ve got a nice way to …

---

## [Waiting for port after reboot](https://forum.ansible.com/t/waiting-for-port-after-reboot/19781)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitt](https://forum.ansible.com/u/Christian_Schmitt)\
**Replies:** 0\
**Last updated:** [November 17, 2015, 8:41am UTC](https://forum.ansible.com/t/waiting-for-port-after-reboot/19781 "2015-11-17T08:41:26Z")

</div>

Hello, currently I try to wait for SSH on port 22 after reboot, however it will always fail with the following: TASK: \[upgrade | waiting for port after reboot\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: \[ev01.envisia.de →…

---

## [lining up users when bootstrapping a system](https://forum.ansible.com/t/lining-up-users-when-bootstrapping-a-system/19750)

<div class="topic-metadata">

**Author:** [@Greg\_Swift](https://forum.ansible.com/u/Greg_Swift)\
**Replies:** 2\
**Last updated:** [November 17, 2015, 4:35am UTC](https://forum.ansible.com/t/lining-up-users-when-bootstrapping-a-system/19750 "2015-11-17T04:35:46Z")

</div>

I’ve been bashing at this since yesterday and have read around a lot and tried lots of things. I figured it was time to try the list. Basically I’m trying to create a playbook that will be used when bootstrapping a fres…

---

## [Create hash variable in playbook for use by with\_dict](https://forum.ansible.com/t/create-hash-variable-in-playbook-for-use-by-with-dict/19779)

<div class="topic-metadata">

**Author:** [@Derek\_Olsen](https://forum.ansible.com/u/Derek_Olsen)\
**Replies:** 0\
**Last updated:** [November 16, 2015, 11:38pm UTC](https://forum.ansible.com/t/create-hash-variable-in-playbook-for-use-by-with-dict/19779 "2015-11-16T23:38:07Z")

</div>

I’m hoping someone can help me learn how to work with ansible to achieve the following. This is my first forray into ansible (1.9.4). I I am assigning a list variable called ‘datadog\_checks’ to different roles. Nodes wh…

---

## [The with\_items iterator doesnt stop on failures](https://forum.ansible.com/t/the-with-items-iterator-doesnt-stop-on-failures/18009)

<div class="topic-metadata">

**Author:** [@spankthespam](https://forum.ansible.com/u/spankthespam)\
**Replies:** 3\
**Last updated:** [November 16, 2015, 11:07pm UTC](https://forum.ansible.com/t/the-with-items-iterator-doesnt-stop-on-failures/18009 "2015-11-16T23:07:58Z")

</div>

Hi, I’ve found a situation where task iteration over items using ‘with\_items’ will iterate over entire list, despite the fact that one or more iterations can fail, what causes issues when the iterations are dependant on…

---

## [How to execute tasks based on group names in ansible](https://forum.ansible.com/t/how-to-execute-tasks-based-on-group-names-in-ansible/19767)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 2\
**Last updated:** [November 16, 2015, 10:59pm UTC](https://forum.ansible.com/t/how-to-execute-tasks-based-on-group-names-in-ansible/19767 "2015-11-16T22:59:55Z")

</div>

Hi, I would like to use the when condition to execute tasks based on group names in ansible. I am using this code snipit when: ({{group\_names}} == "web-server") But it always skips. Can someone please correct me.

---

## [The file module failing when directory exists](https://forum.ansible.com/t/the-file-module-failing-when-directory-exists/19773)

<div class="topic-metadata">

**Author:** [@igorc](https://forum.ansible.com/u/igorc)\
**Replies:** 4\
**Last updated:** [November 16, 2015, 10:47pm UTC](https://forum.ansible.com/t/the-file-module-failing-when-directory-exists/19773 "2015-11-16T22:47:30Z")

</div>

Hi all, Currently a task like this: file: path=/data state=directory owner=root group=root mode=0755 fails with the following error: failed: \[localhost\] =\> {“failed”: true, “parsed”: false} BECOME-SUCCESS-pquapqcakq…

---

## [RiakCS bucket provisioning support](https://forum.ansible.com/t/riakcs-bucket-provisioning-support/19778)

<div class="topic-metadata">

**Author:** [@Patrick\_Marques](https://forum.ansible.com/u/Patrick_Marques)\
**Replies:** 0\
**Last updated:** [November 16, 2015, 8:33pm UTC](https://forum.ansible.com/t/riakcs-bucket-provisioning-support/19778 "2015-11-16T20:33:18Z")

</div>

Hi, RiakCS uses S3 API but is not yet 100% compliant. I would like t discusse some changes that I have made to support RiakCS bucket provisioning: RiakCS doesn’t support versioning pays & it seems to not support tags an…

---

## [Using special characters in filtered strings](https://forum.ansible.com/t/using-special-characters-in-filtered-strings/19776)

<div class="topic-metadata">

**Author:** [@Tomasz\_Kuchta](https://forum.ansible.com/u/Tomasz_Kuchta)\
**Replies:** 0\
**Last updated:** [November 16, 2015, 8:02pm UTC](https://forum.ansible.com/t/using-special-characters-in-filtered-strings/19776 "2015-11-16T20:02:54Z")

</div>

Hi, I got stuck with the following: Imagine we have a string in stdout of a command that we would like to filter out: Error123: some ‘thing’ (happened) If we want to filter that out we would do something like “{{ it…

---

## [Anyway of specifying host in ansible.runner?](https://forum.ansible.com/t/anyway-of-specifying-host-in-ansible-runner/19774)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 1\
**Last updated:** [November 16, 2015, 6:15pm UTC](https://forum.ansible.com/t/anyway-of-specifying-host-in-ansible-runner/19774 "2015-11-16T18:15:42Z")

</div>

The inventory style is not working to well for what I want to do. I am building my own scripts on top of the ansible API, and I need to work with one host at a time, so that I can present configuration values and prompt…

---

## [Ansible 1.9.4,  AWS Auto scaling "Launching a new EC2 instance. Status Reason: The parameter SecurityGroup is not recognized. "](https://forum.ansible.com/t/ansible-1-9-4-aws-auto-scaling-launching-a-new-ec2-instance-status-reason-the-parameter-securitygroup-is-not-recognized/19775)

<div class="topic-metadata">

**Author:** [@Adrian\_Black1](https://forum.ansible.com/u/Adrian_Black1)\
**Replies:** 1\
**Last updated:** [November 16, 2015, 5:35pm UTC](https://forum.ansible.com/t/ansible-1-9-4-aws-auto-scaling-launching-a-new-ec2-instance-status-reason-the-parameter-securitygroup-is-not-recognized/19775 "2015-11-16T17:35:36Z")

</div>

Im trying to do an auto scaling group in AWS Below is my script. It runs and almost completes (it sets up lb, asg and lc in AWS) but times out with “msg: Waited too long for new instances to become viable. Mon Nov 16 …

---

## [ec2\_vpc always reports configuration has "changed"](https://forum.ansible.com/t/ec2-vpc-always-reports-configuration-has-changed/19772)

<div class="topic-metadata">

**Author:** [@Ed\_Zhu](https://forum.ansible.com/u/Ed_Zhu)\
**Replies:** 1\
**Last updated:** [November 16, 2015, 4:57pm UTC](https://forum.ansible.com/t/ec2-vpc-always-reports-configuration-has-changed/19772 "2015-11-16T16:57:31Z")

</div>

I’m trying the ec2\_vpc example posted in the documentation page (http://docs.ansible.com/ansible/ec2\_vpc\_module.html). Everything is working as expected, except it always reports configuration has changed. Here’s the ver…

---

## [Windows: The future of powershell.ps1](https://forum.ansible.com/t/windows-the-future-of-powershell-ps1/19735)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 6\
**Last updated:** [November 16, 2015, 4:49pm UTC](https://forum.ansible.com/t/windows-the-future-of-powershell-ps1/19735 "2015-11-16T16:49:02Z")

</div>

Hi all, We’re seeing some patterns where multiple modules might share very similar code (UserSearch is an example of a function which pretty much every module dealing with permissions needs). Currently these are impleme…

---

## [Loop over facts in playbook](https://forum.ansible.com/t/loop-over-facts-in-playbook/17826)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 5\
**Last updated:** [November 16, 2015, 4:40pm UTC](https://forum.ansible.com/t/loop-over-facts-in-playbook/17826 "2015-11-16T16:40:29Z")

</div>

Hi I have some troubles to understand how to loop over facts in playbook. Suppose I have the following: ansible node01 -m setup -a 'filter=ansible\_devices' SSH password: SU password\[defaults to SSH password\]: node01 | …

---

## [Solaris and pfexec, not working?](https://forum.ansible.com/t/solaris-and-pfexec-not-working/19748)

<div class="topic-metadata">

**Author:** [@thomas.willert](https://forum.ansible.com/u/thomas.willert)\
**Replies:** 5\
**Last updated:** [November 16, 2015, 7:40am UTC](https://forum.ansible.com/t/solaris-and-pfexec-not-working/19748 "2015-11-16T07:40:17Z")

</div>

Hi, I am not able to get the “ping” modules working when using privilege escalation on Solaris 11. I am using Ansible 1.9.4 from a CentOS 7.1 control machine: $ ansible --version ansible 1.9.4 configured module search…

---

## [using a variable as a group name when executing a task ?](https://forum.ansible.com/t/using-a-variable-as-a-group-name-when-executing-a-task/19758)

<div class="topic-metadata">

**Author:** [@Alejandro\_Comisario1](https://forum.ansible.com/u/Alejandro_Comisario1)\
**Replies:** 7\
**Last updated:** [November 15, 2015, 8:26pm UTC](https://forum.ansible.com/t/using-a-variable-as-a-group-name-when-executing-a-task/19758 "2015-11-15T20:26:47Z")

</div>

Hi all ! is there any way of achieving the following ? ( i’ve tried this ones and i get “no hosts matched” ) monitor\_group = “glance” hosts: “{{ monitor\_group }}” roles: { role: icinga2-check-commands, tags: \[‘monit…

---

## [Using conditional roles](https://forum.ansible.com/t/using-conditional-roles/19766)

<div class="topic-metadata">

**Author:** [@Francois](https://forum.ansible.com/u/Francois)\
**Replies:** 2\
**Last updated:** [November 15, 2015, 8:08pm UTC](https://forum.ansible.com/t/using-conditional-roles/19766 "2015-11-15T20:08:20Z")

</div>

Hello, In the Ansible Roles documentation it’s written; “While it’s probably not something you should do often, you can also conditionally apply roles like so:” --- - hosts: webservers roles: - { role: some\_rol…

---

## [Dictionary lookups being clobbered when assigning values to children elsewhere](https://forum.ansible.com/t/dictionary-lookups-being-clobbered-when-assigning-values-to-children-elsewhere/19770)

<div class="topic-metadata">

**Author:** [@cmacrae](https://forum.ansible.com/u/cmacrae)\
**Replies:** 4\
**Last updated:** [November 15, 2015, 6:11pm UTC](https://forum.ansible.com/t/dictionary-lookups-being-clobbered-when-assigning-values-to-children-elsewhere/19770 "2015-11-15T18:11:39Z")

</div>

Hey People, Having some trouble using YAML dictionaries. I'm refactoring my variable structure in a role a wrote a while ago. The variables used to all look like: sensu\_api\_host, but I wanted to move to using dictiona…

---

## [Failed to template {{ variable\_name }}, recursive loop error](https://forum.ansible.com/t/failed-to-template-variable-name-recursive-loop-error/19771)

<div class="topic-metadata">

**Author:** [@Rob\_Wilkerson](https://forum.ansible.com/u/Rob_Wilkerson)\
**Replies:** 2\
**Last updated:** [November 15, 2015, 3:56pm UTC](https://forum.ansible.com/t/failed-to-template-variable-name-recursive-loop-error/19771 "2015-11-15T15:56:34Z")

</div>

I have a playbook that runs 2 plays and then includes a playbook from another project. When calling the external playbook, it attempts to pass along a couple of variables so that the external playbook has the proper cont…

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

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