# Latest

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

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

**Page:** 1017

---

## [Creating a user with a dash in their username](https://forum.ansible.com/t/creating-a-user-with-a-dash-in-their-username/13729)

<div class="topic-metadata">

**Author:** [@danrough](https://forum.ansible.com/u/danrough)\
**Replies:** 2\
**Last updated:** [October 22, 2013, 2:41pm UTC](https://forum.ansible.com/t/creating-a-user-with-a-dash-in-their-username/13729 "2013-10-22T14:41:52Z")

</div>

Hi there, I understand that dashes are reserved. I’m wondering though if anybody else has had the need to create users, specifically system ones, that have a dash in their name. At the moment, I have an action that is s…

---

## [lists as arguments](https://forum.ansible.com/t/lists-as-arguments/13742)

<div class="topic-metadata">

**Author:** [@Nandor\_Sivok](https://forum.ansible.com/u/Nandor_Sivok)\
**Replies:** 2\
**Last updated:** [October 22, 2013, 2:40pm UTC](https://forum.ansible.com/t/lists-as-arguments/13742 "2013-10-22T14:40:35Z")

</div>

Hello, I would like to pass a list of strings as an argument to one of my playbook to iterate it through in a with\_items block. what I’m trying to do is: ansible-playbook a.yml -e “items=\[‘test1’,‘test2’\]”

---

## [Studying source code](https://forum.ansible.com/t/studying-source-code/13739)

<div class="topic-metadata">

**Author:** [@Janez\_Nemanic](https://forum.ansible.com/u/Janez_Nemanic)\
**Replies:** 3\
**Last updated:** [October 22, 2013, 2:35pm UTC](https://forum.ansible.com/t/studying-source-code/13739 "2013-10-22T14:35:44Z")

</div>

Hi, I would like to study Ansible’s source code because I would like to contribute to the project. Because of my lack of experiences I would need some advice from experienced contributors. Could you please advise me wha…

---

## [problems with quoting for ansible commands](https://forum.ansible.com/t/problems-with-quoting-for-ansible-commands/13725)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 5\
**Last updated:** [October 22, 2013, 2:17pm UTC](https://forum.ansible.com/t/problems-with-quoting-for-ansible-commands/13725 "2013-10-22T14:17:42Z")

</div>

What is the proper way to quote a shell command like the following: shell: wget --header ‘Cookie: gpw=http%3A\_url’ download\_url Interestingly, the colon in the http:// in the download url (see details below) is protect…

---

## [mysql\_user pure](https://forum.ansible.com/t/mysql-user-pure/13740)

<div class="topic-metadata">

**Author:** [@Petrus\_Rademeyer](https://forum.ansible.com/u/Petrus_Rademeyer)\
**Replies:** 2\
**Last updated:** [October 22, 2013, 1:56pm UTC](https://forum.ansible.com/t/mysql-user-pure/13740 "2013-10-22T13:56:12Z")

</div>

I’m reposting this on here from the github issue (https://github.com/ansible/ansible/issues/4615)

---

## [Replacing line using lineinfile results in multiple insertions even when line isn't present](https://forum.ansible.com/t/replacing-line-using-lineinfile-results-in-multiple-insertions-even-when-line-isnt-present/13663)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 2\
**Last updated:** [October 22, 2013, 12:17pm UTC](https://forum.ansible.com/t/replacing-line-using-lineinfile-results-in-multiple-insertions-even-when-line-isnt-present/13663 "2013-10-22T12:17:11Z")

</div>

Hello, I am working on a playbook that would automatically add a bridge network device to /etc/network/interfaces (on Debian-based distributions); this new interface should replace the existing config for the specified …

---

## [Escaping problem with regular expression and variables](https://forum.ansible.com/t/escaping-problem-with-regular-expression-and-variables/13713)

<div class="topic-metadata">

**Author:** [@christian\_studer](https://forum.ansible.com/u/christian_studer)\
**Replies:** 6\
**Last updated:** [October 22, 2013, 4:06am UTC](https://forum.ansible.com/t/escaping-problem-with-regular-expression-and-variables/13713 "2013-10-22T04:06:03Z")

</div>

Hello, I’m taking my first steps with Ansible (1.4 dev) and love it so far. However I hit a snag escaping special characters with a particular line. I’m trying to insert a line into a YAML file: name: Insert clusterna…

---

## [How do I loop over role definitions?](https://forum.ansible.com/t/how-do-i-loop-over-role-definitions/13733)

<div class="topic-metadata">

**Author:** [@Dan\_J](https://forum.ansible.com/u/Dan_J)\
**Replies:** 4\
**Last updated:** [October 22, 2013, 1:26am UTC](https://forum.ansible.com/t/how-do-i-loop-over-role-definitions/13733 "2013-10-22T01:26:30Z")

</div>

Let me describe what I mean. Let’s say I have the following variables defined somewhere: users: name: “{{ ansible\_user\_id }}” group: “{% if ansible\_os\_family|lower == ‘darwin’ %}staff{% else %}{{ ansible\_user\_id }}{%…

---

## [notify can't be expanded](https://forum.ansible.com/t/notify-cant-be-expanded/13732)

<div class="topic-metadata">

**Author:** [@Brian\_Candler](https://forum.ansible.com/u/Brian_Candler)\
**Replies:** 2\
**Last updated:** [October 22, 2013, 1:22am UTC](https://forum.ansible.com/t/notify-cant-be-expanded/13732 "2013-10-22T01:22:12Z")

</div>

Is it intentional that I can’t notify a handler with a dynamic name? ==\> roles/idmapd/tasks/main.yml \<==

---

## [Ansible 1.3 - Read facts from files.](https://forum.ansible.com/t/ansible-1-3-read-facts-from-files/13727)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 1\
**Last updated:** [October 22, 2013, 1:18am UTC](https://forum.ansible.com/t/ansible-1-3-read-facts-from-files/13727 "2013-10-22T01:18:49Z")

</div>

Hi there, On ansible webiste for modules there is information that ‘setup’ module can use fact\_path paramters which allow read facts from file. I searched ansible-examples and don’t see any example for this so far. So …

---

## [Machines in multiple groups](https://forum.ansible.com/t/machines-in-multiple-groups/13720)

<div class="topic-metadata">

**Author:** [@Brian\_Candler](https://forum.ansible.com/u/Brian_Candler)\
**Replies:** 6\
**Last updated:** [October 22, 2013, 1:14am UTC](https://forum.ansible.com/t/machines-in-multiple-groups/13720 "2013-10-22T01:14:14Z")

</div>

My final question today, promise :slight\_smile: It seems that you can have the same machine in multiple groups. Is this frowned upon? For example: \[macmini\] s1 s2 s3 \[dnsserver\] s1 s2 \[dhcpserver\] s2 s3 This …

---

## [Devel branch update -- pending death to old style variables! We now have references and preserved types!](https://forum.ansible.com/t/devel-branch-update-pending-death-to-old-style-variables-we-now-have-references-and-preserved-types/13723)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [October 21, 2013, 8:07pm UTC](https://forum.ansible.com/t/devel-branch-update-pending-death-to-old-style-variables-we-now-have-references-and-preserved-types/13723 "2013-10-21T20:07:20Z")

</div>

Hi everyone! AWESOME NEWS #1 — one of the frequent complaints about the using variables from Jinja2 like {{ foo }} versus the old ways ${x} was that it was hard to make one thing reference another, and it often “ate” ty…

---

## [How do I refer to the previously defined variable in "with\_nested"?](https://forum.ansible.com/t/how-do-i-refer-to-the-previously-defined-variable-in-with-nested/13735)

<div class="topic-metadata">

**Author:** [@Dan\_J](https://forum.ansible.com/u/Dan_J)\
**Replies:** 1\
**Last updated:** [October 21, 2013, 6:17pm UTC](https://forum.ansible.com/t/how-do-i-refer-to-the-previously-defined-variable-in-with-nested/13735 "2013-10-21T18:17:36Z")

</div>

For example, I would like to do something like this: name: install git repos for all users git: “repo={{ item\[1\].repo }} dest={{ item\[0\].home }}/{{ item\[1\].dest }}” with\_nested: users item\[0\]\[‘repos’\]\[‘git’\]

---

## [Installing Pythonbrew](https://forum.ansible.com/t/installing-pythonbrew/13681)

<div class="topic-metadata">

**Author:** [@klenwell](https://forum.ansible.com/u/klenwell)\
**Replies:** 6\
**Last updated:** [October 21, 2013, 4:15pm UTC](https://forum.ansible.com/t/installing-pythonbrew/13681 "2013-10-21T16:15:28Z")

</div>

I’m trying to move the fabric-based deployment process for one of our Python projects over to Ansible. In our current process, the provisioning stage is done manually. I’ve read a few tutorials and managed to migrate the…

---

## [Any Go developers in the house? Packer provisioner module?](https://forum.ansible.com/t/any-go-developers-in-the-house-packer-provisioner-module/13245)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 12\
**Last updated:** [October 21, 2013, 3:57pm UTC](https://forum.ansible.com/t/any-go-developers-in-the-house-packer-provisioner-module/13245 "2013-10-21T15:57:50Z")

</div>

It might be nice for us to have a module for packer.io, which uses various CM tools to build images. It’s pretty new. I’m not a Go developer, though I figured someone might like to do this, and there were probably go de…

---

## [Template - load default file if specific not exists.](https://forum.ansible.com/t/template-load-default-file-if-specific-not-exists/13726)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 7\
**Last updated:** [October 21, 2013, 12:52pm UTC](https://forum.ansible.com/t/template-load-default-file-if-specific-not-exists/13726 "2013-10-21T12:52:52Z")

</div>

Hi, I have some question about template module. Is there any way to use specific file in template which depends of environment and if file doesn’t exist (or condition is not valid) - default file will be used? For exa…

---

## [Ansible : Accessing a variable containing a :](https://forum.ansible.com/t/ansible-accessing-a-variable-containing-a/13710)

<div class="topic-metadata">

**Author:** [@Old\_Karkass](https://forum.ansible.com/u/Old_Karkass)\
**Replies:** 2\
**Last updated:** [October 21, 2013, 10:32am UTC](https://forum.ansible.com/t/ansible-accessing-a-variable-containing-a/13710 "2013-10-21T10:32:01Z")

</div>

Hi I’ve got an issue with the variables coming from the setup module It list all the network interfaces on the target system and I need to reuse the ip address from the eth0:0 interface in a template From the setup mo…

---

## [Simple playbook to start an ec2 instance](https://forum.ansible.com/t/simple-playbook-to-start-an-ec2-instance/13719)

<div class="topic-metadata">

**Author:** [@Soumya\_Simanta](https://forum.ansible.com/u/Soumya_Simanta)\
**Replies:** 2\
**Last updated:** [October 21, 2013, 3:46am UTC](https://forum.ansible.com/t/simple-playbook-to-start-an-ec2-instance/13719 "2013-10-21T03:46:14Z")

</div>

I’m new to Ansbile and trying to start a simple EC2 instance. I’m trying to run my Ansbile playbook from an Amazon EC2 VM (host name is cfgsvr). Please let me know what am I missing here. Here is my directory structure …

---

## [Actions before installing a new file](https://forum.ansible.com/t/actions-before-installing-a-new-file/13722)

<div class="topic-metadata">

**Author:** [@Brian\_Candler](https://forum.ansible.com/u/Brian_Candler)\
**Replies:** 4\
**Last updated:** [October 20, 2013, 5:07pm UTC](https://forum.ansible.com/t/actions-before-installing-a-new-file/13722 "2013-10-20T17:07:10Z")

</div>

I am looking for suggestions for the cleanest way to implement the following. Have a template for /etc/network/interfaces If it is different to the current version, then: before the new version is installed, run…

---

## [Warning about '{{' in loops, while no other option](https://forum.ansible.com/t/warning-about-in-loops-while-no-other-option/13714)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 10\
**Last updated:** [October 20, 2013, 4:37pm UTC](https://forum.ansible.com/t/warning-about-in-loops-while-no-other-option/13714 "2013-10-20T16:37:37Z")

</div>

I have some loops that take a combined string + variable, not just a variable. In this case, AFAIK, i’ts needed to use the {{ var notation, yet I still get \[WARNING\]: It is unneccessary to use ‘{{’ in loops, leave vari…

---

## [RFC: unarchive module and action\_plugin](https://forum.ansible.com/t/rfc-unarchive-module-and-action-plugin/13717)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Replies:** 1\
**Last updated:** [October 20, 2013, 1:17am UTC](https://forum.ansible.com/t/rfc-unarchive-module-and-action-plugin/13717 "2013-10-20T01:17:32Z")

</div>

I have a functional, if barely tested, unarchive module ready for interested folks to take a look at: http://github.com/pileofrogs/ansible\_unarchive It handles gzip, bzip2 & xz compressed as well as uncompressed tar fi…

---

## [local\_action: command rsync and {{ansible\_ssh\_user}}](https://forum.ansible.com/t/local-action-command-rsync-and-ansible-ssh-user/13711)

<div class="topic-metadata">

**Author:** [@Kirk\_Byers](https://forum.ansible.com/u/Kirk_Byers)\
**Replies:** 4\
**Last updated:** [October 20, 2013, 1:16am UTC](https://forum.ansible.com/t/local-action-command-rsync-and-ansible-ssh-user/13711 "2013-10-20T01:16:37Z")

</div>

I am running ansible 1.3.3. I am trying to do an rsync of a set of directories to a remote machine. This works: local\_action: command rsync -ae ssh /LOCAL\_PATH kbyers@{{ansible\_ssh\_host}}:/REMOTE\_PATH But this doesn’…

---

## [md5 checksum error](https://forum.ansible.com/t/md5-checksum-error/13712)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 4\
**Last updated:** [October 18, 2013, 7:52pm UTC](https://forum.ansible.com/t/md5-checksum-error/13712 "2013-10-18T19:52:00Z")

</div>

This was part of an ansible-play error printout warning: md5sum command failed unusually, please report this to the list so it can be fixed command: \[u’(/usr/bin/md5sum ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>…

---

## [VPC without default subnet; Assign public IP/DNS](https://forum.ansible.com/t/vpc-without-default-subnet-assign-public-ip-dns/13669)

<div class="topic-metadata">

**Author:** [@Scott\_Armit](https://forum.ansible.com/u/Scott_Armit)\
**Replies:** 3\
**Last updated:** [October 18, 2013, 3:19pm UTC](https://forum.ansible.com/t/vpc-without-default-subnet-assign-public-ip-dns/13669 "2013-10-18T15:19:55Z")

</div>

We use the ec2 module to launch instances in a VPC. If the VPC does not have a default subnet, then the instance will not be provided both private and public IP/DNS. This is AWS behavior, not Ansible’s:

---

## [Sequencing of handlers between roles](https://forum.ansible.com/t/sequencing-of-handlers-between-roles/13715)

<div class="topic-metadata">

**Author:** [@Brian\_Candler](https://forum.ansible.com/u/Brian_Candler)\
**Replies:** 2\
**Last updated:** [October 18, 2013, 3:10pm UTC](https://forum.ansible.com/t/sequencing-of-handlers-between-roles/13715 "2013-10-18T15:10:41Z")

</div>

The Manifesto for Agentic Automation says: “These ‘notify’ actions are triggered at the end of each block of tasks in a playbook” What’s a block of tasks: the set of tasks within a role, or all the tasks in all roles c…

---

## [Can we rely on using indices to refer a particular host?](https://forum.ansible.com/t/can-we-rely-on-using-indices-to-refer-a-particular-host/13705)

<div class="topic-metadata">

**Author:** [@Sundar1](https://forum.ansible.com/u/Sundar1)\
**Replies:** 2\
**Last updated:** [October 18, 2013, 9:41am UTC](https://forum.ansible.com/t/can-we-rely-on-using-indices-to-refer-a-particular-host/13705 "2013-10-18T09:41:33Z")

</div>

My hosts file is this \[prod\_webservers\] 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4 5.5.5.5 If my playbook is like this,

---

## ["Delegating" handlers to other hosts](https://forum.ansible.com/t/delegating-handlers-to-other-hosts/13707)

<div class="topic-metadata">

**Author:** [@Michel\_Blanc1](https://forum.ansible.com/u/Michel_Blanc1)\
**Replies:** 6\
**Last updated:** [October 17, 2013, 10:38pm UTC](https://forum.ansible.com/t/delegating-handlers-to-other-hosts/13707 "2013-10-17T22:38:08Z")

</div>

Hi all, Is there any way to delegate handler execution on another host ? Scenario : some client pushes part of a configuration (e.g. backup client) to a server and triggers configuration rebuild (assemble) on the ser…

---

## [changing inventory\_hostname when working with chroot connector](https://forum.ansible.com/t/changing-inventory-hostname-when-working-with-chroot-connector/13706)

<div class="topic-metadata">

**Author:** [@Matthew\_Hollick](https://forum.ansible.com/u/Matthew_Hollick)\
**Replies:** 1\
**Last updated:** [October 17, 2013, 5:58pm UTC](https://forum.ansible.com/t/changing-inventory-hostname-when-working-with-chroot-connector/13706 "2013-10-17T17:58:10Z")

</div>

I am probably doing this completely wrong… The playbook is for a system running openvz. It tries to clone a openvz container from an existing template then setup ssh using the chroot connector. The container is then b…

---

## [Ansible Module for OpSource Cloud REST API](https://forum.ansible.com/t/ansible-module-for-opsource-cloud-rest-api/13701)

<div class="topic-metadata">

**Author:** [@Lloyd\_Chang](https://forum.ansible.com/u/Lloyd_Chang)\
**Replies:** 1\
**Last updated:** [October 17, 2013, 5:40pm UTC](https://forum.ansible.com/t/ansible-module-for-opsource-cloud-rest-api/13701 "2013-10-17T17:40:54Z")

</div>

Hey there, are you aware of anyone actively working on an Ansible Module that calls OpSource Cloud REST API? http://www.ansibleworks.com/docs/modules.html https://community.opsourcecloud.net/View.jsp?procRevId=16331a6a…

---

## [suggestions to make my master playbook simpler](https://forum.ansible.com/t/suggestions-to-make-my-master-playbook-simpler/13708)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [October 17, 2013, 2:32pm UTC](https://forum.ansible.com/t/suggestions-to-make-my-master-playbook-simpler/13708 "2013-10-17T14:32:08Z")

</div>

Hi, I have a master playbook to deploy 10 different group servers per region but would like to make things simpler. As you can see the vars\_files section and handlers bellow is the same on all groups, the only things th…

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

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