# Latest

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

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

**Page:** 821

---

## [regexp bug](https://forum.ansible.com/t/regexp-bug/19706)

<div class="topic-metadata">

**Author:** [@Edward\_Ned\_Harvey](https://forum.ansible.com/u/Edward_Ned_Harvey)\
**Replies:** 0\
**Last updated:** [November 7, 2015, 2:34am UTC](https://forum.ansible.com/t/regexp-bug/19706 "2015-11-07T02:34:24Z")

</div>

I am not sure if this is an ansible core bug, or a module bug, or even a python bug, so I’m not sure exactly how to report the bug. But I’m quite certain it’s a bug. I want to comment out all lines in a file, that aren’…

---

## [data inserts into mongodb](https://forum.ansible.com/t/data-inserts-into-mongodb/19700)

<div class="topic-metadata">

**Author:** [@sandy](https://forum.ansible.com/u/sandy)\
**Replies:** 1\
**Last updated:** [November 6, 2015, 7:04am UTC](https://forum.ansible.com/t/data-inserts-into-mongodb/19700 "2015-11-06T07:04:33Z")

</div>

Hi, Is there a way to implement the interface methods with database inserts to mongodb instead of outputs to files/stdout. Can someone provide the steps to the implement this functionality through ansible.

---

## [execute shell script that starts background process](https://forum.ansible.com/t/execute-shell-script-that-starts-background-process/17041)

<div class="topic-metadata">

**Author:** [@Torsten\_Reinhard](https://forum.ansible.com/u/Torsten_Reinhard)\
**Replies:** 3\
**Last updated:** [November 5, 2015, 11:26pm UTC](https://forum.ansible.com/t/execute-shell-script-that-starts-background-process/17041 "2015-11-05T23:26:20Z")

</div>

Hi, our development team delivers a start script for a “Listener process”. It looks like: #!/bin/sh BASEDIR=$(dirname $0) echo “============================================\> Starting Global Listener.” ${BASEDIR}/cm…

---

## [best location for async\_status tasks in a playbook with multiple roles](https://forum.ansible.com/t/best-location-for-async-status-tasks-in-a-playbook-with-multiple-roles/19701)

<div class="topic-metadata">

**Author:** [@CyberCyber](https://forum.ansible.com/u/CyberCyber)\
**Replies:** 0\
**Last updated:** [November 5, 2015, 11:03pm UTC](https://forum.ansible.com/t/best-location-for-async-status-tasks-in-a-playbook-with-multiple-roles/19701 "2015-11-05T23:03:49Z")

</div>

Say you have a playbook with multiple roles, for example: roles: A B C in role A’s or B’s tasks/main.yml, there are a few tasks which are asynchronous fire and forget, do not poll tasks, for example: \` name: do th…

---

## [looping display in local facts](https://forum.ansible.com/t/looping-display-in-local-facts/19698)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [November 5, 2015, 9:54pm UTC](https://forum.ansible.com/t/looping-display-in-local-facts/19698 "2015-11-05T21:54:01Z")

</div>

Hi, I have the bellow local fact working : \` /etc/ansible/facts.d/monitoring.fact \[tags\] web= db= app= \` In my template I have the bellow jinja code : \` {% for facts in ansible\_local.monitoring.tags %} {{ fact…

---

## [Ansible 2.0: Synchronize module is hanging](https://forum.ansible.com/t/ansible-2-0-synchronize-module-is-hanging/19532)

<div class="topic-metadata">

**Author:** [@Corwin\_Brown](https://forum.ansible.com/u/Corwin_Brown)\
**Replies:** 1\
**Last updated:** [November 5, 2015, 9:25pm UTC](https://forum.ansible.com/t/ansible-2-0-synchronize-module-is-hanging/19532 "2015-11-05T21:25:24Z")

</div>

Hey gang, I’ve been having some issues with the synchronize module in v2. Here’s the code that calls it: \` name: Install to Publish Directory synchronize: src: “{{ tmp\_dir }}/” dest: “{{ publish\_directory }}/{{ in…

---

## [Templates don't get --check'ed right in v2](https://forum.ansible.com/t/templates-dont-get-checked-right-in-v2/19697)

<div class="topic-metadata">

**Author:** [@Logan\_McNaughton](https://forum.ansible.com/u/Logan_McNaughton)\
**Replies:** 9\
**Last updated:** [November 5, 2015, 8:43pm UTC](https://forum.ansible.com/t/templates-dont-get-checked-right-in-v2/19697 "2015-11-05T20:43:51Z")

</div>

I am testing out Ansible 2 (checkout from Git). And it doesn’t seem to be comparing templates properly. When I run a playbook with a template in 1.9.4, using --check --diff, it’ll show me the differences. When I run the …

---

## [ec2 spot instance fails with ResutSet object has no attribute instances](https://forum.ansible.com/t/ec2-spot-instance-fails-with-resutset-object-has-no-attribute-instances/19696)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 0\
**Last updated:** [November 5, 2015, 4:44pm UTC](https://forum.ansible.com/t/ec2-spot-instance-fails-with-resutset-object-has-no-attribute-instances/19696 "2015-11-05T16:44:43Z")

</div>

We had ec2 spot instnaces working previously. Today we started getting the following stack trace. We monitored ec2 instances UI in amazon and as soon as the ec2 instance being created status went from pending to active…

---

## [facts from rds module obsfucated?](https://forum.ansible.com/t/facts-from-rds-module-obsfucated/19689)

<div class="topic-metadata">

**Author:** [@John\_Withers](https://forum.ansible.com/u/John_Withers)\
**Replies:** 1\
**Last updated:** [November 5, 2015, 4:31pm UTC](https://forum.ansible.com/t/facts-from-rds-module-obsfucated/19689 "2015-11-05T16:31:15Z")

</div>

Folks, I am creating an rds postgres instance on aws and need to get the endpoint. The creation goes fine, but when trying to get the endpoint it obsfucates the start of it with \*\*\*\*\*\*. The relevant creation code is: n…

---

## [New module for managing hadoop clusters with Apache Ambari](https://forum.ansible.com/t/new-module-for-managing-hadoop-clusters-with-apache-ambari/19691)

<div class="topic-metadata">

**Author:** [@Mark\_Bittmann](https://forum.ansible.com/u/Mark_Bittmann)\
**Replies:** 2\
**Last updated:** [November 5, 2015, 1:28pm UTC](https://forum.ansible.com/t/new-module-for-managing-hadoop-clusters-with-apache-ambari/19691 "2015-11-05T13:28:14Z")

</div>

We recently released a custom module that we use to manage our hadoop infrastructure with Ambari. There isn’t anything else out there like this, and it has really simplified our codebase. I would love to work with the co…

---

## [git clone not working](https://forum.ansible.com/t/git-clone-not-working/19694)

<div class="topic-metadata">

**Author:** [@Doron\_Shai](https://forum.ansible.com/u/Doron_Shai)\
**Replies:** 1\
**Last updated:** [November 5, 2015, 11:38am UTC](https://forum.ansible.com/t/git-clone-not-working/19694 "2015-11-05T11:38:38Z")

</div>

Hello, I am trying to clone a github public repo to my CentOs and it doesn’t work. it doesn’t fail as well, just do not clone… the main.yml of the relevant role is \`

---

## [Dynamic inventories, EC2 tags, and commas](https://forum.ansible.com/t/dynamic-inventories-ec2-tags-and-commas/19684)

<div class="topic-metadata">

**Author:** [@H\_Wade\_Minter](https://forum.ansible.com/u/H_Wade_Minter)\
**Replies:** 1\
**Last updated:** [November 5, 2015, 11:18am UTC](https://forum.ansible.com/t/dynamic-inventories-ec2-tags-and-commas/19684 "2015-11-05T11:18:56Z")

</div>

Hi all, I’m managing some Ubuntu EC2 servers with Ansible - they primarily run applications that get deployed with Capistrano, via the cap-ec2 plugin (https://github.com/forward3d/cap-ec2). cap-ec2 looks for a “Roles” t…

---

## [httplib2 and uri](https://forum.ansible.com/t/httplib2-and-uri/19688)

<div class="topic-metadata">

**Author:** [@tom\_rkba](https://forum.ansible.com/u/tom_rkba)\
**Replies:** 1\
**Last updated:** [November 5, 2015, 1:33am UTC](https://forum.ansible.com/t/httplib2-and-uri/19688 "2015-11-05T01:33:47Z")

</div>

I am trying to figure out what is wrong with either my playbook, python installation or both. Both hosts are running CentOS 6. Python: python.x86\_64 2.6.6-52.el6 Ansible 1.9.4 is installed on the control host. The d…

---

## [looping over dict elements](https://forum.ansible.com/t/looping-over-dict-elements/19687)

<div class="topic-metadata">

**Author:** [@Bence\_Takacs](https://forum.ansible.com/u/Bence_Takacs)\
**Replies:** 3\
**Last updated:** [November 4, 2015, 5:01pm UTC](https://forum.ansible.com/t/looping-over-dict-elements/19687 "2015-11-04T17:01:10Z")

</div>

I have the following structure: “a”: { “v1”: 1, “v2”: “A” } “b”: { “v1”: 2, “v2”: “B” } It is read from an external json source using: - set\_fact: envs="{{ external.stdout | from\_json }}" I can loop/iterat…

---

## [Ansible /SSH questions?](https://forum.ansible.com/t/ansible-ssh-questions/19683)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 2\
**Last updated:** [November 4, 2015, 4:48pm UTC](https://forum.ansible.com/t/ansible-ssh-questions/19683 "2015-11-04T16:48:08Z")

</div>

Hi I am trying to understand something between SSH and ansible set on inventory. I am running a playbook deployment and whenever I set the inventory like that : \[status\] qastatus ansible\_ssh\_user=ansible ansible\_ss…

---

## [mount module fails if there is a space in share name](https://forum.ansible.com/t/mount-module-fails-if-there-is-a-space-in-share-name/19690)

<div class="topic-metadata">

**Author:** [@Jerker\_Montelius](https://forum.ansible.com/u/Jerker_Montelius)\
**Replies:** 0\
**Last updated:** [November 4, 2015, 4:23pm UTC](https://forum.ansible.com/t/mount-module-fails-if-there-is-a-space-in-share-name/19690 "2015-11-04T16:23:09Z")

</div>

Hello I have a Windows share that is called “//filserver/Shared Folders” —^ With a space in the share name When I try to write a mount line i ansible for it it fails miserably name: mount file share mount: name=/m…

---

## [Issues with mysql\_user module](https://forum.ansible.com/t/issues-with-mysql-user-module/19579)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 5\
**Last updated:** [November 4, 2015, 4:00pm UTC](https://forum.ansible.com/t/issues-with-mysql-user-module/19579 "2015-11-04T16:00:09Z")

</div>

Hello Guys, It looks like I am still not able to have this done as explained on the mysql\_user documentation. Here is my tasks and output pastie.org . Kindly help me see what I am doing wrong. Best Regards,

---

## [new AWS EC2 instance created using ansible does not use SSD](https://forum.ansible.com/t/new-aws-ec2-instance-created-using-ansible-does-not-use-ssd/19632)

<div class="topic-metadata">

**Author:** [@Abey\_Thomas](https://forum.ansible.com/u/Abey_Thomas)\
**Replies:** 3\
**Last updated:** [November 4, 2015, 3:49pm UTC](https://forum.ansible.com/t/new-aws-ec2-instance-created-using-ansible-does-not-use-ssd/19632 "2015-11-04T15:49:14Z")

</div>

Hi , I am trying to create EC2 instances using ansible module ec2 and the root volume gets created as “standard”. I would like that to be “gp2” Below is the play that I am using name: Launch the new EC2 Instance ec2…

---

## [Put a file into users home directory](https://forum.ansible.com/t/put-a-file-into-users-home-directory/12700)

<div class="topic-metadata">

**Author:** [@Oscar\_Korz](https://forum.ansible.com/u/Oscar_Korz)\
**Replies:** 4\
**Last updated:** [November 4, 2015, 1:57pm UTC](https://forum.ansible.com/t/put-a-file-into-users-home-directory/12700 "2015-11-04T13:57:06Z")

</div>

I’ve got a very silly question that I haven’t been able to find a simple solution to: I want to copy a config file into users’ home directories but I don’t know their home directories on the controller (and they may var…

---

## [group var inside jinja loop](https://forum.ansible.com/t/group-var-inside-jinja-loop/19680)

<div class="topic-metadata">

**Author:** [@Mike\_Michel](https://forum.ansible.com/u/Mike_Michel)\
**Replies:** 1\
**Last updated:** [November 4, 2015, 10:29am UTC](https://forum.ansible.com/t/group-var-inside-jinja-loop/19680 "2015-11-04T10:29:54Z")

</div>

Hi, having a jinja loop {% for host in groups\[‘server\_group’\] %} --dns={{ hostvars\[host\]\[‘ansible\_eth0’\]\[‘ipv4’\]\[‘address’\] }} {% endfor %} i want to change “eth0” with a group\_var as the interface some times differs.…

---

## [AWS Route53 Additions](https://forum.ansible.com/t/aws-route53-additions/19675)

<div class="topic-metadata">

**Author:** [@K\_Cheng](https://forum.ansible.com/u/K_Cheng)\
**Replies:** 2\
**Last updated:** [November 4, 2015, 6:46am UTC](https://forum.ansible.com/t/aws-route53-additions/19675 "2015-11-04T06:46:41Z")

</div>

Hey guys, I would like to add in some list features such as list\_resource\_record\_sets(\*\*kwargs) which is available in boto3 to provide a list of all available record sets in a given route53 zone. I’m happy to give this…

---

## [read host from another inventory file](https://forum.ansible.com/t/read-host-from-another-inventory-file/19678)

<div class="topic-metadata">

**Author:** [@Agan\_Vikry](https://forum.ansible.com/u/Agan_Vikry)\
**Replies:** 2\
**Last updated:** [November 4, 2015, 3:06am UTC](https://forum.ansible.com/t/read-host-from-another-inventory-file/19678 "2015-11-04T03:06:33Z")

</div>

I have two inventory files, staging and production. staging contents: \[server\] 192.168.56.101 #server 1 192.168.56.103 #server 2 production contents: \[server\] 192.168.56.108 #server test

---

## [Role does not take in consideration conditional "when" at with\_items](https://forum.ansible.com/t/role-does-not-take-in-consideration-conditional-when-at-with-items/19685)

<div class="topic-metadata">

**Author:** [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Replies:** 0\
**Last updated:** [November 3, 2015, 7:16pm UTC](https://forum.ansible.com/t/role-does-not-take-in-consideration-conditional-when-at-with-items/19685 "2015-11-03T19:16:05Z")

</div>

Hi all, I have a role with some shell tasks + 2 include: of some yaml files that also contain shell tasks. the first tasks are skipped as per condition but the include: are not Here is the small playbook:

---

## [AWS IAM modules](https://forum.ansible.com/t/aws-iam-modules/19663)

<div class="topic-metadata">

**Author:** [@K\_Cheng](https://forum.ansible.com/u/K_Cheng)\
**Replies:** 1\
**Last updated:** [November 3, 2015, 5:54pm UTC](https://forum.ansible.com/t/aws-iam-modules/19663 "2015-11-03T17:54:43Z")

</div>

Hey guys, I’ve been using the beta 2.0 code for IAM modules in Ansible and was hoping to propose a couple of changes to these modules? Firstly, I’ve noticed that the creates of an IAM role doesn’t return the AWS boto r…

---

## [Setting a dictionary variable dynamically](https://forum.ansible.com/t/setting-a-dictionary-variable-dynamically/15368)

<div class="topic-metadata">

**Author:** [@Steve\_Fox](https://forum.ansible.com/u/Steve_Fox)\
**Replies:** 2\
**Last updated:** [November 3, 2015, 5:45pm UTC](https://forum.ansible.com/t/setting-a-dictionary-variable-dynamically/15368 "2015-11-03T17:45:05Z")

</div>

I’m struggling to find the best way to define a dictionary variable dynamically. My goal is to define a dictionary with product versions as keys and the latest revisions as values. That way I can define the path to the l…

---

## [environment parameter](https://forum.ansible.com/t/environment-parameter/19643)

<div class="topic-metadata">

**Author:** [@Guy\_Matz](https://forum.ansible.com/u/Guy_Matz)\
**Replies:** 4\
**Last updated:** [November 3, 2015, 5:20pm UTC](https://forum.ansible.com/t/environment-parameter/19643 "2015-11-03T17:20:52Z")

</div>

Hi! I’m trying to use the environment parameter in order to set JAVA\_HOME for a task . . . I have this in my vars file: wlst\_env: JAVA\_HOME: /opt/software/java/jdk1.6.0\_30 and this in my tasks file: include\_vars: …

---

## [Ensure that file 1 (authorized\_keys) contains file 2 (id\_ed25519.pub)](https://forum.ansible.com/t/ensure-that-file-1-authorized-keys-contains-file-2-id-ed25519-pub/19673)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 2\
**Last updated:** [November 3, 2015, 4:19pm UTC](https://forum.ansible.com/t/ensure-that-file-1-authorized-keys-contains-file-2-id-ed25519-pub/19673 "2015-11-03T16:19:26Z")

</div>

Hi all, just beginning my adventure with Ansible. Following situation: I'm trying to ensure that a user called "ansible" is present on all hosts that should be managed by Ansible. Creating group and user works so far.…

---

## [Deploying across multiple projects](https://forum.ansible.com/t/deploying-across-multiple-projects/19682)

<div class="topic-metadata">

**Author:** [@Rob\_Wilkerson](https://forum.ansible.com/u/Rob_Wilkerson)\
**Replies:** 0\
**Last updated:** [November 3, 2015, 1:39pm UTC](https://forum.ansible.com/t/deploying-across-multiple-projects/19682 "2015-11-03T13:39:17Z")

</div>

I’m working in an ecosystem that includes 5 distinct repositories. A sixth, “server”, repository exists to handle “umbrella” tasks. I’m trying to build things out such that each project knows how to deploy itself (specif…

---

## [imported module support code does not exist at /usr/lib/python2.6/site-packages/ansible/module\_utils/f5.py](https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681)

<div class="topic-metadata">

**Author:** [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Replies:** 2\
**Last updated:** [November 3, 2015, 1:23pm UTC](https://forum.ansible.com/t/imported-module-support-code-does-not-exist-at-usr-lib-python2-6-site-packages-ansible-module-utils-f5-py/19681 "2015-11-03T13:23:47Z")

</div>

Hi guys, We have Ansible 1.9.1. I’m working on integration with F5 VIPs using the “bigip” modules supplied with Ansible installation (bigip\_pool\_member). At first i tried to use it and received errors like: “unsupporte…

---

## [httplib2 not using http\_proxy](https://forum.ansible.com/t/httplib2-not-using-http-proxy/19679)

<div class="topic-metadata">

**Author:** [@Narayanamoorthy\_Srin](https://forum.ansible.com/u/Narayanamoorthy_Srin)\
**Replies:** 0\
**Last updated:** [November 3, 2015, 7:29am UTC](https://forum.ansible.com/t/httplib2-not-using-http-proxy/19679 "2015-11-03T07:29:50Z")

</div>

I am trying to test Ansible uri module with external SOAP site. My server is behind proxy. When trying to connect it is attempting to connect using SOCKS even though http\_proxy is set. How to force Ansible to use HTTP pr…

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

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