# Archives

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

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

**Page:** 590

---

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

---

## [One question about the default variables of dependency roles override in ansible 2.0](https://forum.ansible.com/t/one-question-about-the-default-variables-of-dependency-roles-override-in-ansible-2-0/20246)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 5\
**Last updated:** [May 19, 2016, 3:13am UTC](https://forum.ansible.com/t/one-question-about-the-default-variables-of-dependency-roles-override-in-ansible-2-0/20246 "2016-05-19T03:13:48Z")

</div>

Hi all, Upgrade to ansible 2.0, my playbook activities changed. I have a question about default variables of dependency roles. I have a role A which depends on role B. Role B is defined in meta/main.yml of role A. Act…

---

## [How to run role with a particular tag in a playbook?](https://forum.ansible.com/t/how-to-run-role-with-a-particular-tag-in-a-playbook/21458)

<div class="topic-metadata">

**Author:** [@Dmitry\_Owl](https://forum.ansible.com/u/Dmitry_Owl)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 11:07pm UTC](https://forum.ansible.com/t/how-to-run-role-with-a-particular-tag-in-a-playbook/21458 "2016-05-18T23:07:36Z")

</div>

Hello, I need to run role in a playbook with a particular tag, \*\*without "--tags" option.\*\* Something like this: - hosts: somehost remote\_user: someuser roles: - { role: somerole, with-tags: 'sometag' } I e…

---

## [Ansible 2.1.0 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-1-0-rc3-is-ready-for-testing/21484)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 8:08pm UTC](https://forum.ansible.com/t/ansible-2-1-0-rc3-is-ready-for-testing/21484 "2016-05-18T20:08:48Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.1.0 is now available for testing. This updated release candidate fixes a few additional bugs, including (but not limited to): Fixed several bugs to make the execution of …

---

## [Ansible 2.1.0 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-1-0-rc2-is-ready-for-testing/21438)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 5\
**Last updated:** [May 18, 2016, 8:03pm UTC](https://forum.ansible.com/t/ansible-2-1-0-rc2-is-ready-for-testing/21438 "2016-05-18T20:03:14Z")

</div>

Hi all, we’re happy to announce that RC2 for 2.1.0 is now available for testing. This updated release candidate fixes several bugs from RC1, including (but not limited to): Fixed several bugs related to the new ziploa…

---

## [using wildcards to fetching src files](https://forum.ansible.com/t/using-wildcards-to-fetching-src-files/12049)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 7\
**Last updated:** [May 18, 2016, 7:54pm UTC](https://forum.ansible.com/t/using-wildcards-to-fetching-src-files/12049 "2016-05-18T19:54:57Z")

</div>

Ansible 0.8 contains "with\_fileglob", which does what you want action: modulename src=$item \<other arguments\> with\_fileglob: /data\_dump\_\*.sql It would send over all files matching the glob from the local server in …

---

## [Need help with adding multiple hosts](https://forum.ansible.com/t/need-help-with-adding-multiple-hosts/21482)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 5:48pm UTC](https://forum.ansible.com/t/need-help-with-adding-multiple-hosts/21482 "2016-05-18T17:48:43Z")

</div>

I’m trying to figure out why this is only adding one hosts after registering ec2 Ansible 2.0.2 name: Add hosts group temporary inventory group add\_host: name={{ item.private\_ip }} groups=dynamic with\_items: “{{ ec2.…

---

## [ansible add\_host module is not adding multiple hosts](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21480)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 3:14pm UTC](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21480 "2016-05-18T15:14:42Z")

</div>

boto (2.40.0) ansible 2.0.2.0 When running this and trying to add multiple hosts to a new group for in memory inventory it only adding the first ec2 instance. On the wait for ssh task it does wait for all ec2 instances …

---

## [Failed to ping linux machine having python version 3.5.1](https://forum.ansible.com/t/failed-to-ping-linux-machine-having-python-version-3-5-1/21470)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 3:03pm UTC](https://forum.ansible.com/t/failed-to-ping-linux-machine-having-python-version-3-5-1/21470 "2016-05-18T15:03:48Z")

</div>

I am trying to ping a linux machine having python version 3.5.1+, but I am facing the following error. ansible -m ping linux1 1.1.1.2 | FAILED! =\> { “changed”: false, “failed”: true, “msg”: “Traceback (most recent c…

---

## [Wait function between Roles](https://forum.ansible.com/t/wait-function-between-roles/21479)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 2:58pm UTC](https://forum.ansible.com/t/wait-function-between-roles/21479 "2016-05-18T14:58:54Z")

</div>

Hi Not sure if you able to assist with this question, but is it at all possible to setup a ‘wait’ function between roles in a playbook? So if I have the following playbook:

---

## [Issue with URI module in ansible1.9-1.9.6-2](https://forum.ansible.com/t/issue-with-uri-module-in-ansible1-9-1-9-6-2/21462)

<div class="topic-metadata">

**Author:** [@Guillaume\_Belrose](https://forum.ansible.com/u/Guillaume_Belrose)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 2:53pm UTC](https://forum.ansible.com/t/issue-with-uri-module-in-ansible1-9-1-9-6-2/21462 "2016-05-18T14:53:30Z")

</div>

Hi all, I am on CentOS 6.7 using Ansible 1.9 and I’ve updated my version of Ansible to be ansible1.9-1.9.6-2 (retrieved from EPEL). I have some tasks (\[1\]) which upload (via POST) dashboards to Grafana. Those tasks use…

---

## [ansible add\_host module is not adding multiple hosts](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21478)

<div class="topic-metadata">

**Author:** [@eric\_skaggs](https://forum.ansible.com/u/eric_skaggs)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 2:16pm UTC](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21478 "2016-05-18T14:16:16Z")

</div>

boto (2.40.0) ansible 2.0.2.0 When running this and trying to add multiple hosts to a new group for in memory inventory it only adding the first ec2 instance. On the wait for ssh task it does wait for all ec2 instances …

---

## [ios\_template making changes when router config already exists](https://forum.ansible.com/t/ios-template-making-changes-when-router-config-already-exists/21158)

<div class="topic-metadata">

**Author:** [@Luke\_Russell](https://forum.ansible.com/u/Luke_Russell)\
**Replies:** 4\
**Last updated:** [May 18, 2016, 1:50pm UTC](https://forum.ansible.com/t/ios-template-making-changes-when-router-config-already-exists/21158 "2016-05-18T13:50:12Z")

</div>

I am using ios\_template to deploy some DMVPN tunnels. For some reason it is not recognising two commands that already exist on the router - ip nhrp map a.a.a.a b.b.b.b and ip nhrp nhs a.a.a.a. I’m not really sure what is…

---

## [Inventory Group Name as a Variable?](https://forum.ansible.com/t/inventory-group-name-as-a-variable/21473)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 1:26pm UTC](https://forum.ansible.com/t/inventory-group-name-as-a-variable/21473 "2016-05-18T13:26:52Z")

</div>

I would like to use our inventory group names as a variable in a template file. Has anyone had any success doing this?

---

## [add\_host for multiple containers on multiple hosts](https://forum.ansible.com/t/add-host-for-multiple-containers-on-multiple-hosts/21472)

<div class="topic-metadata">

**Author:** [@Jirayut\_Nimsaeng](https://forum.ansible.com/u/Jirayut_Nimsaeng)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 11:30am UTC](https://forum.ansible.com/t/add-host-for-multiple-containers-on-multiple-hosts/21472 "2016-05-18T11:30:31Z")

</div>

Let's see my use case name: Run Nginx container docker: name: nginx image: nginx state: started ports: “80:80” “443:443” name: Add host nginx container add\_host: name: nginx groups: nginx\_container …

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

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