# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=588

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

**Page:** 589

---

## [Getting more information back from Ansible (Specifically Yum)](https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503)

<div class="topic-metadata">

**Author:** [@Mike\_McCormick](https://forum.ansible.com/u/Mike_McCormick)\
**Replies:** 2\
**Last updated:** [May 23, 2016, 2:53pm UTC](https://forum.ansible.com/t/getting-more-information-back-from-ansible-specifically-yum/21503 "2016-05-23T14:53:52Z")

</div>

Hey Guys, I’m in the earlier stages of an Ansible deployment. I have one question perhaps someone can help with. I’m currently firing off an email internally for playbooks as per the mail modules examples. What I’d re…

---

## [git repo with submodules hangs](https://forum.ansible.com/t/git-repo-with-submodules-hangs/18208)

<div class="topic-metadata">

**Author:** [@Duncan\_Woods](https://forum.ansible.com/u/Duncan_Woods)\
**Replies:** 1\
**Last updated:** [May 23, 2016, 2:09pm UTC](https://forum.ansible.com/t/git-repo-with-submodules-hangs/18208 "2016-05-23T14:09:31Z")

</div>

Hi, I’m using the development version of ansible on ubuntu 14.04. If I use the git task to clone a repo containing submodules, the playbook hangs. Killing the process and it looks like it clones the non-submodule folde…

---

## [Help with loop and data extraction](https://forum.ansible.com/t/help-with-loop-and-data-extraction/21522)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 0\
**Last updated:** [May 23, 2016, 12:01pm UTC](https://forum.ansible.com/t/help-with-loop-and-data-extraction/21522 "2016-05-23T12:01:27Z")

</div>

Of this blob TASK: \[context\_deploy | debug \] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[myserver\] =\> { “msg”: “1 {‘msg’: ‘All items completed’, ‘changed’: False, ‘results’: \[{‘invocation’: {‘module\_name’: u’…

---

## [Apps/utilities to store facts?](https://forum.ansible.com/t/apps-utilities-to-store-facts/21514)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 3\
**Last updated:** [May 23, 2016, 11:40am UTC](https://forum.ansible.com/t/apps-utilities-to-store-facts/21514 "2016-05-23T11:40:53Z")

</div>

Are there any apps out there designed to store facts from ansible runs, kind of like puppetdb? I think it would be kind of useful to have this info readily available to view/query outside of playbook runs. Guy

---

## [Travis build process failing to compile with python3](https://forum.ansible.com/t/travis-build-process-failing-to-compile-with-python3/21520)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 2\
**Last updated:** [May 23, 2016, 11:20am UTC](https://forum.ansible.com/t/travis-build-process-failing-to-compile-with-python3/21520 "2016-05-23T11:20:33Z")

</div>

Does any one know why Travis has started to fail builds by trying to compile with python3? Example: 0.66s$ python3.4 -m compileall -fq . -x $(echo "$PY3\_EXCLUDE\_LIST"| tr ' ' '|') \*\*\* Error compiling './cloud/amazon/…

---

## [How to check file system is mounted?](https://forum.ansible.com/t/how-to-check-file-system-is-mounted/21516)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 4\
**Last updated:** [May 23, 2016, 10:57am UTC](https://forum.ansible.com/t/how-to-check-file-system-is-mounted/21516 "2016-05-23T10:57:18Z")

</div>

Is there a canonical way in Ansible to check to see if a file system is mounted? The Ansible mount module doesn’t appear to provide this capability (or at least the examples don’t illustrate how it might be done). Curren…

---

## [Roles Path not read from ansible.cfg](https://forum.ansible.com/t/roles-path-not-read-from-ansible-cfg/21487)

<div class="topic-metadata">

**Author:** [@jzarzoso](https://forum.ansible.com/u/jzarzoso)\
**Replies:** 1\
**Last updated:** [May 23, 2016, 9:13am UTC](https://forum.ansible.com/t/roles-path-not-read-from-ansible-cfg/21487 "2016-05-23T09:13:22Z")

</div>

I’m using vagrant and I have this structure controller roles ansible tasks main.yml inventories playbooks master.yml environment provisioning ansible.cfg vagrant.yml Vagrantfile T…

---

## [I'm looking to contribute](https://forum.ansible.com/t/im-looking-to-contribute/21511)

<div class="topic-metadata">

**Author:** [@afraser](https://forum.ansible.com/u/afraser)\
**Replies:** 2\
**Last updated:** [May 23, 2016, 7:35am UTC](https://forum.ansible.com/t/im-looking-to-contribute/21511 "2016-05-23T07:35:44Z")

</div>

Hi All, I’ve used Ansible from an Admin standpoint and I’d like to contribute to the project code-wise. I don’t want to work on anything that already being done. Can someone give me an idea how I can get involved or wit…

---

## [Escaping ampersand (&) in a string](https://forum.ansible.com/t/escaping-ampersand-in-a-string/21521)

<div class="topic-metadata">

**Author:** [@parnesh.raniga](https://forum.ansible.com/u/parnesh.raniga)\
**Replies:** 0\
**Last updated:** [May 23, 2016, 7:31am UTC](https://forum.ansible.com/t/escaping-ampersand-in-a-string/21521 "2016-05-23T07:31:40Z")

</div>

Hi All, I am new to ansible and using it to create some cloud images. While for the most part ansible has been great and easy to use, one of the recurring problems I am having is how to correctly escape special characte…

---

## [How to check if file system is mounted?](https://forum.ansible.com/t/how-to-check-if-file-system-is-mounted/21517)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 1\
**Last updated:** [May 23, 2016, 1:21am UTC](https://forum.ansible.com/t/how-to-check-if-file-system-is-mounted/21517 "2016-05-23T01:21:50Z")

</div>

The setup module that normally runs at the start of the play will return mounts of a system in ansible\_mounts (if I remember the var name correctly) You can use this var to look.

---

## [How to references a list of host in play book?](https://forum.ansible.com/t/how-to-references-a-list-of-host-in-play-book/21518)

<div class="topic-metadata">

**Author:** [@Sicheng\_Tang](https://forum.ansible.com/u/Sicheng_Tang)\
**Replies:** 0\
**Last updated:** [May 23, 2016, 1:03am UTC](https://forum.ansible.com/t/how-to-references-a-list-of-host-in-play-book/21518 "2016-05-23T01:03:09Z")

</div>

Suppose I have a group of host, whose Ip are 10.129.51.158,10.129.50.235,10.129.50.234, and I define it as a variable ip = 10.129.51.158,10.129.50.235,10.129.50.234 Is there any to to generate a play book like this by …

---

## [issue 9939 - newline in local\_command](https://forum.ansible.com/t/issue-9939-newline-in-local-command/21513)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 0\
**Last updated:** [May 22, 2016, 12:26pm UTC](https://forum.ansible.com/t/issue-9939-newline-in-local-command/21513 "2016-05-22T12:26:42Z")

</div>

Hi, for me the issue 9939 still remains in ansible 2.0.0.2 . https://github.com/ansible/ansible/issues/9939 I tried to circumvent this with \` local\_action: module: shell : \` But I do not know the key for the she…

---

## [How i can match a text form a log to make the wait for task continue](https://forum.ansible.com/t/how-i-can-match-a-text-form-a-log-to-make-the-wait-for-task-continue/21512)

<div class="topic-metadata">

**Author:** [@Mario\_Gamboa](https://forum.ansible.com/u/Mario_Gamboa)\
**Replies:** 0\
**Last updated:** [May 21, 2016, 4:48pm UTC](https://forum.ansible.com/t/how-i-can-match-a-text-form-a-log-to-make-the-wait-for-task-continue/21512 "2016-05-21T16:48:23Z")

</div>

Ok i have a software that always when restart needs to insert password is really pain in the ass so i trying to automate This is my playbook tasks file for terminal name: restart terminal \<–this is working fine servi…

---

## [How to write a interface for multiple node with different ips using ansible](https://forum.ansible.com/t/how-to-write-a-interface-for-multiple-node-with-different-ips-using-ansible/21509)

<div class="topic-metadata">

**Author:** [@satheesh\_prabhakaran](https://forum.ansible.com/u/satheesh_prabhakaran)\
**Replies:** 1\
**Last updated:** [May 21, 2016, 12:17pm UTC](https://forum.ansible.com/t/how-to-write-a-interface-for-multiple-node-with-different-ips-using-ansible/21509 "2016-05-21T12:17:44Z")

</div>

I am trying out creating bridges and adding ips to bridges in multiple servers which need to be interconnected for Openstack Ansible Deployment. I am stucking in configuring bridges with different ips.

---

## [Installing Apache through Ansible](https://forum.ansible.com/t/installing-apache-through-ansible/21495)

<div class="topic-metadata">

**Author:** [@Perry\_Hoekstra](https://forum.ansible.com/u/Perry_Hoekstra)\
**Replies:** 4\
**Last updated:** [May 21, 2016, 9:30am UTC](https://forum.ansible.com/t/installing-apache-through-ansible/21495 "2016-05-21T09:30:14Z")

</div>

I am attempting to create an EC2 instance in one role and installing Apache on it in the next role. The pertinent playbook entry looks like this: Configure and deploy Apache hosts: localhost connection: local remote…

---

## [os\_network cloud module cannot find my clouds.yml file](https://forum.ansible.com/t/os-network-cloud-module-cannot-find-my-clouds-yml-file/20065)

<div class="topic-metadata">

**Author:** [@R\_Melton](https://forum.ansible.com/u/R_Melton)\
**Replies:** 1\
**Last updated:** [May 21, 2016, 1:58am UTC](https://forum.ansible.com/t/os-network-cloud-module-cannot-find-my-clouds-yml-file/20065 "2016-05-21T01:58:44Z")

</div>

i’m using ansible 2.1.0 (devel 0c013f592a) last updated 2015/12/21 14:26:10 (GMT -700) installed from source in ubuntu desktop. here’s my playbook task: name: create openstack network become: no os\_network: cloud:…

---

## [do-until with uri module](https://forum.ansible.com/t/do-until-with-uri-module/21508)

<div class="topic-metadata">

**Author:** [@Marcus\_Morris](https://forum.ansible.com/u/Marcus_Morris)\
**Replies:** 4\
**Last updated:** [May 20, 2016, 11:43pm UTC](https://forum.ansible.com/t/do-until-with-uri-module/21508 "2016-05-20T23:43:37Z")

</div>

So I am running ‘canary’ tests post CI and pre deployment to test if the newest code runs without error in a real environment. The tests are just hitting a url and checking that it returns 200. Sometimes it takes a litt…

---

## [Feature Idea: Allow for "directory" or "link" in place of "file" with state](https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510)

<div class="topic-metadata">

**Author:** [@Sergio\_Pace](https://forum.ansible.com/u/Sergio_Pace)\
**Replies:** 0\
**Last updated:** [May 20, 2016, 11:16pm UTC](https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510 "2016-05-20T23:16:40Z")

</div>

As per https://github.com/ansible/ansible-modules-core/issues/3669, I believe that It would be a good adition to the file core module if we could use dir: path=x/y/z or link: path=x/y/z as an alias for file: path=x/…

---

## [Block & Playbooks](https://forum.ansible.com/t/block-playbooks/21382)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 9:10pm UTC](https://forum.ansible.com/t/block-playbooks/21382 "2016-05-20T21:10:10Z")

</div>

Is the new “block” construct allowed in a playbook? TIA, -T

---

## [Checking the presence of some CA certificate on a remote Linux host](https://forum.ansible.com/t/checking-the-presence-of-some-ca-certificate-on-a-remote-linux-host/21506)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 2\
**Last updated:** [May 20, 2016, 7:05pm UTC](https://forum.ansible.com/t/checking-the-presence-of-some-ca-certificate-on-a-remote-linux-host/21506 "2016-05-20T19:05:41Z")

</div>

Hello guys, I need to download & install the CA certificate only if it is not present on the remote host. Does anyone know how to achieve the CA certificate presence check with Ansible? That will be used to populate a…

---

## [Vars and register passing on to include playbooks](https://forum.ansible.com/t/vars-and-register-passing-on-to-include-playbooks/21496)

<div class="topic-metadata">

**Author:** [@Joe\_Louthan](https://forum.ansible.com/u/Joe_Louthan)\
**Replies:** 9\
**Last updated:** [May 20, 2016, 6:16pm UTC](https://forum.ansible.com/t/vars-and-register-passing-on-to-include-playbooks/21496 "2016-05-20T18:16:49Z")

</div>

By all accounts that I can see, the following should work: \`

---

## [cant remove a role from galaxy](https://forum.ansible.com/t/cant-remove-a-role-from-galaxy/21507)

<div class="topic-metadata">

**Author:** [@Rob\_Cousins](https://forum.ansible.com/u/Rob_Cousins)\
**Replies:** 0\
**Last updated:** [May 20, 2016, 3:03pm UTC](https://forum.ansible.com/t/cant-remove-a-role-from-galaxy/21507 "2016-05-20T15:03:13Z")

</div>

Hi i have a problem removing one of my roles from galaxy First i uploaded a role called ovirt\_host\_add Then renamed this to ovirt\_hosted\_engine\_install in my git repo. Then re imported the role in galaxy Now i am lef…

---

## [Group ec2 instances and local machines together](https://forum.ansible.com/t/group-ec2-instances-and-local-machines-together/21498)

<div class="topic-metadata">

**Author:** [@Alex\_Braun](https://forum.ansible.com/u/Alex_Braun)\
**Replies:** 2\
**Last updated:** [May 20, 2016, 2:03pm UTC](https://forum.ansible.com/t/group-ec2-instances-and-local-machines-together/21498 "2016-05-20T14:03:04Z")

</div>

I want to run a playbook with some group\_vars on some Amazon EC2 instances and on some local machines. Is there some way that I can group EC2 instances (by tag) and local machines under the same inventory group? For ins…

---

## [ipaddr filter: Calculating default gateway](https://forum.ansible.com/t/ipaddr-filter-calculating-default-gateway/21504)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 12:05pm UTC](https://forum.ansible.com/t/ipaddr-filter-calculating-default-gateway/21504 "2016-05-20T12:05:04Z")

</div>

I wanted to calculate the default gateway from a CIDR. The ipaddr filter has an undocumented gateway/router option but it results in unexpected values. Here is the responsible method: def \_gateway\_query(v): if v.size \> …

---

## [Satellite module in development](https://forum.ansible.com/t/satellite-module-in-development/21488)

<div class="topic-metadata">

**Author:** [@rwolters](https://forum.ansible.com/u/rwolters)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 10:18am UTC](https://forum.ansible.com/t/satellite-module-in-development/21488 "2016-05-20T10:18:27Z")

</div>

Hej hej, in case you are interested, I am currently developing my first Ansible module using the Satellite REST API. Currently it can create and delete activation keys, but my plan is to use it as a blueprint for multip…

---

## [Unable to get json/yaml file to parse appropriately in jinja2](https://forum.ansible.com/t/unable-to-get-json-yaml-file-to-parse-appropriately-in-jinja2/21500)

<div class="topic-metadata">

**Author:** [@Bob\_Brown1](https://forum.ansible.com/u/Bob_Brown1)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 4:35am UTC](https://forum.ansible.com/t/unable-to-get-json-yaml-file-to-parse-appropriately-in-jinja2/21500 "2016-05-20T04:35:17Z")

</div>

I have a structure that looks like this:

---

## [Loop through a group of hosts with pattern](https://forum.ansible.com/t/loop-through-a-group-of-hosts-with-pattern/21501)

<div class="topic-metadata">

**Author:** [@jzarzoso](https://forum.ansible.com/u/jzarzoso)\
**Replies:** 2\
**Last updated:** [May 20, 2016, 2:56am UTC](https://forum.ansible.com/t/loop-through-a-group-of-hosts-with-pattern/21501 "2016-05-20T02:56:42Z")

</div>

Hi everyone! I’m thinking of looping through all the hosts from a playbook with a pattern. I have this play: \` hosts: localhost # Select all hosts tasks: name: Debug the list debug: msg: “host: {{ item }}” with\_i…

---

## [How to use Ansible 2.0 Python CLI to get result?](https://forum.ansible.com/t/how-to-use-ansible-2-0-python-cli-to-get-result/21502)

<div class="topic-metadata">

**Author:** [@jinyanroot](https://forum.ansible.com/u/jinyanroot)\
**Replies:** 0\
**Last updated:** [May 20, 2016, 2:51am UTC](https://forum.ansible.com/t/how-to-use-ansible-2-0-python-cli-to-get-result/21502 "2016-05-20T02:51:54Z")

</div>

test.yml file: \`

---

## [log files not getting generated from the tool with async:\<some higher value\> poll:0](https://forum.ansible.com/t/log-files-not-getting-generated-from-the-tool-with-async-some-higher-value-poll-0/21499)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 12:21am UTC](https://forum.ansible.com/t/log-files-not-getting-generated-from-the-tool-with-async-some-higher-value-poll-0/21499 "2016-05-20T00:21:46Z")

</div>

Hi, I have a scenario where in i am running a traffic tool which runs infinitely. So to unblock from Ansible point of view i run it asynchronously by defining async:0 and poll:0 But the tool is not able to generate an…

---

## [killing a play when using run\_once+delegate\_to](https://forum.ansible.com/t/killing-a-play-when-using-run-once-delegate-to/21483)

<div class="topic-metadata">

**Author:** [@sbeardsley](https://forum.ansible.com/u/sbeardsley)\
**Replies:** 1\
**Last updated:** [May 19, 2016, 7:58pm UTC](https://forum.ansible.com/t/killing-a-play-when-using-run-once-delegate-to/21483 "2016-05-19T19:58:36Z")

</div>

My goal is to fail all hosts when a run\_once, delegated task fails. In my specific case there was an ssh failure to the delegated host. I’ve simplified my playbook to the following:

[Previous page](https://forum.ansible.com/c/archives/31.md?page=587)

[Next page](https://forum.ansible.com/c/archives/31.md?page=589)
