# Latest

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

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

**Page:** 761

---

## [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:

---

## [Run Ansible Playbook inside Docker container?](https://forum.ansible.com/t/run-ansible-playbook-inside-docker-container/18639)

<div class="topic-metadata">

**Author:** [@Alejandro](https://forum.ansible.com/u/Alejandro)\
**Replies:** 3\
**Last updated:** [May 19, 2016, 7:27pm UTC](https://forum.ansible.com/t/run-ansible-playbook-inside-docker-container/18639 "2016-05-19T19:27:20Z")

</div>

Hi All, I like to know if someone is using Ansible to provisioning inside a Docker container… and how use this? I has all my infrastructure in Playbooks, now l like to use this to create Dockers for each of my microser…

---

## [Variable within Variable](https://forum.ansible.com/t/variable-within-variable/21491)

<div class="topic-metadata">

**Author:** [@Pr0fess0rM](https://forum.ansible.com/u/Pr0fess0rM)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 7:09pm UTC](https://forum.ansible.com/t/variable-within-variable/21491 "2016-05-19T19:09:05Z")

</div>

Hey guys, I have a variable {{ basket }} and it has a string for contents. The contents will change every time I run the playbook and I need a way to translate the contents of the basket, let’s say “apple” to another na…

---

## [Problem in running the command with '&'   ("/opt/medusa\_labs/test\_tools/bin/maim -b256k -Q8 -f/dev/sdc &")](https://forum.ansible.com/t/problem-in-running-the-command-with-opt-medusa-labs-test-tools-bin-maim-b256k-q8-f-dev-sdc/21494)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 5:33pm UTC](https://forum.ansible.com/t/problem-in-running-the-command-with-opt-medusa-labs-test-tools-bin-maim-b256k-q8-f-dev-sdc/21494 "2016-05-19T17:33:30Z")

</div>

Hi, I have a traffic tool for which i have written a module with the required options which i send to be triggered through Ansible for execution. It goes this way: “/opt/medusa\_labs/test\_tools/bin/maim -b256k -Q8 -f/d…

---

## [with\_items task and when: statement](https://forum.ansible.com/t/with-items-task-and-when-statement/21493)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 4:21pm UTC](https://forum.ansible.com/t/with-items-task-and-when-statement/21493 "2016-05-19T16:21:14Z")

</div>

What is the proper way to skip a with\_items tasks if the with\_items variable is undefined ? I’ll try to explain my use case: I have some variable defined via the group\_vars And I want to do loop over this variable onl…

---

## [Running powershell script from ansible playbook](https://forum.ansible.com/t/running-powershell-script-from-ansible-playbook/21457)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 10\
**Last updated:** [May 19, 2016, 3:27pm UTC](https://forum.ansible.com/t/running-powershell-script-from-ansible-playbook/21457 "2016-05-19T15:27:32Z")

</div>

Control node: CentOS 7 Ansible 2.1 Remote node: Windows 7 Powershell 3.0 I have a powershell script (warning.ps1) on my remote node that runs fine when I double click on it. I also have a copy of the po…

---

## [paramaterized roles - how to do line break or pass args as a list?](https://forum.ansible.com/t/paramaterized-roles-how-to-do-line-break-or-pass-args-as-a-list/21485)

<div class="topic-metadata">

**Author:** [@Eric\_McAlvin](https://forum.ansible.com/u/Eric_McAlvin)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 2:54pm UTC](https://forum.ansible.com/t/paramaterized-roles-how-to-do-line-break-or-pass-args-as-a-list/21485 "2016-05-19T14:54:18Z")

</div>

I have tried figuring this out for a few hours now and can’t get it working… Does anyone know how to properly format this so the code isn’t so wide? hosts: 127.0.0.1 connection: local gather\_facts: no roles: { ro…

---

## [using ec2.results](https://forum.ansible.com/t/using-ec2-results/21481)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 3\
**Last updated:** [May 19, 2016, 2:03pm UTC](https://forum.ansible.com/t/using-ec2-results/21481 "2016-05-19T14:03:16Z")

</div>

when using ec2.results in a task i’m getting: \[DEPRECATION WARNING\]: Skipping task due to undefined Error, in the future this will be a fatal error.: ‘dict object’ has no attribute ‘results’. using ansible 2.0.2

---

## [Ansible and shell environmental variables](https://forum.ansible.com/t/ansible-and-shell-environmental-variables/21486)

<div class="topic-metadata">

**Author:** [@Ahmed\_El-Madhoun](https://forum.ansible.com/u/Ahmed_El-Madhoun)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 12:55pm UTC](https://forum.ansible.com/t/ansible-and-shell-environmental-variables/21486 "2016-05-19T12:55:33Z")

</div>

Hi, I have been testing ansible along with environment variables, since we utilize environment variables for various deployment reasons, I notice that on ansible will pick up any environment variables defined under .bas…

---

## [Contents of a Variable as a Variable in a playbook](https://forum.ansible.com/t/contents-of-a-variable-as-a-variable-in-a-playbook/21490)

<div class="topic-metadata">

**Author:** [@Pr0fess0rM](https://forum.ansible.com/u/Pr0fess0rM)\
**Replies:** 0\
**Last updated:** [May 19, 2016, 12:53pm UTC](https://forum.ansible.com/t/contents-of-a-variable-as-a-variable-in-a-playbook/21490 "2016-05-19T12:53:38Z")

</div>

Hi, I’m having trouble implementing this. Basically, variable basket contains the string ‘apple’ and I have already created a variable called apple that contains string ‘seed’. How do I use seed by referencing basket? I…

---

## [How can I appropriately pass this command through?  - unsupported parameter.](https://forum.ansible.com/t/how-can-i-appropriately-pass-this-command-through-unsupported-parameter/21474)

<div class="topic-metadata">

**Author:** [@Luke\_Guerry](https://forum.ansible.com/u/Luke_Guerry)\
**Replies:** 1\
**Last updated:** [May 19, 2016, 12:24pm UTC](https://forum.ansible.com/t/how-can-i-appropriately-pass-this-command-through-unsupported-parameter/21474 "2016-05-19T12:24:35Z")

</div>

I’ve been trying different methods, and trying to escape the characters '', but I cannot seem to figure out how to pass this whole command through. I haven’t really turned up anything online either. I’ve tested the com…

---

## [iptables-module in v2.0.2: Existing rules are shown as changed, but not in ansible\_check\_mode](https://forum.ansible.com/t/iptables-module-in-v2-0-2-existing-rules-are-shown-as-changed-but-not-in-ansible-check-mode/21489)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 19, 2016, 12:00pm UTC](https://forum.ansible.com/t/iptables-module-in-v2-0-2-existing-rules-are-shown-as-changed-but-not-in-ansible-check-mode/21489 "2016-05-19T12:00:24Z")

</div>

Hi all, I am using the iptables-module to set rules on a machine. And after the first run of my playbook it shows the rules as existing (changed: false) in check\_mode, but during the real run it shows them as changed. …

---

## [Need help with escaping a jinja-sequence in bash script](https://forum.ansible.com/t/need-help-with-escaping-a-jinja-sequence-in-bash-script/21476)

<div class="topic-metadata">

**Author:** [@Simon\_Szustkowski](https://forum.ansible.com/u/Simon_Szustkowski)\
**Replies:** 3\
**Last updated:** [May 19, 2016, 11:23am UTC](https://forum.ansible.com/t/need-help-with-escaping-a-jinja-sequence-in-bash-script/21476 "2016-05-19T11:23:40Z")

</div>

Hi, i want to create a template which should result in the following output: custommark4 masq 1 PREROUTING inface “${openvpn\_if}” Here, the value “openvpn” should be read from a variable. I have some problems with cr…

---

## [APM Module for installing Atom Packages](https://forum.ansible.com/t/apm-module-for-installing-atom-packages/20140)

<div class="topic-metadata">

**Author:** [@Michael\_Aquilina](https://forum.ansible.com/u/Michael_Aquilina)\
**Replies:** 3\
**Last updated:** [May 19, 2016, 9:41am UTC](https://forum.ansible.com/t/apm-module-for-installing-atom-packages/20140 "2016-05-19T09:41:32Z")

</div>

I wrote this apm (Atom Package Manager) module to allow me to easily synchronise what Atom packages I have installed on my work and personal laptop. I was wondering if this would be a useful addition to ansible-modules-…

---

## [How to get facts about firewall type?](https://forum.ansible.com/t/how-to-get-facts-about-firewall-type/21475)

<div class="topic-metadata">

**Author:** [@user15](https://forum.ansible.com/u/user15)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 8:18am UTC](https://forum.ansible.com/t/how-to-get-facts-about-firewall-type/21475 "2016-05-19T08:18:49Z")

</div>

Hi, I have a lot of centos7 webservers with firewalld onboard and a lot of centos7 webservers with iptables onboard and i need to write role webserves, some parts are differ to different firewall type. Is a simple way …

---

## [Ansible 2 group\_vars order](https://forum.ansible.com/t/ansible-2-group-vars-order/21477)

<div class="topic-metadata">

**Author:** [@antony.perigault](https://forum.ansible.com/u/antony.perigault)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 7:15am UTC](https://forum.ansible.com/t/ansible-2-group-vars-order/21477 "2016-05-19T07:15:44Z")

</div>

Hello, I do many tests and I don’t understand the group\_vars load order in ansible 2. With ansible 1 vars are load in my playbook order. But with ansible 2 it seems to be totally random. For example: I have 2 groups: …

---

## [are there ansible branches or configurations for python 3?](https://forum.ansible.com/t/are-there-ansible-branches-or-configurations-for-python-3/20556)

<div class="topic-metadata">

**Author:** [@Benjamin\_Golder](https://forum.ansible.com/u/Benjamin_Golder)\
**Replies:** 2\
**Last updated:** [May 19, 2016, 6:38am UTC](https://forum.ansible.com/t/are-there-ansible-branches-or-configurations-for-python-3/20556 "2016-05-19T06:38:14Z")

</div>

I’m new to ansible and naively installed ansible in a python 3 virtualenv. While running one of the first commands in the “Getting Started” documentation: \` ansible all -m ping -vvv \` I ran into an error with ansibl…

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

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