# Latest

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

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

**Page:** 886

---

## [version\_compare not working](https://forum.ansible.com/t/version-compare-not-working/17745)

<div class="topic-metadata">

**Author:** [@Rick\_Kasten](https://forum.ansible.com/u/Rick_Kasten)\
**Replies:** 2\
**Last updated:** [March 19, 2015, 2:36pm UTC](https://forum.ansible.com/t/version-compare-not-working/17745 "2015-03-19T14:36:28Z")

</div>

This is doing the complete opposite of matching, right? TASK: \[play | debug var=installed\_app\_version\] \*\*\* \<10.101.1.105\> ok: \[twp01\] =\> { “installed\_app\_version”: “5.4.0” } TASK: \[play | debug var=package\_versions…

---

## [test\_jsonify is failing from an extra space?](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543)

<div class="topic-metadata">

**Author:** [@Jacob\_Case](https://forum.ansible.com/u/Jacob_Case)\
**Replies:** 4\
**Last updated:** [March 19, 2015, 1:54pm UTC](https://forum.ansible.com/t/test-jsonify-is-failing-from-an-extra-space/17543 "2015-03-19T13:54:20Z")

</div>

Hello, first post here! I’m trying to run the tests, but I’m getting the following error. \`

---

## [lineinfile task fails on missing file, doesn't add line when it should](https://forum.ansible.com/t/lineinfile-task-fails-on-missing-file-doesnt-add-line-when-it-should/17775)

<div class="topic-metadata">

**Author:** [@Bret\_Wortman](https://forum.ansible.com/u/Bret_Wortman)\
**Replies:** 8\
**Last updated:** [March 19, 2015, 11:55am UTC](https://forum.ansible.com/t/lineinfile-task-fails-on-missing-file-doesnt-add-line-when-it-should/17775 "2015-03-19T11:55:31Z")

</div>

I’m pretty sure I’m doing something wrong here and am hoping some of you with more seasoning can help me figure it out. I have a task: name: Ensure /etc/hosts.deny has default ALL entry lineinfile: \> dest=“/etc/host…

---

## [templating templates??](https://forum.ansible.com/t/templating-templates/17787)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 2\
**Last updated:** [March 19, 2015, 11:10am UTC](https://forum.ansible.com/t/templating-templates/17787 "2015-03-19T11:10:08Z")

</div>

Morning I need to push out a Go template file that needs some environment specific settings, so tried to template the template (yes, a bit 'yo dawg' i know). Of course this blows up as both jinja2 and go templating u…

---

## [Ansible version of Chef's "knife-openstack"](https://forum.ansible.com/t/ansible-version-of-chefs-knife-openstack/17785)

<div class="topic-metadata">

**Author:** [@Roger\_Rustad](https://forum.ansible.com/u/Roger_Rustad)\
**Replies:** 0\
**Last updated:** [March 19, 2015, 8:42am UTC](https://forum.ansible.com/t/ansible-version-of-chefs-knife-openstack/17785 "2015-03-19T08:42:10Z")

</div>

What is the Ansible version of Chef’s “knife-openstack”? Specifically, I’d like to create a Ansible server / workstation and (from there) push out commands that provision OpenStack server instances across different plat…

---

## [module docs on ansible 2?](https://forum.ansible.com/t/module-docs-on-ansible-2/17783)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [March 19, 2015, 6:44am UTC](https://forum.ansible.com/t/module-docs-on-ansible-2/17783 "2015-03-19T06:44:03Z")

</div>

are there docs up yet on making modules for ansible 2?

---

## [Thinking about how to merge more, quicker (Was Re: \[ansible-devel\] Further adventures in variable resolution.)](https://forum.ansible.com/t/thinking-about-how-to-merge-more-quicker-was-re-ansible-devel-further-adventures-in-variable-resolution/17438)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 23\
**Last updated:** [March 19, 2015, 2:26am UTC](https://forum.ansible.com/t/thinking-about-how-to-merge-more-quicker-was-re-ansible-devel-further-adventures-in-variable-resolution/17438 "2015-03-19T02:26:33Z")

</div>

I think this is an issue that we have to devote some time to addressing. We've taken some baby steps since the last release by adding a few people who are more knowledgable about specific areas as committers to the m…

---

## [change PROJECTS\_ROOT directory](https://forum.ansible.com/t/change-projects-root-directory/17781)

<div class="topic-metadata">

**Author:** [@vinay.bhasker](https://forum.ansible.com/u/vinay.bhasker)\
**Replies:** 1\
**Last updated:** [March 19, 2015, 12:32am UTC](https://forum.ansible.com/t/change-projects-root-directory/17781 "2015-03-19T00:32:04Z")

</div>

Hello Ansible Team, How to change Project Base Path in ansible tower?What are the steps associated to point to new Project base path & have playbooks available for tower to execute. -Vinay

---

## [Does ansible-pull also provide the level of orchestration like the "ansible" push model?](https://forum.ansible.com/t/does-ansible-pull-also-provide-the-level-of-orchestration-like-the-ansible-push-model/17777)

<div class="topic-metadata">

**Author:** [@Xicheng\_Chang](https://forum.ansible.com/u/Xicheng_Chang)\
**Replies:** 5\
**Last updated:** [March 19, 2015, 12:31am UTC](https://forum.ansible.com/t/does-ansible-pull-also-provide-the-level-of-orchestration-like-the-ansible-push-model/17777 "2015-03-19T00:31:34Z")

</div>

Hi, I am wondering if “ansible-pull” also provides the orchestration like what ansible does in push model. For example I have a site.yml that dictates all DB nodes have to be provisioned first, then web nodes can be pr…

---

## [Can you do something similar with\_items on a role?](https://forum.ansible.com/t/can-you-do-something-similar-with-items-on-a-role/17779)

<div class="topic-metadata">

**Author:** [@Paul\_Hardwick](https://forum.ansible.com/u/Paul_Hardwick)\
**Replies:** 0\
**Last updated:** [March 18, 2015, 10:44pm UTC](https://forum.ansible.com/t/can-you-do-something-similar-with-items-on-a-role/17779 "2015-03-18T22:44:15Z")

</div>

I am looking to update multiple similar config files and am looking for the best path. Updating individual files I have down pat with lineinfile and with\_items. The trick this time is that I have a directory that contai…

---

## [Ansible bug - IP of servers change to 127.0.0.1 mid way through playbook](https://forum.ansible.com/t/ansible-bug-ip-of-servers-change-to-127-0-0-1-mid-way-through-playbook/17778)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 9\
**Last updated:** [March 18, 2015, 9:58pm UTC](https://forum.ansible.com/t/ansible-bug-ip-of-servers-change-to-127-0-0-1-mid-way-through-playbook/17778 "2015-03-18T21:58:22Z")

</div>

⇒ uname -a Linux caine 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) x86\_64 GNU/Linux ⇒ ansible-playbook --version ansible-playbook 1.7.2 From playbook: 149 - name: PHP | Copy over php-fpm.conf 150 copy: …

---

## [How can I run a role with different variables in a loop? Or am I looking at things the wrong way](https://forum.ansible.com/t/how-can-i-run-a-role-with-different-variables-in-a-loop-or-am-i-looking-at-things-the-wrong-way/17740)

<div class="topic-metadata">

**Author:** [@gitted](https://forum.ansible.com/u/gitted)\
**Replies:** 2\
**Last updated:** [March 18, 2015, 8:17pm UTC](https://forum.ansible.com/t/how-can-i-run-a-role-with-different-variables-in-a-loop-or-am-i-looking-at-things-the-wrong-way/17740 "2015-03-18T20:17:38Z")

</div>

Hi, I noticed I am repeating myself in my role’s tasks, and I am probably doing this wrong :slight\_smile: I have a role that deploys my application to server(s). The server will have 2 applications installed on it, ap…

---

## [Variable substitution problem in task name](https://forum.ansible.com/t/variable-substitution-problem-in-task-name/17737)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 3\
**Last updated:** [March 18, 2015, 7:02pm UTC](https://forum.ansible.com/t/variable-substitution-problem-in-task-name/17737 "2015-03-18T19:02:30Z")

</div>

Hi, I have a problem with the Variable substitution in task name, like: name: VPC | Write public subnets id to ‘{{ vpc\_name }}’\_vpc\_info.yml file local\_action: shell echo “{{ item.id }}” \> ./vars/{{ item.resource\_tag…

---

## [Does apt\_key use proxy environment vars?](https://forum.ansible.com/t/does-apt-key-use-proxy-environment-vars/17774)

<div class="topic-metadata">

**Author:** [@Jon\_Soul](https://forum.ansible.com/u/Jon_Soul)\
**Replies:** 5\
**Last updated:** [March 18, 2015, 4:58pm UTC](https://forum.ansible.com/t/does-apt-key-use-proxy-environment-vars/17774 "2015-03-18T16:58:44Z")

</div>

I’m using a role in my playbook that uses the apt\_key module: \` name: import repository key \` apt\_key: url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc state=present The target host sits behind a proxy, …

---

## [memory\_limit in docker module](https://forum.ansible.com/t/memory-limit-in-docker-module/17773)

<div class="topic-metadata">

**Author:** [@Anand\_Nalya](https://forum.ansible.com/u/Anand_Nalya)\
**Replies:** 2\
**Last updated:** [March 18, 2015, 3:44pm UTC](https://forum.ansible.com/t/memory-limit-in-docker-module/17773 "2015-03-18T15:44:23Z")

</div>

Hi, I’m trying to set the memory\_limit for my docker container with the following syntax: name: start docker image docker: image=“{{dockerImageName}}” command=“{{command}} {{ENVIRONMENT}}” memory\_limit=“{{memory}}…

---

## [subnet address facts module](https://forum.ansible.com/t/subnet-address-facts-module/17759)

<div class="topic-metadata">

**Author:** [@Paul\_Siegmann](https://forum.ansible.com/u/Paul_Siegmann)\
**Replies:** 3\
**Last updated:** [March 18, 2015, 10:02am UTC](https://forum.ansible.com/t/subnet-address-facts-module/17759 "2015-03-18T10:02:17Z")

</div>

Hi All, I’ve created a facts module to calculate subnet block addresses. This is helpful when creating new subnets on for instance Amazon EC2. Example usage: name: get subnet blocks local\_action: module: subnet\_bl…

---

## [Best practice to test custom ansible modules](https://forum.ansible.com/t/best-practice-to-test-custom-ansible-modules/17770)

<div class="topic-metadata">

**Author:** [@Michael\_Mulder](https://forum.ansible.com/u/Michael_Mulder)\
**Replies:** 0\
**Last updated:** [March 18, 2015, 1:59am UTC](https://forum.ansible.com/t/best-practice-to-test-custom-ansible-modules/17770 "2015-03-18T01:59:17Z")

</div>

Hi, I just looking for a good way to test my custom ansible modules. I know I can create a test-role which is doing it, but maybe there is already a solution out of the box or a best-practise (didnt find smth like that…

---

## [ssh bastion](https://forum.ansible.com/t/ssh-bastion/17769)

<div class="topic-metadata">

**Author:** [@michael.ibarra](https://forum.ansible.com/u/michael.ibarra)\
**Replies:** 0\
**Last updated:** [March 17, 2015, 11:51pm UTC](https://forum.ansible.com/t/ssh-bastion/17769 "2015-03-17T23:51:48Z")

</div>

Hi all, I’m trying to use ansible with hosts located inside a DMZ. All the remote hosts have PasswordAuthentication no, RSAAuthentication ye,s and PubkeyAuthentication yes. So, when I try to connect using my playbook I …

---

## [Paramaterized handlers](https://forum.ansible.com/t/paramaterized-handlers/17768)

<div class="topic-metadata">

**Author:** [@nebular.wolf](https://forum.ansible.com/u/nebular.wolf)\
**Replies:** 0\
**Last updated:** [March 17, 2015, 9:07pm UTC](https://forum.ansible.com/t/paramaterized-handlers/17768 "2015-03-17T21:07:46Z")

</div>

I have a playbook I created to deploy graphite. It has a role dependency on runit (service is responsible to keep the carbon-relays and the carbon-caches up and running) how do I set up the project so I can reuse the i…

---

## [Vagrant + Multiple Machines + Ansible](https://forum.ansible.com/t/vagrant-multiple-machines-ansible/17728)

<div class="topic-metadata">

**Author:** [@Ruben\_Ortiz](https://forum.ansible.com/u/Ruben_Ortiz)\
**Replies:** 4\
**Last updated:** [March 17, 2015, 3:22pm UTC](https://forum.ansible.com/t/vagrant-multiple-machines-ansible/17728 "2015-03-17T15:22:46Z")

</div>

Hi I’m trying to write playbook to deploy automatically a Galera Cluster. I’ve been googling before ask help and I found some interesting info about Vagrantfile and multi machine scenario. My main problem is until now …

---

## [unarchive multiple zip files](https://forum.ansible.com/t/unarchive-multiple-zip-files/17753)

<div class="topic-metadata">

**Author:** [@Craig\_Simmons](https://forum.ansible.com/u/Craig_Simmons)\
**Replies:** 4\
**Last updated:** [March 17, 2015, 2:54pm UTC](https://forum.ansible.com/t/unarchive-multiple-zip-files/17753 "2015-03-17T14:54:30Z")

</div>

Hi, very new to Ansible and currently translating a simple shell script to a PlayBook. One thing I can’t accomplish is to unarchive multiple ZIP files within the same directory using a wildcard in Ansible. So this works …

---

## [merging (environment) dicts?](https://forum.ansible.com/t/merging-environment-dicts/15187)

<div class="topic-metadata">

**Author:** [@Dick\_Davies1](https://forum.ansible.com/u/Dick_Davies1)\
**Replies:** 8\
**Last updated:** [March 17, 2015, 2:28pm UTC](https://forum.ansible.com/t/merging-environment-dicts/15187 "2015-03-17T14:28:42Z")

</div>

I've got a task that needs a proxy environment car along with some app-specific env vars to be set. seems like I can only apply one dict to the environment: field for the task. does anyone know if I can merge these dic…

---

## [How to cancel planned handler execution if another handler was notified?](https://forum.ansible.com/t/how-to-cancel-planned-handler-execution-if-another-handler-was-notified/17766)

<div class="topic-metadata">

**Author:** [@Nikolay\_Artamonov](https://forum.ansible.com/u/Nikolay_Artamonov)\
**Replies:** 0\
**Last updated:** [March 17, 2015, 2:07pm UTC](https://forum.ansible.com/t/how-to-cancel-planned-handler-execution-if-another-handler-was-notified/17766 "2015-03-17T14:07:10Z")

</div>

Hi guys! Let’s assume we have simple playbook: \`

---

## [authorized\_key + lookup + with\_items](https://forum.ansible.com/t/authorized-key-lookup-with-items/17764)

<div class="topic-metadata">

**Author:** [@Maciej\_Wawrzynczuk](https://forum.ansible.com/u/Maciej_Wawrzynczuk)\
**Replies:** 2\
**Last updated:** [March 17, 2015, 1:06pm UTC](https://forum.ansible.com/t/authorized-key-lookup-with-items/17764 "2015-03-17T13:06:52Z")

</div>

Hi, I have problem I cannot manage. When I try to use authorized\_key module in loop with lookup i have error: ERROR: cannot find lookup plugin named item for usage in with\_item this is my code: name: User key auth…

---

## [timing tasks and plays.](https://forum.ansible.com/t/timing-tasks-and-plays/17761)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 3\
**Last updated:** [March 17, 2015, 12:47pm UTC](https://forum.ansible.com/t/timing-tasks-and-plays/17761 "2015-03-17T12:47:00Z")

</div>

There’s been a bit of a metrics jihad going on at the day job that got me thinking about how I’d implement something in Ansible to time a playbook or each task. In fact we just had an incident where recording some playbo…

---

## [Could not find default inventory in Mac](https://forum.ansible.com/t/could-not-find-default-inventory-in-mac/17751)

<div class="topic-metadata">

**Author:** [@Jialiang\_Liang](https://forum.ansible.com/u/Jialiang_Liang)\
**Replies:** 4\
**Last updated:** [March 17, 2015, 12:35pm UTC](https://forum.ansible.com/t/could-not-find-default-inventory-in-mac/17751 "2015-03-17T12:35:48Z")

</div>

I installed ansible(1.8.4) with homebrew in Mac OSX Yosemite. I followed ansible doc and create ‘hosts’ file under /etc/ansible, and try with the most simple ansible command: ansible my\_inventory -m ping and I got an …

---

## [How to get ec2 instance id tag when it's in an autoscaling group - a Jinja2 escaping problem?](https://forum.ansible.com/t/how-to-get-ec2-instance-id-tag-when-its-in-an-autoscaling-group-a-jinja2-escaping-problem/17762)

<div class="topic-metadata">

**Author:** [@Stephen\_Tan](https://forum.ansible.com/u/Stephen_Tan)\
**Replies:** 1\
**Last updated:** [March 17, 2015, 11:56am UTC](https://forum.ansible.com/t/how-to-get-ec2-instance-id-tag-when-its-in-an-autoscaling-group-a-jinja2-escaping-problem/17762 "2015-03-17T11:56:30Z")

</div>

Sounds simple, but it isn’t. I want to create a variable called “instance\_role” which is set to the aws:autoscaling:groupName on the instance. However, there is a formatting problem as the colons are used by Jinja and …

---

## [Execute handler only if another was not notified](https://forum.ansible.com/t/execute-handler-only-if-another-was-not-notified/17765)

<div class="topic-metadata">

**Author:** [@Nikolay\_Artamonov](https://forum.ansible.com/u/Nikolay_Artamonov)\
**Replies:** 0\
**Last updated:** [March 17, 2015, 11:28am UTC](https://forum.ansible.com/t/execute-handler-only-if-another-was-not-notified/17765 "2015-03-17T11:28:43Z")

</div>

Hi guys! Let’s assume that we have simple playbook: \`

---

## [integrate Maven repository API (Aether) into Ansible?](https://forum.ansible.com/t/integrate-maven-repository-api-aether-into-ansible/17763)

<div class="topic-metadata">

**Author:** [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Replies:** 0\
**Last updated:** [March 17, 2015, 10:34am UTC](https://forum.ansible.com/t/integrate-maven-repository-api-aether-into-ansible/17763 "2015-03-17T10:34:05Z")

</div>

Hi, our developers use Maven for their (local) builds which stores artifacts in the local filesystem (~/.m2/repository) The build server uses the same build - and uploads artifact to a repository server (Nexus), which …

---

## [Auto-map a windows drive](https://forum.ansible.com/t/auto-map-a-windows-drive/16870)

<div class="topic-metadata">

**Author:** [@Joey](https://forum.ansible.com/u/Joey)\
**Replies:** 5\
**Last updated:** [March 17, 2015, 9:49am UTC](https://forum.ansible.com/t/auto-map-a-windows-drive/16870 "2015-03-17T09:49:09Z")

</div>

I’m trying to figure out how to use Ansible to have windows clients automatically map a network drive. If I use the script module and either powershell or “net use”, I get an “Access Denied” error. Apparently, trying to …

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

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