# Latest

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

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

**Page:** 764

---

## [Template replacement](https://forum.ansible.com/t/template-replacement/21428)

<div class="topic-metadata">

**Author:** [@Pushparaj\_BS](https://forum.ansible.com/u/Pushparaj_BS)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 8:21pm UTC](https://forum.ansible.com/t/template-replacement/21428 "2016-05-13T20:21:59Z")

</div>

Have a template which updates the host name of an webserver configuration file . I'm good here , the host gets updated properly. I use the template src tag to do this. After this task ,the deployment task runs for the …

---

## [Enabling firewalld kills ansible 2.0.2.0](https://forum.ansible.com/t/enabling-firewalld-kills-ansible-2-0-2-0/21424)

<div class="topic-metadata">

**Author:** [@Dejay\_Clayton](https://forum.ansible.com/u/Dejay_Clayton)\
**Replies:** 3\
**Last updated:** [May 13, 2016, 6:44pm UTC](https://forum.ansible.com/t/enabling-firewalld-kills-ansible-2-0-2-0/21424 "2016-05-13T18:44:56Z")

</div>

I’ve recently started running into a problem that I didn’t have before I upgraded from ansible 2.0.1.0 to 2.0.2.0. I don’t conclusively know whether the upgrade itself is responsible for the new behavior I’m seeing. Whe…

---

## [Ansible Retry Color](https://forum.ansible.com/t/ansible-retry-color/21426)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 6\
**Last updated:** [May 13, 2016, 6:03pm UTC](https://forum.ansible.com/t/ansible-retry-color/21426 "2016-05-13T18:03:53Z")

</div>

It looks like when you use retry it uses a black font. On a black terminal you can barely see it. Anyway to change the color?

---

## [Ansible iterate a dictionary with lists and templates](https://forum.ansible.com/t/ansible-iterate-a-dictionary-with-lists-and-templates/21433)

<div class="topic-metadata">

**Author:** [@swen.b](https://forum.ansible.com/u/swen.b)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 3:38pm UTC](https://forum.ansible.com/t/ansible-iterate-a-dictionary-with-lists-and-templates/21433 "2016-05-13T15:38:02Z")

</div>

Hi, my goal is to use multiple dictionaries within a template. I want one file per username with all projects in it of this user. My playbook looks like: - name: create files template: src=vhost.conf.j2 dest=/tmp/{{ …

---

## [semanage fcontext in ansible?](https://forum.ansible.com/t/semanage-fcontext-in-ansible/16688)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:45pm UTC](https://forum.ansible.com/t/semanage-fcontext-in-ansible/16688 "2016-05-13T14:45:28Z")

</div>

Hi, I’ve got a playbook that needs to set some SELinux labels etc. And I’ve come up with two questions: So far I’ve used direct invocation of "semanage fcontext -a -t logwatch\_cache\_t “/var/lib/logwatch(/.\*)?”. I have…

---

## [Using bare variables is deprecated](https://forum.ansible.com/t/using-bare-variables-is-deprecated/21432)

<div class="topic-metadata">

**Author:** [@Noam\_Greenberg](https://forum.ansible.com/u/Noam_Greenberg)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 1:50pm UTC](https://forum.ansible.com/t/using-bare-variables-is-deprecated/21432 "2016-05-13T13:50:15Z")

</div>

Hi i try do run my play and i get this “Using bare variables is deprecated” and its work but … not for long name: Gather facts action: ec2\_facts register: ec2\_facts tags: test name: Add tag to instances become…

---

## [Execution of shell module is giving  "msg": "MODULE FAILURE", "parsed": false](https://forum.ansible.com/t/execution-of-shell-module-is-giving-msg-module-failure-parsed-false/21406)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 1\
**Last updated:** [May 13, 2016, 10:48am UTC](https://forum.ansible.com/t/execution-of-shell-module-is-giving-msg-module-failure-parsed-false/21406 "2016-05-13T10:48:55Z")

</div>

Hi I am trying to run a setup file on linux machine from shell command and also by creating a custom python module to run the setup file. When it is run, it is failing with this error: {“changed”: false, “failed”: tru…

---

## [getting error while removing volume group using anisble playbook](https://forum.ansible.com/t/getting-error-while-removing-volume-group-using-anisble-playbook/21431)

<div class="topic-metadata">

**Author:** [@Kishore\_Devkate](https://forum.ansible.com/u/Kishore_Devkate)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 7:25am UTC](https://forum.ansible.com/t/getting-error-while-removing-volume-group-using-anisble-playbook/21431 "2016-05-13T07:25:25Z")

</div>

Hi Friends, someone please help me in below issue. \[root@swift own-create-ymal\]# ansible-playbook lvm-remove.yaml PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[setup\] \*\*\*\*\*\*\*\*…

---

## [Device doesn’t support Python](https://forum.ansible.com/t/device-doesn-t-support-python/21430)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 6:42am UTC](https://forum.ansible.com/t/device-doesn-t-support-python/21430 "2016-05-13T06:42:12Z")

</div>

Yes, see : http://docs.ansible.com/ansible/raw\_module.html

---

## [Nested Playbook with dynamic group Variables](https://forum.ansible.com/t/nested-playbook-with-dynamic-group-variables/21429)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 3:13am UTC](https://forum.ansible.com/t/nested-playbook-with-dynamic-group-variables/21429 "2016-05-13T03:13:56Z")

</div>

Hi, I am trying to figure out how I could use the vars in one role can be used in another role. Below is init.yaml file which has 2 different plays. I want to use the “env” variable passed in the first play (provision t…

---

## [Getting attributes from with\_inventory\_hostnames](https://forum.ansible.com/t/getting-attributes-from-with-inventory-hostnames/21411)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:39am UTC](https://forum.ansible.com/t/getting-attributes-from-with-inventory-hostnames/21411 "2016-05-13T02:39:23Z")

</div>

Hi , I am generating an inventory file dynamically for each cluster using templates and store it in inventory folder. Below is how the inventory files looks. Filename: leo \` \[gapp\] gapp\[01:02\]-leo.dev.com role=gapp …

---

## [ansible winrm 401 unauthorized](https://forum.ansible.com/t/ansible-winrm-401-unauthorized/21427)

<div class="topic-metadata">

**Author:** [@Krishna\_Chaitanya](https://forum.ansible.com/u/Krishna_Chaitanya)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 12:25am UTC](https://forum.ansible.com/t/ansible-winrm-401-unauthorized/21427 "2016-05-13T00:25:27Z")

</div>

I able to establish the connection to the target windows machine, but the winrm http is not accepting my credentials( i have quoted username and passwd in the windows.yml file). Need help in this.

---

## [Ansible WinRM shows 401 Unauthorized when pywinrm works with no problem](https://forum.ansible.com/t/ansible-winrm-shows-401-unauthorized-when-pywinrm-works-with-no-problem/19578)

<div class="topic-metadata">

**Author:** [@Tianwei\_Liu](https://forum.ansible.com/u/Tianwei_Liu)\
**Replies:** 5\
**Last updated:** [May 13, 2016, 12:21am UTC](https://forum.ansible.com/t/ansible-winrm-shows-401-unauthorized-when-pywinrm-works-with-no-problem/19578 "2016-05-13T00:21:56Z")

</div>

Hi, I am having this weird problem that my ansible will always show 401 error when trying to connect my windows machine via winrm. Although I can use pywinrm with no problem at all authenticating with the exact same acc…

---

## [Ansible Playbook Running Against Wrong Vagrant VM](https://forum.ansible.com/t/ansible-playbook-running-against-wrong-vagrant-vm/21417)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 10:15pm UTC](https://forum.ansible.com/t/ansible-playbook-running-against-wrong-vagrant-vm/21417 "2016-05-12T22:15:21Z")

</div>

I have an Ansible playbook which, when I run it, executes its tasks against the wrong Vagrant VM. Here’s how I built my VMs: ~/playbooks/vagrant/Vagrantfile Vagrant.configure(2) do |config| config.ssh.insert\_key = fals…

---

## [how to use facts in group\_vars](https://forum.ansible.com/t/how-to-use-facts-in-group-vars/21409)

<div class="topic-metadata">

**Author:** [@Peter\_Horvath1](https://forum.ansible.com/u/Peter_Horvath1)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 9:20pm UTC](https://forum.ansible.com/t/how-to-use-facts-in-group-vars/21409 "2016-05-12T21:20:28Z")

</div>

Hi Guys, It might be a stupid question, but how can i use facts as variable value in group vars? I want to install Elastic search and want to have network.host to be filled automatically with the eth0.ip4 address. rol…

---

## [Create a new user.](https://forum.ansible.com/t/create-a-new-user/21188)

<div class="topic-metadata">

**Author:** [@Lars\_von\_trier\_pung](https://forum.ansible.com/u/Lars_von_trier_pung)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 8:44pm UTC](https://forum.ansible.com/t/create-a-new-user/21188 "2016-05-12T20:44:22Z")

</div>

Hi! Is there a way so to specify “last line” in tags from a list?. I want to create a new user by using adhocs command. So it won’t have to go through all the userlist everytime. Only the last added line. In this case -…

---

## [Ansible 2.0.1 the same playbooks for aws and openstack iaas: how to differentiate?](https://forum.ansible.com/t/ansible-2-0-1-the-same-playbooks-for-aws-and-openstack-iaas-how-to-differentiate/21204)

<div class="topic-metadata">

**Author:** [@Rafal\_Radecki](https://forum.ansible.com/u/Rafal_Radecki)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 8:28pm UTC](https://forum.ansible.com/t/ansible-2-0-1-the-same-playbooks-for-aws-and-openstack-iaas-how-to-differentiate/21204 "2016-05-12T20:28:07Z")

</div>

Hi All :slight\_smile: I am using ansible 2.0.1 on both aws and openstack kilo. I would like to run the same playbook with appropriate conditions so that part of it would be run when iaas is aws and another part when iaa…

---

## [How to design an Ansible directory structure](https://forum.ansible.com/t/how-to-design-an-ansible-directory-structure/16849)

<div class="topic-metadata">

**Author:** [@Rick\_Kasten](https://forum.ansible.com/u/Rick_Kasten)\
**Replies:** 5\
**Last updated:** [May 12, 2016, 8:24pm UTC](https://forum.ansible.com/t/how-to-design-an-ansible-directory-structure/16849 "2016-05-12T20:24:18Z")

</div>

I’m just starting out with Ansible, and I’m trying to design my Ansible catalog in an efficient way for the future. My understanding is that this is how a directory structure should look: ansible/ group\_vars/ host\_var…

---

## [how do I ignore/handle the UNREACHABLE error?](https://forum.ansible.com/t/how-do-i-ignore-handle-the-unreachable-error/21418)

<div class="topic-metadata">

**Author:** [@tegr9760](https://forum.ansible.com/u/tegr9760)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 7:46pm UTC](https://forum.ansible.com/t/how-do-i-ignore-handle-the-unreachable-error/21418 "2016-05-12T19:46:33Z")

</div>

I’d like to find out how to ignore/handle the UNREACHABLE error. The reason is that I want to use Ansible to loop through my hosts monitored\_systems and if any of those systems ever get reimaged, then I want to reestabli…

---

## [Deploying Ansible on CoreOS](https://forum.ansible.com/t/deploying-ansible-on-coreos/21401)

<div class="topic-metadata">

**Author:** [@hs.devaraja](https://forum.ansible.com/u/hs.devaraja)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 6:52pm UTC](https://forum.ansible.com/t/deploying-ansible-on-coreos/21401 "2016-05-12T18:52:11Z")

</div>

Hi, Please provide the link incase any document available to deploy ansible on CoreOS.

---

## [issues running through setup.sh](https://forum.ansible.com/t/issues-running-through-setup-sh/21423)

<div class="topic-metadata">

**Author:** [@James\_Tenley](https://forum.ansible.com/u/James_Tenley)\
**Replies:** 0\
**Last updated:** [May 12, 2016, 6:22pm UTC](https://forum.ansible.com/t/issues-running-through-setup-sh/21423 "2016-05-12T18:22:59Z")

</div>

I am new to ansible and when trying to install it I keep getting these errors regarding the packages for perl Error: Package: munin-2.0.25-11.el6.noarch (epel) Requires: perl(File::Copy::Recursive) Error: Package: per…

---

## [Unable to install ansible 2.0.0.2 via pip](https://forum.ansible.com/t/unable-to-install-ansible-2-0-0-2-via-pip/21353)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 4\
**Last updated:** [May 12, 2016, 6:08pm UTC](https://forum.ansible.com/t/unable-to-install-ansible-2-0-0-2-via-pip/21353 "2016-05-12T18:08:28Z")

</div>

Has anyone seen this when trying to install ansible via pip on ubuntu? Running setup.py install for cryptography c/\_cffi\_backend.c:15:17: fatal error: ffi.h: No such file or directory #include \<ffi.h\> ^ compilation …

---

## [Confusion about nested loop in jinja2 template](https://forum.ansible.com/t/confusion-about-nested-loop-in-jinja2-template/21420)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 1\
**Last updated:** [May 12, 2016, 5:34pm UTC](https://forum.ansible.com/t/confusion-about-nested-loop-in-jinja2-template/21420 "2016-05-12T17:34:24Z")

</div>

Hello Guys, I got stuck with some little problem on a nginx template and I have not succeeded in making it work. I am working on an nginx template and want to have a list of locations directives containing themselves su…

---

## [Please re-open issue #14383, it was reintroduced](https://forum.ansible.com/t/please-re-open-issue-14383-it-was-reintroduced/21422)

<div class="topic-metadata">

**Author:** [@Neil\_Hooey](https://forum.ansible.com/u/Neil_Hooey)\
**Replies:** 0\
**Last updated:** [May 12, 2016, 3:38pm UTC](https://forum.ansible.com/t/please-re-open-issue-14383-it-was-reintroduced/21422 "2016-05-12T15:38:05Z")

</div>

Someone was able to reproduce a closed GitHub issue in a recent version of Ansible: https://github.com/ansible/ansible/issues/14383#issuecomment-204991729 Could someone re-open it? Thanks. Neil

---

## ["Using bare variables is deprecated." but the docs are showing me to use that syntax.?](https://forum.ansible.com/t/using-bare-variables-is-deprecated-but-the-docs-are-showing-me-to-use-that-syntax/21405)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [May 12, 2016, 2:14pm UTC](https://forum.ansible.com/t/using-bare-variables-is-deprecated-but-the-docs-are-showing-me-to-use-that-syntax/21405 "2016-05-12T14:14:36Z")

</div>

Hi List, I’ve always been following along with the examples here: http://docs.ansible.com/ansible/playbooks\_conditionals.html#the-when-statement for instance: - name: Disable requiretty lineinfile: dest: /etc/sudoer…

---

## [Use "with\_sublelements" with 3,4,5,... elements ?](https://forum.ansible.com/t/use-with-sublelements-with-3-4-5-elements/21402)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 6\
**Last updated:** [May 12, 2016, 7:38am UTC](https://forum.ansible.com/t/use-with-sublelements-with-3-4-5-elements/21402 "2016-05-12T07:38:45Z")

</div>

Hi, I try to use function “with\_subelements” to create a folder tree for MySQL installation with multiple element in vars, but I can’t do this … Exemple : vars.yml : mysqld\_instance: name: “HOSTNAME” port: ‘3307’ …

---

## [variable scope and roles](https://forum.ansible.com/t/variable-scope-and-roles/12757)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 32\
**Last updated:** [May 12, 2016, 7:33am UTC](https://forum.ansible.com/t/variable-scope-and-roles/12757 "2016-05-12T07:33:36Z")

</div>

How is variable scope supposed to work with roles? I have the same variable defined in different roles (say install\_dir), when running a playbook which includes several roles, the value assumed during the execution of t…

---

## [Getting WinRM connection refused error randomly](https://forum.ansible.com/t/getting-winrm-connection-refused-error-randomly/21221)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 5\
**Last updated:** [May 12, 2016, 6:20am UTC](https://forum.ansible.com/t/getting-winrm-connection-refused-error-randomly/21221 "2016-05-12T06:20:47Z")

</div>

Hi I have a playbook which does few actions on windows machine. Few actions will get completed and then playbook exits with An exception occurred during task execution. To see the full traceback, use -vvv. The error wa…

---

## [EC2 dynamic inventory + windows hosts, any way to do a group\_vars for that?](https://forum.ansible.com/t/ec2-dynamic-inventory-windows-hosts-any-way-to-do-a-group-vars-for-that/21416)

<div class="topic-metadata">

**Author:** [@Ricard\_Clau](https://forum.ansible.com/u/Ricard_Clau)\
**Replies:** 1\
**Last updated:** [May 11, 2016, 8:00pm UTC](https://forum.ansible.com/t/ec2-dynamic-inventory-windows-hosts-any-way-to-do-a-group-vars-for-that/21416 "2016-05-11T20:00:31Z")

</div>

Hi I was trying to use the EC2 dynamic inventory to manage a number of Windows and Linux instances and I am struggling trying to find a clean way to do something like a group\_vars file in order to use winrm if the host …

---

## [Using ansible to manage "devices" (specifically san controllers)](https://forum.ansible.com/t/using-ansible-to-manage-devices-specifically-san-controllers/21415)

<div class="topic-metadata">

**Author:** [@Cheyenne\_Wills](https://forum.ansible.com/u/Cheyenne_Wills)\
**Replies:** 0\
**Last updated:** [May 11, 2016, 7:41pm UTC](https://forum.ansible.com/t/using-ansible-to-manage-devices-specifically-san-controllers/21415 "2016-05-11T19:41:01Z")

</div>

I’ve just started to play around with ansible to see if it can be used to manage a san controller. Within the san controller that I’m dealing with, the command “shell” environment is limited (no python). Therefore I can…

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

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