# Archives

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

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

**Page:** 575

---

## [acl module - Does it work for nfs4 acls?](https://forum.ansible.com/t/acl-module-does-it-work-for-nfs4-acls/21952)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [July 7, 2016, 7:29pm UTC](https://forum.ansible.com/t/acl-module-does-it-work-for-nfs4-acls/21952 "2016-07-07T19:29:44Z")

</div>

I am new to NFSv4, but I have it mostly working with my IPA (kerberized) domain. I just noticed that my nfs clients are not picking up the ACLs from the NFS server, that I set with the ACL Ansible module. So, I suspect t…

---

## [can't get embedded quotes to work in replace string of lineinfile](https://forum.ansible.com/t/cant-get-embedded-quotes-to-work-in-replace-string-of-lineinfile/21944)

<div class="topic-metadata">

**Author:** [@Leo\_P](https://forum.ansible.com/u/Leo_P)\
**Replies:** 1\
**Last updated:** [July 7, 2016, 5:46pm UTC](https://forum.ansible.com/t/cant-get-embedded-quotes-to-work-in-replace-string-of-lineinfile/21944 "2016-07-07T17:46:20Z")

</div>

I have tried escaping characters but it didn’t seem to make any difference. According to the documentation I’ve seen, this should work: \` name: Change keyboard layout to U.S. lineinfile: dest=/etc/default/keyboard r…

---

## [Synchronize command not working when upgraded to Ansible 2.1.0](https://forum.ansible.com/t/synchronize-command-not-working-when-upgraded-to-ansible-2-1-0/21922)

<div class="topic-metadata">

**Author:** [@Michael\_Lennon](https://forum.ansible.com/u/Michael_Lennon)\
**Replies:** 2\
**Last updated:** [July 7, 2016, 5:41pm UTC](https://forum.ansible.com/t/synchronize-command-not-working-when-upgraded-to-ansible-2-1-0/21922 "2016-07-07T17:41:11Z")

</div>

Hi, We were recently upgraded to Ansible 2.1.0, from 1.9.4 (I think). Now have an issue with any playbooks that make use of the synchronize module. I have a a test playbook that simply copies a text file from Host A to …

---

## [Jboss ansible module](https://forum.ansible.com/t/jboss-ansible-module/21945)

<div class="topic-metadata">

**Author:** [@Arun\_Mathew](https://forum.ansible.com/u/Arun_Mathew)\
**Replies:** 1\
**Last updated:** [July 7, 2016, 5:37pm UTC](https://forum.ansible.com/t/jboss-ansible-module/21945 "2016-07-07T17:37:52Z")

</div>

Can jboss ansible module be used for deploying to wildfy?

---

## [iptables\_raw Module - Manage Iptables the Easy Way](https://forum.ansible.com/t/iptables-raw-module-manage-iptables-the-easy-way/21948)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic1](https://forum.ansible.com/u/Strahinja_Kustudic1)\
**Replies:** 2\
**Last updated:** [July 7, 2016, 4:32pm UTC](https://forum.ansible.com/t/iptables-raw-module-manage-iptables-the-easy-way/21948 "2016-07-07T16:32:13Z")

</div>

We wrote a new module called iptables\_raw (docs) to make it easy to manage iptables. The module has the following features: use iptables syntax to define rules keep iptables state order rules by weigh support…

---

## [Invitation to the Second Ansible Contributor Summit](https://forum.ansible.com/t/invitation-to-the-second-ansible-contributor-summit/21950)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 2:48pm UTC](https://forum.ansible.com/t/invitation-to-the-second-ansible-contributor-summit/21950 "2016-07-07T14:48:41Z")

</div>

We will be holding our second Ansible Contributor Summit on the day before AnsibleFest San Francisco (https://www.ansible.com/ansiblefest), and you are invited to participate! The Summit will take place at 335 Powell …

---

## [How to use display.vvv in an Ansible module?](https://forum.ansible.com/t/how-to-use-display-vvv-in-an-ansible-module/21732)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 3\
**Last updated:** [July 7, 2016, 12:40pm UTC](https://forum.ansible.com/t/how-to-use-display-vvv-in-an-ansible-module/21732 "2016-07-07T12:40:15Z")

</div>

Hi all, I'm creating the lxd\_container module and would like to use display.vvv for debug prints. https://github.com/ansible/ansible-modules-extras/pull/2208 I copied code in some module, but nothing was printed. Co…

---

## [Output var values to screen](https://forum.ansible.com/t/output-var-values-to-screen/21938)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 1\
**Last updated:** [July 7, 2016, 8:47am UTC](https://forum.ansible.com/t/output-var-values-to-screen/21938 "2016-07-07T08:47:16Z")

</div>

Control Node: CentOS 7 Ansible 2.1 pywinrm version from May 19th, 2016 Remote Node: Windows 7 Powershell 3 How do I display the values of my vars to the person running my playbook?

---

## [\--check (dry run) fires notify handlers](https://forum.ansible.com/t/check-dry-run-fires-notify-handlers/21947)

<div class="topic-metadata">

**Author:** [@ja.garcia.ballester](https://forum.ansible.com/u/ja.garcia.ballester)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 8:45am UTC](https://forum.ansible.com/t/check-dry-run-fires-notify-handlers/21947 "2016-07-07T08:45:20Z")

</div>

Hi, I am runnig a playbook in check mode (–check --diff) to verify which changes are going to be applied in a service config file. The problem is that the dry run thinks the change is applied and fires the notify handl…

---

## [Passing values in a file](https://forum.ansible.com/t/passing-values-in-a-file/21905)

<div class="topic-metadata">

**Author:** [@Rakshatha\_shetty1](https://forum.ansible.com/u/Rakshatha_shetty1)\
**Replies:** 5\
**Last updated:** [July 7, 2016, 6:22am UTC](https://forum.ansible.com/t/passing-values-in-a-file/21905 "2016-07-07T06:22:49Z")

</div>

Hi, I’m using Ansible 2.0.0.2 to create multiple directories by passing path to directories in a file and reading the values from file. How can multiple values be passed in a single file? Please revert with the format i…

---

## [Strange behavior of Jinja2 expression for same input vars](https://forum.ansible.com/t/strange-behavior-of-jinja2-expression-for-same-input-vars/21930)

<div class="topic-metadata">

**Author:** [@cosbug](https://forum.ansible.com/u/cosbug)\
**Replies:** 4\
**Last updated:** [July 7, 2016, 5:37am UTC](https://forum.ansible.com/t/strange-behavior-of-jinja2-expression-for-same-input-vars/21930 "2016-07-07T05:37:28Z")

</div>

Hi All, I’m using a Jinja2 expression to exclude form one list the elements present in another list but it doesn’t work as expected. Here is an extract from a larger playbook which captures the input and out put before…

---

## [django\_manage problem](https://forum.ansible.com/t/django-manage-problem/21943)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 5:28am UTC](https://forum.ansible.com/t/django-manage-problem/21943 "2016-07-07T05:28:23Z")

</div>

I need to run python manage.py migrate in an activated virtualenv I used the django\_manage module specifying the virtual env but it gives the same error as when I run migrate without activating, at the command line. Is…

---

## [What has changed in terms of sudo in Ansible 2.1](https://forum.ansible.com/t/what-has-changed-in-terms-of-sudo-in-ansible-2-1/21942)

<div class="topic-metadata">

**Author:** [@Sebin](https://forum.ansible.com/u/Sebin)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 12:24am UTC](https://forum.ansible.com/t/what-has-changed-in-terms-of-sudo-in-ansible-2-1/21942 "2016-07-07T00:24:36Z")

</div>

Hi All, I have recently switched to Ansible 2.1 from Ansible 2.0 Surprisingly in one of my environments the playbooks and ad-hoc commands do not run when executed with sudo. is there any way I can debug this to find o…

---

## [Execute role tasks before executing role dependencies](https://forum.ansible.com/t/execute-role-tasks-before-executing-role-dependencies/21941)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 10:33pm UTC](https://forum.ansible.com/t/execute-role-tasks-before-executing-role-dependencies/21941 "2016-07-06T22:33:41Z")

</div>

Hi, is there a way for executing role tasks before executing role dependencies? In my apache\_httpd role I want to deploy some configuration files before calling the sub role docker\_application. Latter will do some boile…

---

## [Unable to look up dict by key if the dict key contains a variable](https://forum.ansible.com/t/unable-to-look-up-dict-by-key-if-the-dict-key-contains-a-variable/21940)

<div class="topic-metadata">

**Author:** [@Aneesh\_Joseph](https://forum.ansible.com/u/Aneesh_Joseph)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 9:38pm UTC](https://forum.ansible.com/t/unable-to-look-up-dict-by-key-if-the-dict-key-contains-a-variable/21940 "2016-07-06T21:38:29Z")

</div>

vars.yml \`

---

## [role meta/main.yml dependency with source control repository url, automatically pulled](https://forum.ansible.com/t/role-meta-main-yml-dependency-with-source-control-repository-url-automatically-pulled/21939)

<div class="topic-metadata">

**Author:** [@Brian\_I](https://forum.ansible.com/u/Brian_I)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 9:24pm UTC](https://forum.ansible.com/t/role-meta-main-yml-dependency-with-source-control-repository-url-automatically-pulled/21939 "2016-07-06T21:24:45Z")

</div>

Using ansible 2.1.0.0 I’d like to have a role that lists private source control repositories like this in the meta/main.yml: dependencies: src: ‘git+git@mygitlab.example.com:/anisble/myrole.git,v1.0.0’ Is this possi…

---

## [shell module find -exec chown - how to parse/escape {} \\; ?](https://forum.ansible.com/t/shell-module-find-exec-chown-how-to-parse-escape/21936)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [July 6, 2016, 6:25pm UTC](https://forum.ansible.com/t/shell-module-find-exec-chown-how-to-parse-escape/21936 "2016-07-06T18:25:55Z")

</div>

I want to find and chown about 4000 users’ files while migrating to a new authentication protocol and domain. I have a task that looks like this: \` name: find and fix UID ownerships in all staff homedirs shell: “fin…

---

## [Ansible AWS "Cloud-Control" Modules: Clarification](https://forum.ansible.com/t/ansible-aws-cloud-control-modules-clarification/21937)

<div class="topic-metadata">

**Author:** [@Robert\_Glenn](https://forum.ansible.com/u/Robert_Glenn)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 5:06pm UTC](https://forum.ansible.com/t/ansible-aws-cloud-control-modules-clarification/21937 "2016-07-06T17:06:43Z")

</div>

Whereas classically ansible will execute tasks in its host loop against multiple remote machines, most cloud-control steps occur on your local machine with reference to the regions to control. Some of the AWS module…

---

## [Do lists and dicts keep the same order for every task?](https://forum.ansible.com/t/do-lists-and-dicts-keep-the-same-order-for-every-task/21935)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 4:38pm UTC](https://forum.ansible.com/t/do-lists-and-dicts-keep-the-same-order-for-every-task/21935 "2016-07-06T16:38:07Z")

</div>

I am curious whether lists and dicts maintain their order when used in different tasks. I want to make sure I don’t accidentally scramble my user/group data as I migrate.

---

## [Ansible 2.1 - Dynamic vars\_files and "skipping vars\_file" output messages with -vvv](https://forum.ansible.com/t/ansible-2-1-dynamic-vars-files-and-skipping-vars-file-output-messages-with-vvv/21934)

<div class="topic-metadata">

**Author:** [@Chris\_DiGiovanni](https://forum.ansible.com/u/Chris_DiGiovanni)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 3:39pm UTC](https://forum.ansible.com/t/ansible-2-1-dynamic-vars-files-and-skipping-vars-file-output-messages-with-vvv/21934 "2016-07-06T15:39:49Z")

</div>

Hello, While trying to move over to Ansible 2.1 from 1.9.2, I’ve noticed Ansible having a lot of output about skipping vars\_file when I pass “-vvv” to ansible-playbook. I’m including 3 vars\_file(s) using variable substi…

---

## [Execute tasks on multiple hosts in parallel which fall under different group](https://forum.ansible.com/t/execute-tasks-on-multiple-hosts-in-parallel-which-fall-under-different-group/21932)

<div class="topic-metadata">

**Author:** [@Shwetha\_Hadimani](https://forum.ansible.com/u/Shwetha_Hadimani)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 1:29pm UTC](https://forum.ansible.com/t/execute-tasks-on-multiple-hosts-in-parallel-which-fall-under-different-group/21932 "2016-07-06T13:29:55Z")

</div>

Hi, I want to execute tasks on multiple hosts in parallel which fall under different group. I have a host file which looks like below, \[groupa\] 10.0.1.29 \[groupb\] 10.0.1.45 \[groupc\] 10.0.1.56 My playbook looks li…

---

## [Is it possible to get the child groups of a given group in an expression](https://forum.ansible.com/t/is-it-possible-to-get-the-child-groups-of-a-given-group-in-an-expression/21931)

<div class="topic-metadata">

**Author:** [@Mark\_Davis](https://forum.ansible.com/u/Mark_Davis)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 10:02am UTC](https://forum.ansible.com/t/is-it-possible-to-get-the-child-groups-of-a-given-group-in-an-expression/21931 "2016-07-06T10:02:40Z")

</div>

From a quick look at https://github.com/ansible/ansible/blob/devel/lib/ansible/inventory/group.py I think the answer is “no” as child\_groups doesn’t have a getter, but just in case… Is it possible to get the list of chi…

---

## [how to convert an inventory file/directory into json format?](https://forum.ansible.com/t/how-to-convert-an-inventory-file-directory-into-json-format/21929)

<div class="topic-metadata">

**Author:** [@Aneesh\_Joseph](https://forum.ansible.com/u/Aneesh_Joseph)\
**Replies:** 0\
**Last updated:** [July 6, 2016, 3:19am UTC](https://forum.ansible.com/t/how-to-convert-an-inventory-file-directory-into-json-format/21929 "2016-07-06T03:19:30Z")

</div>

Hi all, Is there a quick clean way to convert an inventory file/directory into json format which can then be fed in as a dynamic inventory (with some tweaks to the json) Thanks, Aneesh

---

## [Failure talking to yum: Can not create index on requires table: disk I/O error](https://forum.ansible.com/t/failure-talking-to-yum-can-not-create-index-on-requires-table-disk-i-o-error/20646)

<div class="topic-metadata">

**Author:** [@nsrea408](https://forum.ansible.com/u/nsrea408)\
**Replies:** 1\
**Last updated:** [July 6, 2016, 1:53am UTC](https://forum.ansible.com/t/failure-talking-to-yum-can-not-create-index-on-requires-table-disk-i-o-error/20646 "2016-07-06T01:53:53Z")

</div>

Hello there amazing ansible community, We’re using the latest Amazon Linux AMIs with ansible 2.0.0.2 and are getting following errors intermittently: TASK \[APPNAME\_HERE : Install Development tools for gem extensions\] \*…

---

## [Error Creating Azure Security Group](https://forum.ansible.com/t/error-creating-azure-security-group/21909)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 2\
**Last updated:** [July 5, 2016, 11:46pm UTC](https://forum.ansible.com/t/error-creating-azure-security-group/21909 "2016-07-05T23:46:56Z")

</div>

When I do the following in my playbook: name: Create CSR Security Group azure\_rm\_securitygroup: resource\_group: ‘{{ resource\_group }}’ name: csr\_security\_group purge\_rules: yes rules: name: AllowSSH protocol: Tcp …

---

## [Windows Task in a role for Linux hosts?  How?](https://forum.ansible.com/t/windows-task-in-a-role-for-linux-hosts-how/21920)

<div class="topic-metadata">

**Author:** [@Niels\_Jensen](https://forum.ansible.com/u/Niels_Jensen)\
**Replies:** 2\
**Last updated:** [July 5, 2016, 10:00pm UTC](https://forum.ansible.com/t/windows-task-in-a-role-for-linux-hosts-how/21920 "2016-07-05T22:00:05Z")

</div>

Hi, I’ve put together a role that configures a number of defined proxy\_hosts in nginx. The playbook that calls this role is assigned to \[nginx\_proxy\] in my inventory file that currently contains 3 x linux hosts. The ro…

---

## [Create DNS record from remote machine](https://forum.ansible.com/t/create-dns-record-from-remote-machine/21926)

<div class="topic-metadata">

**Author:** [@Alvaro\_Gil](https://forum.ansible.com/u/Alvaro_Gil)\
**Replies:** 1\
**Last updated:** [July 5, 2016, 9:56pm UTC](https://forum.ansible.com/t/create-dns-record-from-remote-machine/21926 "2016-07-05T21:56:41Z")

</div>

I am very new to Ansible so perhaps some concepts are still not clear to me. I have a set of roles and playbooks working correctly to create ec2 instances, provision them and deploy. I am looking for create DNS records…

---

## [Error in win\_share](https://forum.ansible.com/t/error-in-win-share/21923)

<div class="topic-metadata">

**Author:** [@megha\_sharma](https://forum.ansible.com/u/megha_sharma)\
**Replies:** 2\
**Last updated:** [July 5, 2016, 9:47pm UTC](https://forum.ansible.com/t/error-in-win-share/21923 "2016-07-05T21:47:29Z")

</div>

name: Windows Sharing hosts: newserver tasks: name: Add secret share win\_share: name: internal description: top secret share path: D:\\10 year list: ‘no’ full: Administrators read: Users Trying to run the above…

---

## [Ansible + Vagrant question please](https://forum.ansible.com/t/ansible-vagrant-question-please/21894)

<div class="topic-metadata">

**Author:** [@Sargon](https://forum.ansible.com/u/Sargon)\
**Replies:** 2\
**Last updated:** [July 5, 2016, 8:25pm UTC](https://forum.ansible.com/t/ansible-vagrant-question-please/21894 "2016-07-05T20:25:37Z")

</div>

I want to create a Virtualbox VM and provision it. Now I can run: vagrant init bento/centos-6.7; vagrant up --provider virtualbox And it's there. I can put this command as a local command in Ansible, but I gather the…

---

## [delete last blank line in the file](https://forum.ansible.com/t/delete-last-blank-line-in-the-file/21928)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 8:25pm UTC](https://forum.ansible.com/t/delete-last-blank-line-in-the-file/21928 "2016-07-05T20:25:24Z")

</div>

Can someone suggest an ansible regex that deletes the last blank line in a file, if it is blank. TIA

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

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