# Latest

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

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

**Page:** 1005

---

## [Ansible playbook hostvars undefined variables](https://forum.ansible.com/t/ansible-playbook-hostvars-undefined-variables/14114)

<div class="topic-metadata">

**Author:** [@Vasiliy\_Boulytchev](https://forum.ansible.com/u/Vasiliy_Boulytchev)\
**Replies:** 12\
**Last updated:** [December 11, 2013, 10:22pm UTC](https://forum.ansible.com/t/ansible-playbook-hostvars-undefined-variables/14114 "2013-12-11T22:22:54Z")

</div>

Folks, The following code is producing errors. code: {% for v in hostvars.iteritems() %} {{ v\['ansible\_all\_ipv4\_addresses'\]\[0\] }} {{ v\['ansible\_hostname'\] }} {% endfor %} error: {'msg': "One or more undefined v…

---

## [Mind-boggling variable expansion in problems in 'lookup'](https://forum.ansible.com/t/mind-boggling-variable-expansion-in-problems-in-lookup/14123)

<div class="topic-metadata">

**Author:** [@Roman\_Revyakin](https://forum.ansible.com/u/Roman_Revyakin)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 9:47pm UTC](https://forum.ansible.com/t/mind-boggling-variable-expansion-in-problems-in-lookup/14123 "2013-12-11T21:47:56Z")

</div>

Hi guys, Can anyone tell me why variables in this simple playbook do not get expanded?

---

## [replace multiple lines in multiple files using lineinfile and register](https://forum.ansible.com/t/replace-multiple-lines-in-multiple-files-using-lineinfile-and-register/14129)

<div class="topic-metadata">

**Author:** [@iqbal.hasnan](https://forum.ansible.com/u/iqbal.hasnan)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 9:07pm UTC](https://forum.ansible.com/t/replace-multiple-lines-in-multiple-files-using-lineinfile-and-register/14129 "2013-12-11T21:07:31Z")

</div>

Hello Ansible users, I’m trying to replace multiple lines in multiple files using the lineinfile and register, and this is what I got so far. name: list of the .conf files raw: ls /etc/httpd/conf.d/\*.conf register:…

---

## [Looking for ideas: secure user management](https://forum.ansible.com/t/looking-for-ideas-secure-user-management/14098)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 15\
**Last updated:** [December 11, 2013, 9:05pm UTC](https://forum.ansible.com/t/looking-for-ideas-secure-user-management/14098 "2013-12-11T21:05:49Z")

</div>

Let’s assume we have any array of users that should be present on any host with some defined permissions. To do that with ansible, the modules ‘user’ and ‘authorized\_key’ are perfect tools. What I would like to achieve …

---

## [Find and replace filter](https://forum.ansible.com/t/find-and-replace-filter/14131)

<div class="topic-metadata">

**Author:** [@Matt\_Byerly](https://forum.ansible.com/u/Matt_Byerly)\
**Replies:** 0\
**Last updated:** [December 11, 2013, 8:16pm UTC](https://forum.ansible.com/t/find-and-replace-filter/14131 "2013-12-11T20:16:27Z")

</div>

Heyo, I was looking for a built-in filter either in Ansible or in Jinja2 that supported regex based find and replace. It doesn’t appear a real straight forward implementation exists today. I was able to achieve what I w…

---

## [Load variables for a multiple environments / multiple clusters setup](https://forum.ansible.com/t/load-variables-for-a-multiple-environments-multiple-clusters-setup/14130)

<div class="topic-metadata">

**Author:** [@Francesc\_Esplugas](https://forum.ansible.com/u/Francesc_Esplugas)\
**Replies:** 0\
**Last updated:** [December 11, 2013, 7:08pm UTC](https://forum.ansible.com/t/load-variables-for-a-multiple-environments-multiple-clusters-setup/14130 "2013-12-11T19:08:35Z")

</div>

Hi all, We are implementing Ansible at our company and with the current setup we are managing multiple applications into multiple environments by loading the appropriate hosts files. Our issues come when loading the va…

---

## [duplicated role execution..](https://forum.ansible.com/t/duplicated-role-execution/14122)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 4\
**Last updated:** [December 11, 2013, 6:30pm UTC](https://forum.ansible.com/t/duplicated-role-execution/14122 "2013-12-11T18:30:54Z")

</div>

I have defined three roles: A, B and C. Using meta/main.yml, I have B depending on A, and C depending on A as well. If I have the following: hosts: group\_test roles: B C What happens is that the tasks associated to…

---

## [Passing nested arguments to a module](https://forum.ansible.com/t/passing-nested-arguments-to-a-module/14102)

<div class="topic-metadata">

**Author:** [@Giorgio\_Valoti](https://forum.ansible.com/u/Giorgio_Valoti)\
**Replies:** 6\
**Last updated:** [December 11, 2013, 6:05pm UTC](https://forum.ansible.com/t/passing-nested-arguments-to-a-module/14102 "2013-12-11T18:05:35Z")

</div>

Hi, I’m trying to extend the ZFS module to add support for user properties. My plan was to add a new module argument, called (guess what) \`user\_properties\` which accepts a list of dictionaries: \[{key: 'my.module.name…

---

## [shell chdir not working](https://forum.ansible.com/t/shell-chdir-not-working/14127)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 5:34pm UTC](https://forum.ansible.com/t/shell-chdir-not-working/14127 "2013-12-11T17:34:40Z")

</div>

I expected the following to init a git repository in /home/youruser/a, but instead it’s created created in / what am I doing wrong?

---

## [Install Ansible on Mac OS X: the appropriate way?](https://forum.ansible.com/t/install-ansible-on-mac-os-x-the-appropriate-way/14108)

<div class="topic-metadata">

**Author:** [@Ye\_Deng](https://forum.ansible.com/u/Ye_Deng)\
**Replies:** 3\
**Last updated:** [December 11, 2013, 4:27pm UTC](https://forum.ansible.com/t/install-ansible-on-mac-os-x-the-appropriate-way/14108 "2013-12-11T16:27:13Z")

</div>

Hello all, I tried to install Ansible on both Mac OS X 10.9 and ubuntu-12.04. It seems my installation on OS X is not quite complete. I followed the instructions on this page below: http://www.ansibleworks.com/docs/i…

---

## [Retry SSH connection?](https://forum.ansible.com/t/retry-ssh-connection/14125)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 4:20pm UTC](https://forum.ansible.com/t/retry-ssh-connection/14125 "2013-12-11T16:20:16Z")

</div>

I have a complex playbook that will provision a CentOS VM on a XenServer pool from scratch and then configure the VM according to its roles. It works very well (and I’m very impressed with Ansible) except for one part. A…

---

## [Bootstrapping versions with the pip module](https://forum.ansible.com/t/bootstrapping-versions-with-the-pip-module/14111)

<div class="topic-metadata">

**Author:** [@Gustav\_Andersson](https://forum.ansible.com/u/Gustav_Andersson)\
**Replies:** 2\
**Last updated:** [December 11, 2013, 3:33pm UTC](https://forum.ansible.com/t/bootstrapping-versions-with-the-pip-module/14111 "2013-12-11T15:33:44Z")

</div>

Is this currently possible with Ansibles pip module? I have been googling and trying different ways all morning but come up empty handed. Say I want to install the latest 1.2 version of a specific package with pip, but …

---

## [ssh\_alt - new version](https://forum.ansible.com/t/ssh-alt-new-version/14046)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 18\
**Last updated:** [December 11, 2013, 12:30am UTC](https://forum.ansible.com/t/ssh-alt-new-version/14046 "2013-12-11T00:30:40Z")

</div>

Hello, the new version of ssh\_alt branch can be found here : diff: https://github.com/jeromew/ansible/commit/23da88f45318fcdb8350bd7671c3d3f88bcab7c2 branch: https://github.com/jeromew/ansible/tree/ansible\_ssh\_alt te…

---

## [mysql\_user with privs always shows changed](https://forum.ansible.com/t/mysql-user-with-privs-always-shows-changed/14117)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 3\
**Last updated:** [December 10, 2013, 10:31pm UTC](https://forum.ansible.com/t/mysql-user-with-privs-always-shows-changed/14117 "2013-12-10T22:31:44Z")

</div>

Is this a bug (ansible 1.4): - name: add user toto mysql\_user: name=toto host='%' password='p455w0rd' priv="somedb:ALL" It works, it does the right thing, but when I run it with the "priv=" that status is …

---

## [with\_nested for across multiple modules](https://forum.ansible.com/t/with-nested-for-across-multiple-modules/14118)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 2\
**Last updated:** [December 10, 2013, 9:07pm UTC](https://forum.ansible.com/t/with-nested-for-across-multiple-modules/14118 "2013-12-10T21:07:12Z")

</div>

I’m doing something like this tasks: lineinfile: dest={{ item\[0\] }}/.gitignore create=yes regexp=‘{{ item\[1\] }}’ line=‘\*.{{ item\[1\] }}’ with\_nested: \[ ‘/tmp/foo’, ‘/tmp/bar’ \] \[ ‘lck’, ‘log’, ‘Log’ \] but the…

---

## [First ansible deployment very simple, handler doesnt run after playbook re-run](https://forum.ansible.com/t/first-ansible-deployment-very-simple-handler-doesnt-run-after-playbook-re-run/14113)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 2\
**Last updated:** [December 10, 2013, 7:09pm UTC](https://forum.ansible.com/t/first-ansible-deployment-very-simple-handler-doesnt-run-after-playbook-re-run/14113 "2013-12-10T19:09:03Z")

</div>

Hello community, I have made simple nginx, symfony, php ansible playbook. Playbook runs fine both with Vagrant and with “real server”. Problem is when I change some config values, eg. nginx http port, and re run playbo…

---

## [Undefined variables when using hostvars.iteritems()](https://forum.ansible.com/t/undefined-variables-when-using-hostvars-iteritems/14115)

<div class="topic-metadata">

**Author:** [@Vasiliy\_Boulytchev](https://forum.ansible.com/u/Vasiliy_Boulytchev)\
**Replies:** 1\
**Last updated:** [December 10, 2013, 5:39pm UTC](https://forum.ansible.com/t/undefined-variables-when-using-hostvars-iteritems/14115 "2013-12-10T17:39:20Z")

</div>

Folks, The following code is producing errors. code: {% for v in hostvars.iteritems() %} {{ v\['ansible\_all\_ipv4\_addresses'\]\[0\] }} {{ v\['ansible\_hostname'\] }} {% endfor %} error: {'msg': "One or more undefined v…

---

## [when does ansible-playbook write to stdout?](https://forum.ansible.com/t/when-does-ansible-playbook-write-to-stdout/13550)

<div class="topic-metadata">

**Author:** [@Jake\_Clarkson1](https://forum.ansible.com/u/Jake_Clarkson1)\
**Replies:** 11\
**Last updated:** [December 10, 2013, 5:35pm UTC](https://forum.ansible.com/t/when-does-ansible-playbook-write-to-stdout/13550 "2013-12-10T17:35:23Z")

</div>

Hey guys, Since using Ansible \>= 1.3.0 I’ve noticed that when provisioning a Vagrant VM the output of ansible-playbook is not shown until it has finished (whether it be an error or a successful provision). I’ve had a l…

---

## [Remount Partitions and making permanent](https://forum.ansible.com/t/remount-partitions-and-making-permanent/14101)

<div class="topic-metadata">

**Author:** [@TextEditor1](https://forum.ansible.com/u/TextEditor1)\
**Replies:** 4\
**Last updated:** [December 10, 2013, 4:51pm UTC](https://forum.ansible.com/t/remount-partitions-and-making-permanent/14101 "2013-12-10T16:51:47Z")

</div>

How would I remount the root partition with the “noatime” option and afterwards make it permanent, without knowing the layout of the filesystems on the machine (so no template for /etc/fstab)? If the “mounted” state is …

---

## [How to define with\_items by variables in ansible 1.4?](https://forum.ansible.com/t/how-to-define-with-items-by-variables-in-ansible-1-4/14070)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 7\
**Last updated:** [December 10, 2013, 4:30pm UTC](https://forum.ansible.com/t/how-to-define-with-items-by-variables-in-ansible-1-4/14070 "2013-12-10T16:30:37Z")

</div>

In ansible 1.0, I can use $foo in with\_items. For example, with\_items: $404\_error\_page $503\_error\_page $403\_error\_page Ansible 1.0 works well. It can find the variable and replace the value. In Ansible 1.4, I try to…

---

## [lib vs. library](https://forum.ansible.com/t/lib-vs-library/14104)

<div class="topic-metadata">

**Author:** [@Jens\_Rantil](https://forum.ansible.com/u/Jens_Rantil)\
**Replies:** 3\
**Last updated:** [December 10, 2013, 2:45pm UTC](https://forum.ansible.com/t/lib-vs-library/14104 "2013-12-10T14:45:48Z")

</div>

Hey Ansiblers, I’ve been using Ansible for the last couple of months. It’s great! I’m already up to speed with contributions/pull requests and I there has been times when I’ve had to read the source code to make sure I …

---

## [Test Jinja Template locally](https://forum.ansible.com/t/test-jinja-template-locally/14112)

<div class="topic-metadata">

**Author:** [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Replies:** 1\
**Last updated:** [December 10, 2013, 1:09pm UTC](https://forum.ansible.com/t/test-jinja-template-locally/14112 "2013-12-10T13:09:33Z")

</div>

Hi, I never did anything with Jinja before, now I want to create my first template. :slight\_smile: Is there an easy way to test my template locally? Like on the command line with the variable as options? i.e. # jinj…

---

## [Delegation to multiple machines](https://forum.ansible.com/t/delegation-to-multiple-machines/14103)

<div class="topic-metadata">

**Author:** [@Jens\_Rantil](https://forum.ansible.com/u/Jens_Rantil)\
**Replies:** 2\
**Last updated:** [December 10, 2013, 10:33am UTC](https://forum.ansible.com/t/delegation-to-multiple-machines/14103 "2013-12-10T10:33:35Z")

</div>

Good day, Is it possible to delegate to a group of hosts? My use case is to take a machine out of action from multiple load balancers. Thanks, Jens

---

## [sshkey module](https://forum.ansible.com/t/sshkey-module/14109)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 1\
**Last updated:** [December 10, 2013, 4:12am UTC](https://forum.ansible.com/t/sshkey-module/14109 "2013-12-10T04:12:42Z")

</div>

Hey all, Does anyone know what happened to the sshkey module discussed on the list in 2012? https://groups.google.com/forum/#!topic/ansible-project/ZOm30Vlzd\_M Looking for similar functionality to add/remove/update ke…

---

## [with\_first\_found using a fileglob?](https://forum.ansible.com/t/with-first-found-using-a-fileglob/14067)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 4\
**Last updated:** [December 9, 2013, 8:07pm UTC](https://forum.ansible.com/t/with-first-found-using-a-fileglob/14067 "2013-12-09T20:07:24Z")

</div>

Hi All, I’d like to search a bunch of paths for the first “glob” match. For example: debug: msg=“{{ item }}” with\_first\_found: files: “httpd-\*.rpm” paths: RPMs/{{ ansible\_distribution\_version }} RPMs/{{ ansi…

---

## [Centralized User List](https://forum.ansible.com/t/centralized-user-list/14029)

<div class="topic-metadata">

**Author:** [@BrianAI](https://forum.ansible.com/u/BrianAI)\
**Replies:** 10\
**Last updated:** [December 9, 2013, 5:09pm UTC](https://forum.ansible.com/t/centralized-user-list/14029 "2013-12-09T17:09:24Z")

</div>

Good evening all! I am new to Ansible (only 2 days in), but am quite excited by the prospects. I have a laundry list of questions but I figured it’d be best to separate them into multiple posts to help people searching…

---

## [Some recent blog posts about Ansible](https://forum.ansible.com/t/some-recent-blog-posts-about-ansible/14106)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [December 9, 2013, 2:44pm UTC](https://forum.ansible.com/t/some-recent-blog-posts-about-ansible/14106 "2013-12-09T14:44:11Z")

</div>

For those that may have not seen them, here are some recent blog posts that may be of interest. Describing Ansible’s Architecture http://blog.ansibleworks.com/2013/11/29/ansibles-architecture-beyond-configuration-manag…

---

## [one playbook, two OS versions, common tasks, how?](https://forum.ansible.com/t/one-playbook-two-os-versions-common-tasks-how/14105)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 2\
**Last updated:** [December 9, 2013, 2:06pm UTC](https://forum.ansible.com/t/one-playbook-two-os-versions-common-tasks-how/14105 "2013-12-09T14:06:53Z")

</div>

I have a multi host deployment playbook that needs to service Nnbuntu and Amazon linux (RPB based) servers. Some of the common tasks are very specific to debian like OS and some to RPB based OS. How do I get the common t…

---

## [template in parameter doesn't work for custom modules](https://forum.ansible.com/t/template-in-parameter-doesnt-work-for-custom-modules/14096)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 4\
**Last updated:** [December 9, 2013, 12:29am UTC](https://forum.ansible.com/t/template-in-parameter-doesnt-work-for-custom-modules/14096 "2013-12-09T00:29:08Z")

</div>

I am writing my own module, similar to keystone\_user to configure keystone services and endpoints. I made keystone\_endpoint file very similar to keystone\_user. And in the task file, have the following: name: configure …

---

## [Devops CI: Hadoop cluster deploy on @digitalocean via @TravisCI of my Ansible playbook](https://forum.ansible.com/t/devops-ci-hadoop-cluster-deploy-on-digitalocean-via-travisci-of-my-ansible-playbook/14100)

<div class="topic-metadata">

**Author:** [@Mathias\_Bogaert](https://forum.ansible.com/u/Mathias_Bogaert)\
**Replies:** 0\
**Last updated:** [December 8, 2013, 8:18pm UTC](https://forum.ansible.com/t/devops-ci-hadoop-cluster-deploy-on-digitalocean-via-travisci-of-my-ansible-playbook/14100 "2013-12-08T20:18:22Z")

</div>

Hi, I’ve just completed integrating Travis CI into my Hadoop Ansible Playbook. It tests the whole playbook by deploying on DigitalOcean, taking screenshots, and destroying the droplets. My .travis.yml: https://github.c…

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

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