# Latest

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

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

**Page:** 911

---

## [Accessing hostvars from within module](https://forum.ansible.com/t/accessing-hostvars-from-within-module/16560)

<div class="topic-metadata">

**Author:** [@Patrick\_Ogenstad](https://forum.ansible.com/u/Patrick_Ogenstad)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 4:09pm UTC](https://forum.ansible.com/t/accessing-hostvars-from-within-module/16560 "2014-12-15T16:09:55Z")

</div>

I’ve read that it’s possible to access hostvars directly in a module if the connection is set to local. However I’m unable to find any clues as to how this is done. Could someone let me know if it’s in fact possible to …

---

## [Random parameters but keeping idempotent](https://forum.ansible.com/t/random-parameters-but-keeping-idempotent/17049)

<div class="topic-metadata">

**Author:** [@iprok](https://forum.ansible.com/u/iprok)\
**Replies:** 4\
**Last updated:** [December 15, 2014, 3:35pm UTC](https://forum.ansible.com/t/random-parameters-but-keeping-idempotent/17049 "2014-12-15T15:35:20Z")

</div>

Hello! I want to add back up task of my databases to cron. I don’t want them to start at the same time. And I have too much hosts to initialize each of them using variables. But if I use random filter it becomes unidemp…

---

## [Concatenate text and variable resulting in new variable](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 2:43pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-resulting-in-new-variable/17008 "2014-12-15T14:43:59Z")

</div>

some\_var: "text\_{{ some\_other\_var }}" This should work in either a group\_var/ or host\_var/ file

---

## [playbook includes and tags](https://forum.ansible.com/t/playbook-includes-and-tags/17060)

<div class="topic-metadata">

**Author:** [@Adam\_Guthrie](https://forum.ansible.com/u/Adam_Guthrie)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 2:42pm UTC](https://forum.ansible.com/t/playbook-includes-and-tags/17060 "2014-12-15T14:42:37Z")

</div>

I’m trying to add tags to tasks via includes but it doesn’t work as I expect. I have $ cat site.yml #- { include: foo.yml, tags: \[ foo \] } include: foo.yml tags=foo $ cat foo.yml hosts: all tasks: name: foo debu…

---

## [Register data from script Ansible.](https://forum.ansible.com/t/register-data-from-script-ansible/17054)

<div class="topic-metadata">

**Author:** [@jimmy](https://forum.ansible.com/u/jimmy)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 2:25pm UTC](https://forum.ansible.com/t/register-data-from-script-ansible/17054 "2014-12-15T14:25:12Z")

</div>

I am going to keep this post short and sweet and hope someone can help me wrap my head around how to grab values from key,value pairs returned by a script I an running. I use the ansible “shell:” module to run a script …

---

## [htpasswd module for nginx question](https://forum.ansible.com/t/htpasswd-module-for-nginx-question/17044)

<div class="topic-metadata">

**Author:** [@John\_Goodall](https://forum.ansible.com/u/John_Goodall)\
**Replies:** 4\
**Last updated:** [December 15, 2014, 2:09pm UTC](https://forum.ansible.com/t/htpasswd-module-for-nginx-question/17044 "2014-12-15T14:09:06Z")

</div>

I run the following on the command line: $ htpasswd -nb demo demo demo:$apr1$nB6zClk/$SXB.D6Tr81L2Q6zxLulEg. Then in my playbook I have the following: htpasswd: path=/tmp/.htpasswd name=demo password=$apr1$nB6zClk/$S…

---

## [sudo not working](https://forum.ansible.com/t/sudo-not-working/17053)

<div class="topic-metadata">

**Author:** [@Roy\_Smith](https://forum.ansible.com/u/Roy_Smith)\
**Replies:** 2\
**Last updated:** [December 15, 2014, 1:36pm UTC](https://forum.ansible.com/t/sudo-not-working/17053 "2014-12-15T13:36:44Z")

</div>

I’m running ansible 1.8.2. My local machine is running OSX 10.7.5. The remote machine I’m trying to manage is running Ubuntu 14.04. I have one host in my inventory file. My playbook is: \`

---

## [Integrating application level smoke tests with ansible runs](https://forum.ansible.com/t/integrating-application-level-smoke-tests-with-ansible-runs/17056)

<div class="topic-metadata">

**Author:** [@Bryan\_Berry](https://forum.ansible.com/u/Bryan_Berry)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 1:15pm UTC](https://forum.ansible.com/t/integrating-application-level-smoke-tests-with-ansible-runs/17056 "2014-12-15T13:15:37Z")

</div>

Dear Ansiblists, I need to integrate application-level tests with ansible runs. These test are quite specific to that applications we are deploying and go quite beyond the existing test support in ansible. The purpose o…

---

## [How to have different settings "gather fact" in two roles of playbook](https://forum.ansible.com/t/how-to-have-different-settings-gather-fact-in-two-roles-of-playbook/17051)

<div class="topic-metadata">

**Author:** [@Ivan\_Korjavin](https://forum.ansible.com/u/Ivan_Korjavin)\
**Replies:** 1\
**Last updated:** [December 15, 2014, 11:58am UTC](https://forum.ansible.com/t/how-to-have-different-settings-gather-fact-in-two-roles-of-playbook/17051 "2014-12-15T11:58:43Z")

</div>

I have playbook with a lot of roles, A few of them, can’t use “gather facts” cos, no python is avalible at that time, this roles use “raw” and install python. But after that another rules must have gather facrs due to …

---

## [Best way to manage DNS via ansible.](https://forum.ansible.com/t/best-way-to-manage-dns-via-ansible/17047)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 2\
**Last updated:** [December 15, 2014, 11:57am UTC](https://forum.ansible.com/t/best-way-to-manage-dns-via-ansible/17047 "2014-12-15T11:57:25Z")

</div>

Since we have all of our cluster in Ansible I want to also manage our DNS this way too. What I was thinking of is having a playbook that runs before all of our other playbooks. One issue though is that I’d like a modul…

---

## [using anyconfig-0.0.5 as a module in ansible](https://forum.ansible.com/t/using-anyconfig-0-0-5-as-a-module-in-ansible/17036)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 11:56am UTC](https://forum.ansible.com/t/using-anyconfig-0-0-5-as-a-module-in-ansible/17036 "2014-12-15T11:56:16Z")

</div>

" Are there any other requirements or protocols unique to windows modules? " Generally if submitting them to core (I don’t understand anyconfig yet so not sure we’d take it), docs go in a corresponding “.py” file (see o…

---

## [Search on AWS inventory and add to hosts](https://forum.ansible.com/t/search-on-aws-inventory-and-add-to-hosts/17045)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 1\
**Last updated:** [December 15, 2014, 11:52am UTC](https://forum.ansible.com/t/search-on-aws-inventory-and-add-to-hosts/17045 "2014-12-15T11:52:52Z")

</div>

Hi all I have come up with a search on AWS inventory. What I want to do is add the resulted instances to using add\_host. This is how use ec2.py to find the instances: ec2.py ‘tag\_Name\_basebox\_myteksi\_net:&tag\_Provision…

---

## [git diff vault files](https://forum.ansible.com/t/git-diff-vault-files/16999)

<div class="topic-metadata">

**Author:** [@Damjan\_Georgievski](https://forum.ansible.com/u/Damjan_Georgievski)\
**Replies:** 4\
**Last updated:** [December 15, 2014, 11:50am UTC](https://forum.ansible.com/t/git-diff-vault-files/16999 "2014-12-15T11:50:35Z")

</div>

Now that we started using vault files for secret data, one of the problems is that git diff on the vault files gives the whole file as changed (understandably). The trouble I have now is that I use git diff before I com…

---

## [PostgreSQL Backup and Restore module](https://forum.ansible.com/t/postgresql-backup-and-restore-module/17038)

<div class="topic-metadata">

**Author:** [@Bibhas\_Debnath](https://forum.ansible.com/u/Bibhas_Debnath)\
**Replies:** 3\
**Last updated:** [December 15, 2014, 11:42am UTC](https://forum.ansible.com/t/postgresql-backup-and-restore-module/17038 "2014-12-15T11:42:42Z")

</div>

While working on setting up our database with Ansible I felt the need of these 2 modules. As suggested by @abadger1 I want to discuss if anybody thinks it’s worth it. For now I’m just using command module to run pg\_dump …

---

## [Added support for Docker's 'restart\_policy' (PR 504)](https://forum.ansible.com/t/added-support-for-dockers-restart-policy-pr-504/17046)

<div class="topic-metadata">

**Author:** [@Viktor\_Petersson](https://forum.ansible.com/u/Viktor_Petersson)\
**Replies:** 1\
**Last updated:** [December 15, 2014, 11:41am UTC](https://forum.ansible.com/t/added-support-for-dockers-restart-policy-pr-504/17046 "2014-12-15T11:41:33Z")

</div>

Hey guys, I really like ‘restart\_policy’ in Docker (introduced in 1.2). Unfortunately, this feature is not supported in Ansible at this point. To solve this, I decided to block some time today to hack together this supp…

---

## [RFC: handling errors easier](https://forum.ansible.com/t/rfc-handling-errors-easier/17057)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 1\
**Last updated:** [December 15, 2014, 11:39am UTC](https://forum.ansible.com/t/rfc-handling-errors-easier/17057 "2014-12-15T11:39:19Z")

</div>

Hi I am missing a way to handling errors easily in Ansible. What do you think about implementing an error handling mechanism for failed task. One solution which would fit my needs: tasks: command: /bin/false notify…

---

## [Ansible variables acess in host\_vars/file](https://forum.ansible.com/t/ansible-variables-acess-in-host-vars-file/16946)

<div class="topic-metadata">

**Author:** [@Amanda\_Galligan](https://forum.ansible.com/u/Amanda_Galligan)\
**Replies:** 6\
**Last updated:** [December 15, 2014, 11:18am UTC](https://forum.ansible.com/t/ansible-variables-acess-in-host-vars-file/16946 "2014-12-15T11:18:39Z")

</div>

Currently have a playbook that is creating template configs for our cisco switches. Most generic variables are kept in group\_vars and we're currently using individual host\_var file per switch to store variables unique to…

---

## [Vagrant Ansible Provisioner failing to ssh to guest machine](https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007)

<div class="topic-metadata">

**Author:** [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Replies:** 2\
**Last updated:** [December 15, 2014, 8:06am UTC](https://forum.ansible.com/t/vagrant-ansible-provisioner-failing-to-ssh-to-guest-machine/17007 "2014-12-15T08:06:23Z")

</div>

I am working on setting up Ansible provisioning with Vagrant. Here’s what the relevant configuration looks like http://pastebin.com/Tr6DPsY2 And here’s the output http://pastebin.com/bDgWPHmY I am not sure why is it f…

---

## [best practice for testing app with many versions](https://forum.ansible.com/t/best-practice-for-testing-app-with-many-versions/16943)

<div class="topic-metadata">

**Author:** [@Netanel\_Maman](https://forum.ansible.com/u/Netanel_Maman)\
**Replies:** 2\
**Last updated:** [December 15, 2014, 8:04am UTC](https://forum.ansible.com/t/best-practice-for-testing-app-with-many-versions/16943 "2014-12-15T08:04:57Z")

</div>

Hello, maybe you can help me with little query. I have virtual lab based on vagrant and ansible. All vms should be with same app installed but with different version number. What’s the correct way to configure ansible…

---

## [Ansible + vpshere\_guest](https://forum.ansible.com/t/ansible-vpshere-guest/17048)

<div class="topic-metadata">

**Author:** [@fmorcamp](https://forum.ansible.com/u/fmorcamp)\
**Replies:** 1\
**Last updated:** [December 15, 2014, 4:31am UTC](https://forum.ansible.com/t/ansible-vpshere-guest/17048 "2014-12-15T04:31:27Z")

</div>

Hello all, I’m starting with Ansible, and I would like to provsion a VMWare Cluster with it. To do that, I use the vsphere-guest module. However, I try to use it! So I create a role /etc/ansible/role/esx/task/main.yml…

---

## [New Module Proposal: AWS Elastic Beanstalk](https://forum.ansible.com/t/new-module-proposal-aws-elastic-beanstalk/17050)

<div class="topic-metadata">

**Author:** [@Jonathan\_Davila](https://forum.ansible.com/u/Jonathan_Davila)\
**Replies:** 0\
**Last updated:** [December 14, 2014, 7:36pm UTC](https://forum.ansible.com/t/new-module-proposal-aws-elastic-beanstalk/17050 "2014-12-14T19:36:35Z")

</div>

Would there be anything against creating an Elastic Beanstalk Module? In short the module would be developed to create, update, delete, restart, and or rebuild EBS setups.

---

## [Digital Ocean v2 module](https://forum.ansible.com/t/digital-ocean-v2-module/16167)

<div class="topic-metadata">

**Author:** [@Ryan\_VanGundy](https://forum.ansible.com/u/Ryan_VanGundy)\
**Replies:** 10\
**Last updated:** [December 14, 2014, 12:30am UTC](https://forum.ansible.com/t/digital-ocean-v2-module/16167 "2014-12-14T00:30:48Z")

</div>

I’ve finally gotten around to implementing a working version of the digital ocean v2 module. Currently, only the droplet API works–I’m now moving on to SSH keys and domains. Since this is my first module and I’m new to P…

---

## [Is Ansible really parallel?](https://forum.ansible.com/t/is-ansible-really-parallel/17042)

<div class="topic-metadata">

**Author:** [@Jonathan\_Mainguy](https://forum.ansible.com/u/Jonathan_Mainguy)\
**Replies:** 4\
**Last updated:** [December 13, 2014, 11:14pm UTC](https://forum.ansible.com/t/is-ansible-really-parallel/17042 "2014-12-13T23:14:58Z")

</div>

Disable cowsay. Or install cowsay to fix this.

---

## [What is the best way to manage firewalls with Ansible?](https://forum.ansible.com/t/what-is-the-best-way-to-manage-firewalls-with-ansible/13624)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 10\
**Last updated:** [December 12, 2014, 10:04pm UTC](https://forum.ansible.com/t/what-is-the-best-way-to-manage-firewalls-with-ansible/13624 "2014-12-12T22:04:26Z")

</div>

So far I’ve found a few tools that let me manage linux firewalls. iptables ufw shorewall ferm I’m not skilled with any of them, and ufw is the only one I’ve really used. I know enough to block everything b…

---

## [Adding cloud server to rackconnect f5 LB pool](https://forum.ansible.com/t/adding-cloud-server-to-rackconnect-f5-lb-pool/17039)

<div class="topic-metadata">

**Author:** [@Aru\_s](https://forum.ansible.com/u/Aru_s)\
**Replies:** 0\
**Last updated:** [December 12, 2014, 9:43am UTC](https://forum.ansible.com/t/adding-cloud-server-to-rackconnect-f5-lb-pool/17039 "2014-12-12T09:43:34Z")

</div>

Hi, I am trying the ansible rax module (as ad-hoc command) to create the server on rackspace along with adding it into the rackconnect LBpool. I think the LB pool detail has to show as metadata. I am trying the key “met…

---

## [Handling Failure during AMI creation](https://forum.ansible.com/t/handling-failure-during-ami-creation/17037)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 0\
**Last updated:** [December 12, 2014, 4:00am UTC](https://forum.ansible.com/t/handling-failure-during-ami-creation/17037 "2014-12-12T04:00:24Z")

</div>

Hi guys I have a playbook that: Creates an EC2 instance Provisions the instance using a few roles Creates an AMI out of that instance Destroys the instance after the AMI is created successfully Now the problem is if …

---

## [how to build docker image?](https://forum.ansible.com/t/how-to-build-docker-image/17035)

<div class="topic-metadata">

**Author:** [@Shunsuke\_Mie](https://forum.ansible.com/u/Shunsuke_Mie)\
**Replies:** 1\
**Last updated:** [December 12, 2014, 1:00am UTC](https://forum.ansible.com/t/how-to-build-docker-image/17035 "2014-12-12T01:00:16Z")

</div>

I find docker\_image module, but this module is deprecated. So now, I using commands module. Can i build docker image any way?

---

## [mysql\_db state=import only once](https://forum.ansible.com/t/mysql-db-state-import-only-once/14005)

<div class="topic-metadata">

**Author:** [@Fred\_Badel](https://forum.ansible.com/u/Fred_Badel)\
**Replies:** 12\
**Last updated:** [December 12, 2014, 12:22am UTC](https://forum.ansible.com/t/mysql-db-state-import-only-once/14005 "2014-12-12T00:22:47Z")

</div>

Hello, I have a playbook that create a mysql DB and import an empty schema: name: create DB mysql\_db: name={{ db\_name }} state=present login\_host=127.0.0.1 name: create schema mysql\_db: name={{ db\_name }} state=…

---

## [Present VS Absent. Order of tasks is different when creating or deleting. Conditionals workaround?](https://forum.ansible.com/t/present-vs-absent-order-of-tasks-is-different-when-creating-or-deleting-conditionals-workaround/17024)

<div class="topic-metadata">

**Author:** [@polfilm](https://forum.ansible.com/u/polfilm)\
**Replies:** 1\
**Last updated:** [December 12, 2014, 12:10am UTC](https://forum.ansible.com/t/present-vs-absent-order-of-tasks-is-different-when-creating-or-deleting-conditionals-workaround/17024 "2014-12-12T00:10:17Z")

</div>

Hi, I hope someone here could shed some light on this. Below is a super simplified example using EC2 elements but this could happen with other elements obviously. \` master\_state: present Create Subnet state: {{ mast…

---

## [s3 module timeout](https://forum.ansible.com/t/s3-module-timeout/17034)

<div class="topic-metadata">

**Author:** [@rads](https://forum.ansible.com/u/rads)\
**Replies:** 1\
**Last updated:** [December 11, 2014, 11:58pm UTC](https://forum.ansible.com/t/s3-module-timeout/17034 "2014-12-11T23:58:52Z")

</div>

Anyone else getting timeouts with the s3 module during GETs? I’d say it times out for me 10% of the time while running on aws instances. failed: \[10.3.4.135\] =\> {"failed": true, "parsed": false} SUDO-SUCCESS-smbvbxjgzdn…

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

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