# Latest

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

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

**Page:** 693

---

## [docker commit](https://forum.ansible.com/t/docker-commit/23525)

<div class="topic-metadata">

**Author:** [@Sonny\_Heer](https://forum.ansible.com/u/Sonny_Heer)\
**Replies:** 0\
**Last updated:** [January 23, 2017, 1:09am UTC](https://forum.ansible.com/t/docker-commit/23525 "2017-01-23T01:09:23Z")

</div>

I have a set of containers running in a VM (via docker\_container module). I would like to provision these containers and then save what was changed. What is the best approach to do this? I’m using docker\_container with o…

---

## [using docker:xenial image in chrismeyersfsu/provision\_docker role](https://forum.ansible.com/t/using-docker-xenial-image-in-chrismeyersfsu-provision-docker-role/23507)

<div class="topic-metadata">

**Author:** [@Mathias\_Aldrin](https://forum.ansible.com/u/Mathias_Aldrin)\
**Replies:** 2\
**Last updated:** [January 22, 2017, 9:19pm UTC](https://forum.ansible.com/t/using-docker-xenial-image-in-chrismeyersfsu-provision-docker-role/23507 "2017-01-22T21:19:27Z")

</div>

Hi, I have plenty of ansible scripts installing SW on VMs. I would like to try to containerize my VMs. I found the role chrismeyersfsu/provision\_docker which first looked suitable. My applications are running on ubun…

---

## [Execute windows batch file which called another batch file](https://forum.ansible.com/t/execute-windows-batch-file-which-called-another-batch-file/23496)

<div class="topic-metadata">

**Author:** [@Gad](https://forum.ansible.com/u/Gad)\
**Replies:** 4\
**Last updated:** [January 22, 2017, 8:30am UTC](https://forum.ansible.com/t/execute-windows-batch-file-which-called-another-batch-file/23496 "2017-01-22T08:30:42Z")

</div>

Hi Im tryin to execute “c:\\my files\\a.bat” which call : “c:\\my files\\c.bat” i did try using the raw module like: raw: “cd "c:\\my-files" & "c:\\my-files\\a.bat"” but ansible refuse to pipe the sign & also tried with "&…

---

## [Can I define a Map variable in Playbook vars](https://forum.ansible.com/t/can-i-define-a-map-variable-in-playbook-vars/23523)

<div class="topic-metadata">

**Author:** [@wenxing\_zheng](https://forum.ansible.com/u/wenxing_zheng)\
**Replies:** 0\
**Last updated:** [January 22, 2017, 2:48am UTC](https://forum.ansible.com/t/can-i-define-a-map-variable-in-playbook-vars/23523 "2017-01-22T02:48:38Z")

</div>

Dear all, I have a role which is common to the app side, and then the app side needs to define a Map variable in their own playbooks. In the common role, the template file will generate the corresponding configuration…

---

## [Variables from csv and loops with random records](https://forum.ansible.com/t/variables-from-csv-and-loops-with-random-records/23472)

<div class="topic-metadata">

**Author:** [@Matyas\_Kovacs](https://forum.ansible.com/u/Matyas_Kovacs)\
**Replies:** 9\
**Last updated:** [January 21, 2017, 5:17pm UTC](https://forum.ansible.com/t/variables-from-csv-and-loops-with-random-records/23472 "2017-01-21T17:17:49Z")

</div>

Hi All, I hope you can help me with this problem. There are 50 different servers, each of them has different iptables firewall and rules. I want them to be managed by Ansible. My idea is to create a csv file, like this…

---

## [docker\_login and docker\_service can't find docker-py when docker pip package is installed?](https://forum.ansible.com/t/docker-login-and-docker-service-cant-find-docker-py-when-docker-pip-package-is-installed/23485)

<div class="topic-metadata">

**Author:** [@Gerald\_Spencer](https://forum.ansible.com/u/Gerald_Spencer)\
**Replies:** 1\
**Last updated:** [January 21, 2017, 11:58am UTC](https://forum.ansible.com/t/docker-login-and-docker-service-cant-find-docker-py-when-docker-pip-package-is-installed/23485 "2017-01-21T11:58:18Z")

</div>

Playbook:

---

## [Help on ansible tasks](https://forum.ansible.com/t/help-on-ansible-tasks/23405)

<div class="topic-metadata">

**Author:** [@Shyam\_Yenna](https://forum.ansible.com/u/Shyam_Yenna)\
**Replies:** 3\
**Last updated:** [January 21, 2017, 11:32am UTC](https://forum.ansible.com/t/help-on-ansible-tasks/23405 "2017-01-21T11:32:09Z")

</div>

Please can someone help as i am having hard time to debug or troubleshoot below ansible module tasks. I am trying to format an ebs volume attached to an ec2 instance.i am getting below error. { “changed”: false, “fai…

---

## [cryptic errors nxos\_config](https://forum.ansible.com/t/cryptic-errors-nxos-config/23520)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 10:53pm UTC](https://forum.ansible.com/t/cryptic-errors-nxos-config/23520 "2017-01-20T22:53:36Z")

</div>

I'm troubleshooting why I keep getting this cryptic errors when I'm attempting to use nxos\_config Ansible Version: ansible 2.2.0.0 config file = /home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/ansib…

---

## [Help to get the .pem file for Auze](https://forum.ansible.com/t/help-to-get-the-pem-file-for-auze/23519)

<div class="topic-metadata">

**Author:** [@Amit\_Saini](https://forum.ansible.com/u/Amit_Saini)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 9:30pm UTC](https://forum.ansible.com/t/help-to-get-the-pem-file-for-auze/23519 "2017-01-20T21:30:09Z")

</div>

Hi, I am working on ansible-playbook for provisioning Azure VMWare and referring the ansible document - name: Provision virtual machine example azure: name: my-virtual-machine role\_size: Small image: b39f…

---

## [Starting out with Ansible and Vagrant.](https://forum.ansible.com/t/starting-out-with-ansible-and-vagrant/23494)

<div class="topic-metadata">

**Author:** [@Pangaea\_Agartha](https://forum.ansible.com/u/Pangaea_Agartha)\
**Replies:** 3\
**Last updated:** [January 20, 2017, 7:45pm UTC](https://forum.ansible.com/t/starting-out-with-ansible-and-vagrant/23494 "2017-01-20T19:45:42Z")

</div>

Hi Everyone. I am a complete noob to this so please be patient with me. I’m trying to learn Devops and my mentor asked me to research and attempt to get a vagrant machine online with a LEMP stack using only ansible to c…

---

## [Inventory plugin for Packet host](https://forum.ansible.com/t/inventory-plugin-for-packet-host/23518)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 6:24pm UTC](https://forum.ansible.com/t/inventory-plugin-for-packet-host/23518 "2017-01-20T18:24:22Z")

</div>

Hello, I am now looking on dynamic inventory script for the Packet host (https://packet.net). I noticed there is a PR: https://github.com/ansible/ansible/pull/17820 I treid to do some review. I would really like to …

---

## [Template Conditionals](https://forum.ansible.com/t/template-conditionals/23506)

<div class="topic-metadata">

**Author:** [@Horse\_Radish](https://forum.ansible.com/u/Horse_Radish)\
**Replies:** 4\
**Last updated:** [January 20, 2017, 4:22pm UTC](https://forum.ansible.com/t/template-conditionals/23506 "2017-01-20T16:22:48Z")

</div>

'Hope this is not a stupid question but … I have an existing inventory and playbook associated with it. The inventory has entries like this: \[s1\] host1 \[s2\] host2 ... \[foo:children\] s8 s9 The foo playbook has temp…

---

## [Ansible script work with array](https://forum.ansible.com/t/ansible-script-work-with-array/23516)

<div class="topic-metadata">

**Author:** [@Stepan\_Harutyunyan](https://forum.ansible.com/u/Stepan_Harutyunyan)\
**Replies:** 15\
**Last updated:** [January 20, 2017, 4:19pm UTC](https://forum.ansible.com/t/ansible-script-work-with-array/23516 "2017-01-20T16:19:12Z")

</div>

Hi Everyone, Hear is some part of my ansible code, I want to take contactId from Json array when contactAccount is someemail2@somedomain.com, but my script’s this part “{{array.{{item}}.contactId}}” doesn’t work. Could …

---

## [combining vars facts and other data](https://forum.ansible.com/t/combining-vars-facts-and-other-data/23512)

<div class="topic-metadata">

**Author:** [@Greg\_Fitzgerald](https://forum.ansible.com/u/Greg_Fitzgerald)\
**Replies:** 2\
**Last updated:** [January 20, 2017, 4:06pm UTC](https://forum.ansible.com/t/combining-vars-facts-and-other-data/23512 "2017-01-20T16:06:45Z")

</div>

Hi, I'm coming from chef, and in chef land we do a lot of fancy things in our attributes files. For example in one of my cookbooks I do this. node.default\['ts3'\]\['arch'\] = node\['kernel'\]\['machine'\] =~ /x86\_64/ ? "am…

---

## [How does filter of setuo module (facts) run ?](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513)

<div class="topic-metadata">

**Author:** [@web.cvcc](https://forum.ansible.com/u/web.cvcc)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 3:44pm UTC](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513 "2017-01-20T15:44:03Z")

</div>

Hi all I have a poor performance environement and running setup on it get a lot of time. I know i can disable gathering fact with gather\_facts: False I’m trying this and it’s work fine

---

## [Newlines are escaped when using jinja2 filters in playbook](https://forum.ansible.com/t/newlines-are-escaped-when-using-jinja2-filters-in-playbook/23488)

<div class="topic-metadata">

**Author:** [@Fredrik\_Rambris](https://forum.ansible.com/u/Fredrik_Rambris)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 2:25pm UTC](https://forum.ansible.com/t/newlines-are-escaped-when-using-jinja2-filters-in-playbook/23488 "2017-01-20T14:25:59Z")

</div>

I’m trying to get around the issue with authorized\_keys not having support for exclusive and with\_items. I have a list of keys I want to populate an authorized\_keys file and have ansible remove all others that may be in …

---

## [Nested conditional loop](https://forum.ansible.com/t/nested-conditional-loop/23432)

<div class="topic-metadata">

**Author:** [@Miguel\_David](https://forum.ansible.com/u/Miguel_David)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:53pm UTC](https://forum.ansible.com/t/nested-conditional-loop/23432 "2017-01-20T13:53:15Z")

</div>

Hi all, I have a dictionary on my site\_vars.yml something like this: services: name: “service1” … foo: “bar” The playbook calls the role: name: Configure backend hosts: backend gather\_facts: true become: yes …

---

## [Ansible control via Windows Subsystem for Linux: still "not a goal"?](https://forum.ansible.com/t/ansible-control-via-windows-subsystem-for-linux-still-not-a-goal/23371)

<div class="topic-metadata">

**Author:** [@Rich\_Fletcher](https://forum.ansible.com/u/Rich_Fletcher)\
**Replies:** 4\
**Last updated:** [January 20, 2017, 1:49pm UTC](https://forum.ansible.com/t/ansible-control-via-windows-subsystem-for-linux-still-not-a-goal/23371 "2017-01-20T13:49:43Z")

</div>

Windows control machine support has long been explicitly declared as not a goal for the project: http://docs.ansible.com/ansible/intro\_windows.html#reminder-you-must-have-a-linux-control-machine If I recall, this state…

---

## [How setup filter  of gathering fact work ?](https://forum.ansible.com/t/how-setup-filter-of-gathering-fact-work/23514)

<div class="topic-metadata">

**Author:** [@web.cvcc](https://forum.ansible.com/u/web.cvcc)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:15pm UTC](https://forum.ansible.com/t/how-setup-filter-of-gathering-fact-work/23514 "2017-01-20T13:15:12Z")

</div>

Hi all I have a poor performance environement and running setup on it get a lot of time. I know i can disable gathering fact with gather\_facts: False I’m trying this and it’s work fine

---

## [Issue with Firewall Role](https://forum.ansible.com/t/issue-with-firewall-role/23515)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 9:06am UTC](https://forum.ansible.com/t/issue-with-firewall-role/23515 "2017-01-20T09:06:18Z")

</div>

Hi there,

---

## [Getting Error while executing Commands having space in command module and shell module](https://forum.ansible.com/t/getting-error-while-executing-commands-having-space-in-command-module-and-shell-module/23474)

<div class="topic-metadata">

**Author:** [@sgampawa](https://forum.ansible.com/u/sgampawa)\
**Replies:** 11\
**Last updated:** [January 20, 2017, 8:34am UTC](https://forum.ansible.com/t/getting-error-while-executing-commands-having-space-in-command-module-and-shell-module/23474 "2017-01-20T08:34:45Z")

</div>

Hi, I am using ansible 2.2 to automate login to the remote machine and running onos on it.For that I have written a simple playbook as shown below playbook.yml

---

## [apt module behavior](https://forum.ansible.com/t/apt-module-behavior/23473)

<div class="topic-metadata">

**Author:** [@Igor\_Schaefer](https://forum.ansible.com/u/Igor_Schaefer)\
**Replies:** 4\
**Last updated:** [January 20, 2017, 3:36am UTC](https://forum.ansible.com/t/apt-module-behavior/23473 "2017-01-20T03:36:22Z")

</div>

Hello, colleagues Sure, all you know the situation, when you install a new version of package and you get a dialog window with warnings like “use existing version of config file or replace it with new one” or “that your…

---

## [ansible directives info](https://forum.ansible.com/t/ansible-directives-info/23501)

<div class="topic-metadata">

**Author:** [@SUJAN\_GIRI](https://forum.ansible.com/u/SUJAN_GIRI)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:35am UTC](https://forum.ansible.com/t/ansible-directives-info/23501 "2017-01-20T01:35:50Z")

</div>

I see that below link lists lots of directives that can be used. https://docs.ansible.com/ansible/playbooks\_directives.html Howerver, i am not able to find the example/explanation of these directives. Is there any doc…

---

## [Issue with Tags](https://forum.ansible.com/t/issue-with-tags/23509)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 1\
**Last updated:** [January 20, 2017, 1:34am UTC](https://forum.ansible.com/t/issue-with-tags/23509 "2017-01-20T01:34:28Z")

</div>

Here is ansible playbook, i given a tag and wanted to use it while i run the playbook, but it will still run the whole playbook \[ansible@centos1 ansible\_playbooks\]$ cat install\_plays.yml — # install software on multipl…

---

## [Cron module does not properly set SELinux context for user crontabs](https://forum.ansible.com/t/cron-module-does-not-properly-set-selinux-context-for-user-crontabs/23505)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 9:46pm UTC](https://forum.ansible.com/t/cron-module-does-not-properly-set-selinux-context-for-user-crontabs/23505 "2017-01-19T21:46:04Z")

</div>

I am having the same issue inserting crons into the root user’s crontab file according to this GitHub Issue I am using ansible 2.3.0 … so shouldn’t my version include the commit that fixed this issue? The exact error I…

---

## [playbook syntax](https://forum.ansible.com/t/playbook-syntax/23500)

<div class="topic-metadata">

**Author:** [@Alan\_Batie](https://forum.ansible.com/u/Alan_Batie)\
**Replies:** 5\
**Last updated:** [January 19, 2017, 9:17pm UTC](https://forum.ansible.com/t/playbook-syntax/23500 "2017-01-19T21:17:01Z")

</div>

I’m giving ansible a try, and it seems the examples aren’t quite right - using authorized\_keys as a starting point: http://docs.ansible.com/ansible/authorized\_key\_module.html cat e.yml name: Set authorized key took fr…

---

## [How to loop thru win\_updates until no updates left](https://forum.ansible.com/t/how-to-loop-thru-win-updates-until-no-updates-left/23356)

<div class="topic-metadata">

**Author:** [@autogun](https://forum.ansible.com/u/autogun)\
**Replies:** 16\
**Last updated:** [January 19, 2017, 8:00pm UTC](https://forum.ansible.com/t/how-to-loop-thru-win-updates-until-no-updates-left/23356 "2017-01-19T20:00:05Z")

</div>

Hi, I’m using win\_updates module to carry out windows patching and it works pretty good. Sometime, updates have dependencies and multiple playbook execution required. I was thinking, if possible, to loop the playbook …

---

## [Running Ansible Tower with Caddy web server](https://forum.ansible.com/t/running-ansible-tower-with-caddy-web-server/23502)

<div class="topic-metadata">

**Author:** [@Lars\_Bilke](https://forum.ansible.com/u/Lars_Bilke)\
**Replies:** 1\
**Last updated:** [January 19, 2017, 6:02pm UTC](https://forum.ansible.com/t/running-ansible-tower-with-caddy-web-server/23502 "2017-01-19T18:02:42Z")

</div>

Has somebody run Ansible Tower with Caddy web server and would like to share their Caddyfile? As Tower is a Python WSGI application I do not know how to connect the Caddy server to it. I want to use Caddy instead of the …

---

## [play\_hosts variable in a plugin](https://forum.ansible.com/t/play-hosts-variable-in-a-plugin/23504)

<div class="topic-metadata">

**Author:** [@Micoo](https://forum.ansible.com/u/Micoo)\
**Replies:** 0\
**Last updated:** [January 19, 2017, 4:56pm UTC](https://forum.ansible.com/t/play-hosts-variable-in-a-plugin/23504 "2017-01-19T16:56:16Z")

</div>

Hi Is there a way to get to the play\_hosts variable in v2\_playbook\_on\_start and v2\_playbook\_on\_play\_start callback? I went through various play’s attributes and methods and can’t seem to find it. Cheers, Michal

---

## [New FreeBSD install seems modules are not found](https://forum.ansible.com/t/new-freebsd-install-seems-modules-are-not-found/23493)

<div class="topic-metadata">

**Author:** [@Michael\_Wayne](https://forum.ansible.com/u/Michael_Wayne)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 4:20pm UTC](https://forum.ansible.com/t/new-freebsd-install-seems-modules-are-not-found/23493 "2017-01-19T16:20:07Z")

</div>

FreeBSD 11, binary install using pkg install. I can successfully do the initial commands: ansible all -m ping ansible all -a “/bin/echo hello” So I tried a playbook for the simplest thing I could think of, install a …

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

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