# Latest

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

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

**Page:** 739

---

## [Docker privileged containers](https://forum.ansible.com/t/docker-privileged-containers/16142)

<div class="topic-metadata">

**Author:** [@Abed\_Halawi](https://forum.ansible.com/u/Abed_Halawi)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 2:53pm UTC](https://forum.ansible.com/t/docker-privileged-containers/16142 "2016-08-01T14:53:31Z")

</div>

I am using a playbook task to run a docker containers, it’s running correctly except that it is not running with the --privileged option although I am choosing privileged=yes:

---

## [Essential improvements for LVM modules](https://forum.ansible.com/t/essential-improvements-for-lvm-modules/22140)

<div class="topic-metadata">

**Author:** [@Alexander\_Gordeev](https://forum.ansible.com/u/Alexander_Gordeev)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 2:46pm UTC](https://forum.ansible.com/t/essential-improvements-for-lvm-modules/22140 "2016-08-01T14:46:55Z")

</div>

Hi, So far, ansible-extra-modules includes only two modules system/lvol.py and system/lvg.py which are responsible for configuring logical volumes and volume groups respectively. There’s no module for working with phys…

---

## [How to detect whether the init system is systemd or not in a module?](https://forum.ansible.com/t/how-to-detect-whether-the-init-system-is-systemd-or-not-in-a-module/22172)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 2:41pm UTC](https://forum.ansible.com/t/how-to-detect-whether-the-init-system-is-systemd-or-not-in-a-module/22172 "2016-08-01T14:41:49Z")

</div>

Hi, In the hostname module http://docs.ansible.com/ansible/hostname\_module.html I'd like to detect whether the init system is systemd or not in a module. https://github.com/ansible/ansible-modules-core/issues/573#issu…

---

## [How do I use multiple ansible versions on the same machine for different playbooks that require specific versions?](https://forum.ansible.com/t/how-do-i-use-multiple-ansible-versions-on-the-same-machine-for-different-playbooks-that-require-specific-versions/20506)

<div class="topic-metadata">

**Author:** [@Philip\_Kirkland](https://forum.ansible.com/u/Philip_Kirkland)\
**Replies:** 6\
**Last updated:** [August 1, 2016, 1:38pm UTC](https://forum.ansible.com/t/how-do-i-use-multiple-ansible-versions-on-the-same-machine-for-different-playbooks-that-require-specific-versions/20506 "2016-08-01T13:38:20Z")

</div>

Hi all, Perhaps I’m approaching this the wrong way; I would appreciate some feedback. We have various playbooks that have been developed over a period of time. Due to the (sometimes) lack of backwards compatibility of …

---

## [working on playbook to check file exists](https://forum.ansible.com/t/working-on-playbook-to-check-file-exists/22156)

<div class="topic-metadata">

**Author:** [@venkat\_velpuri](https://forum.ansible.com/u/venkat_velpuri)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 1:34pm UTC](https://forum.ansible.com/t/working-on-playbook-to-check-file-exists/22156 "2016-08-01T13:34:55Z")

</div>

I am new to ansible getting error ansible-playbook -vvvv -i apphosts file.yml ERROR: parse error: playbooks must be formatted as a YAML list, got \<type ‘dict’\> tasks: name: Check that the somefile.conf exists stat…

---

## [Scalable Spark Clusters (RE: Matt, Do you want your weekends back?)](https://forum.ansible.com/t/scalable-spark-clusters-re-matt-do-you-want-your-weekends-back/22175)

<div class="topic-metadata">

**Author:** [@Matt\_Jude1](https://forum.ansible.com/u/Matt_Jude1)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 12:18pm UTC](https://forum.ansible.com/t/scalable-spark-clusters-re-matt-do-you-want-your-weekends-back/22175 "2016-08-01T12:18:49Z")

</div>

Good day, I wonder if you can possibly be able to assist me I am looking for a way to automate the newest versions of Apache Spark in Ansible Tower 3 - the objective is to eventually replace cloudera to handle the devil…

---

## [Ansible alternative to jq select](https://forum.ansible.com/t/ansible-alternative-to-jq-select/22179)

<div class="topic-metadata">

**Author:** [@kenjis15](https://forum.ansible.com/u/kenjis15)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 8:46am UTC](https://forum.ansible.com/t/ansible-alternative-to-jq-select/22179 "2016-08-01T08:46:42Z")

</div>

Hi, I have command like this which picks up an element from a list of AWS hosted zones if hosted zone named “testinternal” is found in the list. If it finds it, extracts Id filed from that element. aws route53 list-hos…

---

## [Why the process over after completing tasks in windows?](https://forum.ansible.com/t/why-the-process-over-after-completing-tasks-in-windows/22178)

<div class="topic-metadata">

**Author:** [@fcxjluo](https://forum.ansible.com/u/fcxjluo)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 8:42am UTC](https://forum.ansible.com/t/why-the-process-over-after-completing-tasks-in-windows/22178 "2016-08-01T08:42:07Z")

</div>

I use raw module ‘Start-Process -FilePath my.bat’ my.bat exec a process collect logs.But when the tasks over,the process will be also end.I believe the process can run no problem.

---

## [How to check if the current user has write access to a given path ?](https://forum.ansible.com/t/how-to-check-if-the-current-user-has-write-access-to-a-given-path/22143)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 6:13am UTC](https://forum.ansible.com/t/how-to-check-if-the-current-user-has-write-access-to-a-given-path/22143 "2016-08-01T06:13:17Z")

</div>

I am trying to check via Ansible that whether the user (being used to connect) has write access to a given path - both on linux hosts and windows hosts. I tried looking around but i could not get an easy way to do that.…

---

## [No epoch or seconds in windows facts ? How can i generate unique strings ?](https://forum.ansible.com/t/no-epoch-or-seconds-in-windows-facts-how-can-i-generate-unique-strings/22147)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 6:11am UTC](https://forum.ansible.com/t/no-epoch-or-seconds-in-windows-facts-how-can-i-generate-unique-strings/22147 "2016-08-01T06:11:59Z")

</div>

Here is a small part of windows facts: “ansible\_facts”: { “ansible\_architecture”: “64-bit”, “ansible\_date\_time”: { “date”: “13.07.2016”, “day”: “13”, “hour”: “06”, “iso8601”: “2016-07-13T06:34:29”, “minute”: “34”…

---

## [Support for adding security groups in AWS](https://forum.ansible.com/t/support-for-adding-security-groups-in-aws/22176)

<div class="topic-metadata">

**Author:** [@jduv](https://forum.ansible.com/u/jduv)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 4:24am UTC](https://forum.ansible.com/t/support-for-adding-security-groups-in-aws/22176 "2016-08-01T04:24:38Z")

</div>

Hi all, I’m considering either a new module or modifications to an existing module for assigning a security group to an AWS instance given a VPC. This looks like a bug that was filed quite a while ago: https://github.co…

---

## [Assigning variable from jinja template evaluation](https://forum.ansible.com/t/assigning-variable-from-jinja-template-evaluation/22173)

<div class="topic-metadata">

**Author:** [@a\_akin](https://forum.ansible.com/u/a_akin)\
**Replies:** 6\
**Last updated:** [August 1, 2016, 1:12am UTC](https://forum.ansible.com/t/assigning-variable-from-jinja-template-evaluation/22173 "2016-08-01T01:12:28Z")

</div>

I am hoping someone would be able to point out what I’m doing wrong here- I have a jinja template: {% if subnet == ‘subnet-ab1’ %} subnet1 {% elif subnet == "subnetab2’ %} subnet2 {% elif subnet == "subnetab3’ %} …

---

## [Convert Json to Yaml](https://forum.ansible.com/t/convert-json-to-yaml/22174)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 1\
**Last updated:** [July 31, 2016, 1:15pm UTC](https://forum.ansible.com/t/convert-json-to-yaml/22174 "2016-07-31T13:15:46Z")

</div>

Hi guys, I know this is a little of topic but it’s regarding unusable I have a curl command that i would like to translate in ansible but someway or somehow is not working. could anybody help me ? Here is the curl comma…

---

## [new module for ansible-modules-extras - chage](https://forum.ansible.com/t/new-module-for-ansible-modules-extras-chage/22171)

<div class="topic-metadata">

**Author:** [@John\_Buxton](https://forum.ansible.com/u/John_Buxton)\
**Replies:** 0\
**Last updated:** [July 30, 2016, 1:16pm UTC](https://forum.ansible.com/t/new-module-for-ansible-modules-extras-chage/22171 "2016-07-30T13:16:15Z")

</div>

Hello, I have a module which I would like to contribute to ansible-modules-extras. I would also be happy to play a role in supporting this module in the future. The Ansible community information page suggests it’s best…

---

## [Trouble Setting Directory Ownership On Ubuntu 14.04 Virtualbox](https://forum.ansible.com/t/trouble-setting-directory-ownership-on-ubuntu-14-04-virtualbox/22169)

<div class="topic-metadata">

**Author:** [@Kyle\_Willis](https://forum.ansible.com/u/Kyle_Willis)\
**Replies:** 0\
**Last updated:** [July 30, 2016, 12:23am UTC](https://forum.ansible.com/t/trouble-setting-directory-ownership-on-ubuntu-14-04-virtualbox/22169 "2016-07-30T00:23:41Z")

</div>

I am trying to define the ownership for a directory located in a Ubuntu 14.04 Virtual machine, which was created with vagrant and provisioned using Ansible. The approach I’m currently using results in no change to the di…

---

## [ERROR! 'ignore\_errrors' is not a valid attribute for a Task](https://forum.ansible.com/t/error-ignore-errrors-is-not-a-valid-attribute-for-a-task/22167)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 2\
**Last updated:** [July 29, 2016, 9:42pm UTC](https://forum.ansible.com/t/error-ignore-errrors-is-not-a-valid-attribute-for-a-task/22167 "2016-07-29T21:42:14Z")

</div>

Hello, I have a task that looks like this: \` We need to ignore errors because links won’t all be there. name: migrate group-owned staff files to new GIDs shell: “find /home/staff -gid {{item.0.gid}} -exec chgrp {{it…

---

## [Error while building docker image](https://forum.ansible.com/t/error-while-building-docker-image/19346)

<div class="topic-metadata">

**Author:** [@Darvin\_Denmian](https://forum.ansible.com/u/Darvin_Denmian)\
**Replies:** 2\
**Last updated:** [July 29, 2016, 8:24pm UTC](https://forum.ansible.com/t/error-while-building-docker-image/19346 "2016-07-29T20:24:18Z")

</div>

Hi guys, I’m facing a weird problem when trying to build a docker image, this is the basic workflow: I successfully build a docker image called “accounts-skeleton” … name: “Accounts: building Accounts Skeleton ima…

---

## [Ansible Contributor Summit (27 July) - Information and remote participation details](https://forum.ansible.com/t/ansible-contributor-summit-27-july-information-and-remote-participation-details/22094)

<div class="topic-metadata">

**Author:** [@Robyn\_Bergeron2](https://forum.ansible.com/u/Robyn_Bergeron2)\
**Replies:** 3\
**Last updated:** [July 29, 2016, 8:22pm UTC](https://forum.ansible.com/t/ansible-contributor-summit-27-july-information-and-remote-participation-details/22094 "2016-07-29T20:22:03Z")

</div>

Greetings! In case you haven’t heard: The Ansible Contributor Summit will be happening this coming Wednesday, 27 July, the day before AnsibleFest in San Francisco. Similar to our last Contributor Summit, we’ll be having…

---

## [Safe method to resize existing filesystem](https://forum.ansible.com/t/safe-method-to-resize-existing-filesystem/22153)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 2\
**Last updated:** [July 29, 2016, 7:56pm UTC](https://forum.ansible.com/t/safe-method-to-resize-existing-filesystem/22153 "2016-07-29T19:56:48Z")

</div>

I was looking at the filesystem module today, hoping to use it to resize a filesystem that is living in a logical volume. However, I am not sure how to use it safely so it doesn’t create a filesystem. Has anyone used the…

---

## [win\_msi not installig the msi package](https://forum.ansible.com/t/win-msi-not-installig-the-msi-package/22124)

<div class="topic-metadata">

**Author:** [@megha\_sharma](https://forum.ansible.com/u/megha_sharma)\
**Replies:** 3\
**Last updated:** [July 29, 2016, 4:20pm UTC](https://forum.ansible.com/t/win-msi-not-installig-the-msi-package/22124 "2016-07-29T16:20:59Z")

</div>

Hi, I am using Ansible 2.1.0.0 and trying to run the below playbook name: Install 7 zip win\_msi: extra\_args: “/quiet” path: ‘C:\\path\\7z1602-x64.msi’ state: present Output: TASK \[Install 7 zip\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Missed hosts on playbook run](https://forum.ansible.com/t/missed-hosts-on-playbook-run/22163)

<div class="topic-metadata">

**Author:** [@Bill\_Carlson](https://forum.ansible.com/u/Bill_Carlson)\
**Replies:** 0\
**Last updated:** [July 29, 2016, 2:39pm UTC](https://forum.ansible.com/t/missed-hosts-on-playbook-run/22163 "2016-07-29T14:39:58Z")

</div>

Hello all, Currently running v2.1.0, have noted several times where hosts are missing in a playbook run. No failure, no error for those hosts, no mention at all. It’s also random which hosts get missed. One common ite…

---

## [Issue while running ansible-playbook.](https://forum.ansible.com/t/issue-while-running-ansible-playbook/22133)

<div class="topic-metadata">

**Author:** [@navdeep\_uniyal](https://forum.ansible.com/u/navdeep_uniyal)\
**Replies:** 1\
**Last updated:** [July 29, 2016, 11:40am UTC](https://forum.ansible.com/t/issue-while-running-ansible-playbook/22133 "2016-07-29T11:40:02Z")

</div>

I am very new to ansible and have been trying to deploy a VM on openstack testbed using ansible. I am getting the error: “fatal: \[localhost\]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “python-novaclient is req…

---

## [ansible azure module - attach disk or resize vhd (Linux)](https://forum.ansible.com/t/ansible-azure-module-attach-disk-or-resize-vhd-linux/22161)

<div class="topic-metadata">

**Author:** [@nilgun\_celik](https://forum.ansible.com/u/nilgun_celik)\
**Replies:** 0\
**Last updated:** [July 29, 2016, 8:06am UTC](https://forum.ansible.com/t/ansible-azure-module-attach-disk-or-resize-vhd-linux/22161 "2016-07-29T08:06:09Z")

</div>

Hi there, I have been trying to expand the default 30GB image size for Ubuntu 14.04 image on Azure store. Normally I attach a secondary data disk to my vm instance and mount it afterwards. Another option would be to r…

---

## [run command on several nodes, but run another command on first node](https://forum.ansible.com/t/run-command-on-several-nodes-but-run-another-command-on-first-node/22152)

<div class="topic-metadata">

**Author:** [@kfrydrys\_ILIM](https://forum.ansible.com/u/kfrydrys_ILIM)\
**Replies:** 1\
**Last updated:** [July 29, 2016, 7:59am UTC](https://forum.ansible.com/t/run-command-on-several-nodes-but-run-another-command-on-first-node/22152 "2016-07-29T07:59:24Z")

</div>

Hi, I want to use ansible to start MariaDB/GaleraCluster I need to run /usr/bin/mysqld\_safe --wsrep-new-cluster & on the one of the nodes first (there is no important it node1, or node4). next I want to run sys…

---

## [Change exit code of ansible-playbook if there are any changes](https://forum.ansible.com/t/change-exit-code-of-ansible-playbook-if-there-are-any-changes/22145)

<div class="topic-metadata">

**Author:** [@Lukasz\_Gorski](https://forum.ansible.com/u/Lukasz_Gorski)\
**Replies:** 2\
**Last updated:** [July 29, 2016, 7:26am UTC](https://forum.ansible.com/t/change-exit-code-of-ansible-playbook-if-there-are-any-changes/22145 "2016-07-29T07:26:36Z")

</div>

Hi, is there any sensible option to make ansible-playbook exit with non-0 exit code if there are any changes to be made to target hosts? The rationale for this is: we want to start using Jenkins to test if our producti…

---

## [Make sure your variable name does not contain invalid characters like '-'](https://forum.ansible.com/t/make-sure-your-variable-name-does-not-contain-invalid-characters-like/22160)

<div class="topic-metadata">

**Author:** [@Omkar\_Jadhav](https://forum.ansible.com/u/Omkar_Jadhav)\
**Replies:** 0\
**Last updated:** [July 29, 2016, 6:36am UTC](https://forum.ansible.com/t/make-sure-your-variable-name-does-not-contain-invalid-characters-like/22160 "2016-07-29T06:36:13Z")

</div>

Hi, I am using ansible version 2.1.0.0 and part of my code is : \` shell: /etc/init.d/named restart when: (‘FAILED’ not in zoneconfig.stdout) and (‘neither’ not in zoneconfig.stdout) and (‘FAILED’ not in echofail.st…

---

## [Ansible paybook error : Make sure your variable name does not contain invalid characters like '-'](https://forum.ansible.com/t/ansible-paybook-error-make-sure-your-variable-name-does-not-contain-invalid-characters-like/22159)

<div class="topic-metadata">

**Author:** [@Omkar\_Jadhav](https://forum.ansible.com/u/Omkar_Jadhav)\
**Replies:** 0\
**Last updated:** [July 29, 2016, 6:03am UTC](https://forum.ansible.com/t/ansible-paybook-error-make-sure-your-variable-name-does-not-contain-invalid-characters-like/22159 "2016-07-29T06:03:16Z")

</div>

HI, I am using Ansible - 2.1.0.0. part of my code is as below \` shell: /etc/init.d/named restart when: (‘FAILED’ not in zoneconfig.stdout) and (‘neither’ not in zoneconfig.stdout) and (‘FAILED’ not in echofail.stdo…

---

## [modules apt: only\_upgrade fail](https://forum.ansible.com/t/modules-apt-only-upgrade-fail/22071)

<div class="topic-metadata">

**Author:** [@richard934935](https://forum.ansible.com/u/richard934935)\
**Replies:** 7\
**Last updated:** [July 29, 2016, 2:40am UTC](https://forum.ansible.com/t/modules-apt-only-upgrade-fail/22071 "2016-07-29T02:40:14Z")

</div>

Hello, Having either apt: only\_upgrade=docker-engine in my playbook or running it on the command line as ansible all --sudo -m apt -a ‘only\_upgrade=docker-engine’ fails with xx.xxx.xx.xxx | FAILED! =\> { "changed": fals…

---

## [how to compare two dates (possibly in different format) in jinja2 templates ?](https://forum.ansible.com/t/how-to-compare-two-dates-possibly-in-different-format-in-jinja2-templates/22155)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [July 28, 2016, 6:23pm UTC](https://forum.ansible.com/t/how-to-compare-two-dates-possibly-in-different-format-in-jinja2-templates/22155 "2016-07-28T18:23:34Z")

</div>

I am writing a template in which the warning output is generated if the winRM certificate of target windows host is going to expire in 1 month. I just don’t see a way how can i compare two dates in jinja2 template. I ha…

---

## [Ansible 2.1.1.0-1 FINAL has been released!](https://forum.ansible.com/t/ansible-2-1-1-0-1-final-has-been-released/22154)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [July 28, 2016, 6:22pm UTC](https://forum.ansible.com/t/ansible-2-1-1-0-1-final-has-been-released/22154 "2016-07-28T18:22:01Z")

</div>

Hi all, we’re very happy to announce that Ansible 2.1.1 has been released! This release fixes many bugs, summarized here from previous RC emails: Fixed some bugs in variable dependency resolution. These were mainly re…

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

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