# Latest

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

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

**Page:** 866

---

## [how to execute a task/action just when a list of items really exist](https://forum.ansible.com/t/how-to-execute-a-task-action-just-when-a-list-of-items-really-exist/18346)

<div class="topic-metadata">

**Author:** [@Esteban\_Freire](https://forum.ansible.com/u/Esteban_Freire)\
**Replies:** 8\
**Last updated:** [June 2, 2015, 7:15am UTC](https://forum.ansible.com/t/how-to-execute-a-task-action-just-when-a-list-of-items-really-exist/18346 "2015-06-02T07:15:29Z")

</div>

Hello all, I am using ansible for automate the users creation in one of our tools so I have the following users file in vars with the user’s info and also, the user can have some secondary groups assigned besides the ma…

---

## [Ansible group\_vars not loading or am I making a fundamental mistake here?](https://forum.ansible.com/t/ansible-group-vars-not-loading-or-am-i-making-a-fundamental-mistake-here/18235)

<div class="topic-metadata">

**Author:** [@Satish\_Muthali](https://forum.ansible.com/u/Satish_Muthali)\
**Replies:** 2\
**Last updated:** [June 1, 2015, 9:57pm UTC](https://forum.ansible.com/t/ansible-group-vars-not-loading-or-am-i-making-a-fundamental-mistake-here/18235 "2015-06-01T21:57:09Z")

</div>

Hello experts, This is the following ansible directory structure I have: ├── environments │ └── azure\_sandbox ├── filter\_plugins ├── group\_vars │ ├── all.yml │ └── uswest\_sandbox.yml ├── hierarchy.README ├── hos…

---

## [How to change the ec2\_group configuration in Ansible](https://forum.ansible.com/t/how-to-change-the-ec2-group-configuration-in-ansible/18356)

<div class="topic-metadata">

**Author:** [@Ming\_Hu](https://forum.ansible.com/u/Ming_Hu)\
**Replies:** 3\
**Last updated:** [June 1, 2015, 5:32pm UTC](https://forum.ansible.com/t/how-to-change-the-ec2-group-configuration-in-ansible/18356 "2015-06-01T17:32:04Z")

</div>

Hi, I have a simple ec2\_group configuration like this: name: Create cc hosts: localhost tasks: name: Create security group ec2\_group: name: cc description: Security group for cc region: ap-northeast-1 state: abs…

---

## [WinRM to windows machine only works with local user](https://forum.ansible.com/t/winrm-to-windows-machine-only-works-with-local-user/18368)

<div class="topic-metadata">

**Author:** [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Replies:** 1\
**Last updated:** [June 1, 2015, 3:59pm UTC](https://forum.ansible.com/t/winrm-to-windows-machine-only-works-with-local-user/18368 "2015-06-01T15:59:48Z")

</div>

hey guys, so we have an ansible control machine on CentOS 6. it is trying to connect to and windows machine to do win\_ping the issue is that i keep receiving “FAILED =\> 401 Unauthorized. basic auth failed” when we use …

---

## ['dopy \>= 0.2.3 required for this module'](https://forum.ansible.com/t/dopy-0-2-3-required-for-this-module/18358)

<div class="topic-metadata">

**Author:** [@Global\_Cooling](https://forum.ansible.com/u/Global_Cooling)\
**Replies:** 1\
**Last updated:** [June 1, 2015, 3:05pm UTC](https://forum.ansible.com/t/dopy-0-2-3-required-for-this-module/18358 "2015-06-01T15:05:43Z")

</div>

System version of python \` which python /usr/local/bin/python python --version Python 2.7.6 \` Pip installed with sudo easy\_install pip \` which pip /usr/local/bin/pip pip --version pip 6.1.1 from /usr/local…

---

## [Any way to specify SSH key file for EC2 host using EC2 inventory](https://forum.ansible.com/t/any-way-to-specify-ssh-key-file-for-ec2-host-using-ec2-inventory/18353)

<div class="topic-metadata">

**Author:** [@Do\_Hoang\_Khiem](https://forum.ansible.com/u/Do_Hoang_Khiem)\
**Replies:** 1\
**Last updated:** [June 1, 2015, 2:09pm UTC](https://forum.ansible.com/t/any-way-to-specify-ssh-key-file-for-ec2-host-using-ec2-inventory/18353 "2015-06-01T14:09:20Z")

</div>

I’m using Ansible to manage multiple EC2 instance that could be launched dynamically, keypair is generated for each instance then store in local machine. Previously I use default inventory file and in Ansible I can use …

---

## [ansible facts in lowercase](https://forum.ansible.com/t/ansible-facts-in-lowercase/18361)

<div class="topic-metadata">

**Author:** [@Vladimir\_Fess](https://forum.ansible.com/u/Vladimir_Fess)\
**Replies:** 1\
**Last updated:** [June 1, 2015, 1:58pm UTC](https://forum.ansible.com/t/ansible-facts-in-lowercase/18361 "2015-06-01T13:58:40Z")

</div>

Hi there! I’m newer in ansible. I have one question and hope you’ll help me with it. For example I want add deb: name: add webmin deb’s for {{ansible\_distribution}} {{ansible\_distribution\_version}} {{ansible\_architec…

---

## [consul is not a legal...](https://forum.ansible.com/t/consul-is-not-a-legal/18363)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [June 1, 2015, 1:42pm UTC](https://forum.ansible.com/t/consul-is-not-a-legal/18363 "2015-06-01T13:42:15Z")

</div>

The docs show the consul module for 1.9, but the code does not. Should it be there? Or are the docs wrong? http://docs.ansible.com/consul\_module.html

---

## [lookup('template') looks in files/ not templates/ ?](https://forum.ansible.com/t/lookup-template-looks-in-files-not-templates/18354)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 2\
**Last updated:** [June 1, 2015, 1:09pm UTC](https://forum.ansible.com/t/lookup-template-looks-in-files-not-templates/18354 "2015-06-01T13:09:09Z")

</div>

I see that lookup(‘template’) is looking in the files directory not the template directory. \` fatal: \[10.0.139.56\] =\> Failed to template msg=“{{lookup(‘template’, ‘rs\_initiate\_cmd.js.j2’)}}”: unable to read /Users/bkap…

---

## [osx docker ansible problem](https://forum.ansible.com/t/osx-docker-ansible-problem/18366)

<div class="topic-metadata">

**Author:** [@Ronny\_Abraham](https://forum.ansible.com/u/Ronny_Abraham)\
**Replies:** 0\
**Last updated:** [June 1, 2015, 10:06am UTC](https://forum.ansible.com/t/osx-docker-ansible-problem/18366 "2015-06-01T10:06:01Z")

</div>

am just trying to tell Ansible to build a docker image on my OS X machine and this is the error I get: $ ansible-playbook main.yml PLAY \[localhost\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* GATHER…

---

## [Switching user in playbook](https://forum.ansible.com/t/switching-user-in-playbook/18348)

<div class="topic-metadata">

**Author:** [@Bence\_Takacs](https://forum.ansible.com/u/Bence_Takacs)\
**Replies:** 10\
**Last updated:** [June 1, 2015, 9:07am UTC](https://forum.ansible.com/t/switching-user-in-playbook/18348 "2015-06-01T09:07:39Z")

</div>

I need to switch users in a playbook: first I need to do some tasks as a root user then I need to change to a limited user and do the rest with that. My playbook looks like this: name: Preparation vars: ansible\_…

---

## [Powershell util scripts - unable to use Exit-Json or return Json respone to ansible](https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360)

<div class="topic-metadata">

**Author:** [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Replies:** 2\
**Last updated:** [June 1, 2015, 8:05am UTC](https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360 "2015-06-01T08:05:41Z")

</div>

so i have an environment with control machine: ansible --version ansible 1.9.1 configured module search path = /usr/share/ansible i’m trying to use the integrated powershell utilities for sending and returning (Exit-…

---

## [V2 is coming](https://forum.ansible.com/t/v2-is-coming/18350)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 5\
**Last updated:** [May 31, 2015, 9:21pm UTC](https://forum.ansible.com/t/v2-is-coming/18350 "2015-05-31T21:21:50Z")

</div>

Hi all, on Monday we will be switching the devel branch over to the v2 code base. As a result, all future checkouts will use the v2 codebase by default. As we do not expect everything to work immediately for all users, …

---

## [Permission to make pull requests](https://forum.ansible.com/t/permission-to-make-pull-requests/18349)

<div class="topic-metadata">

**Author:** [@Bruno\_Galindro\_da\_Co](https://forum.ansible.com/u/Bruno_Galindro_da_Co)\
**Replies:** 16\
**Last updated:** [May 31, 2015, 2:41pm UTC](https://forum.ansible.com/t/permission-to-make-pull-requests/18349 "2015-05-31T14:41:19Z")

</div>

I need permission to make two pull requests: https://github.com/ansible/ansible/issues/11070 - Feature request: ignore\_instances option in ec2\_asg https://github.com/ansible/ansible-modules-core/issues/1445 - Default v…

---

## [ansible osx docker problems](https://forum.ansible.com/t/ansible-osx-docker-problems/18359)

<div class="topic-metadata">

**Author:** [@Ronny\_Abraham](https://forum.ansible.com/u/Ronny_Abraham)\
**Replies:** 0\
**Last updated:** [May 31, 2015, 1:52pm UTC](https://forum.ansible.com/t/ansible-osx-docker-problems/18359 "2015-05-31T13:52:37Z")

</div>

am just trying to tell Ansible to build a docker image on my OS X machine and this is the error I get: $ ansible-playbook main.yml PLAY \[localhost\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* GATHER…

---

## [How to change the configuration of ec2\_group?](https://forum.ansible.com/t/how-to-change-the-configuration-of-ec2-group/18355)

<div class="topic-metadata">

**Author:** [@Ming\_Hu](https://forum.ansible.com/u/Ming_Hu)\
**Replies:** 0\
**Last updated:** [May 31, 2015, 4:09am UTC](https://forum.ansible.com/t/how-to-change-the-configuration-of-ec2-group/18355 "2015-05-31T04:09:10Z")

</div>

Hi I have a simple playbook which create a security group on AWS \` name: Create cc hosts: localhost tasks: name: Create security group ec2\_group: name: cc description: Security group for cc region: ap-northea…

---

## [F5 playbook](https://forum.ansible.com/t/f5-playbook/18257)

<div class="topic-metadata">

**Author:** [@marco\_gregorio](https://forum.ansible.com/u/marco_gregorio)\
**Replies:** 2\
**Last updated:** [May 30, 2015, 6:23pm UTC](https://forum.ansible.com/t/f5-playbook/18257 "2015-05-30T18:23:52Z")

</div>

hello everyone, I’d like to write a playbook which manages a bunch of F5-LTM network balancers. As far as I can see there are some plugins for automating pools creation: http://docs.ansible.com/bigip\_pool\_member\_modul…

---

## [AWS - Add new security rule to existing security group](https://forum.ansible.com/t/aws-add-new-security-rule-to-existing-security-group/18337)

<div class="topic-metadata">

**Author:** [@Stanley\_Nguyen](https://forum.ansible.com/u/Stanley_Nguyen)\
**Replies:** 1\
**Last updated:** [May 30, 2015, 3:31pm UTC](https://forum.ansible.com/t/aws-add-new-security-rule-to-existing-security-group/18337 "2015-05-30T15:31:44Z")

</div>

Hi, Is there a way to add a new security rule to an existing security group using ec2\_group or similar fashion (without invoking AWS CLI with shell)? Thanks, Stanley

---

## [ec2\_vol parameter checking is a bit too aggressive](https://forum.ansible.com/t/ec2-vol-parameter-checking-is-a-bit-too-aggressive/18352)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 0\
**Last updated:** [May 30, 2015, 3:23pm UTC](https://forum.ansible.com/t/ec2-vol-parameter-checking-is-a-bit-too-aggressive/18352 "2015-05-30T15:23:50Z")

</div>

I am configuring a mongodb cluster on ec2. After first creating instances I create and attach an EBS volume to the instance. But I also want to be able to reattach the EBS volume to a replacement instance when needed. d…

---

## [How to pass group vars to role in playbook?](https://forum.ansible.com/t/how-to-pass-group-vars-to-role-in-playbook/18351)

<div class="topic-metadata">

**Author:** [@Dan4](https://forum.ansible.com/u/Dan4)\
**Replies:** 0\
**Last updated:** [May 30, 2015, 11:08am UTC](https://forum.ansible.com/t/how-to-pass-group-vars-to-role-in-playbook/18351 "2015-05-30T11:08:54Z")

</div>

When test\_var is defined inside the playbook it gets passed to the role correctly. However when it’s defined in group\_vars/all.yml Ansilbe won’t find it (undefined) and exits with an error: fatal: \[vagrant\] =\> failed to…

---

## [F5 disable pool/node](https://forum.ansible.com/t/f5-disable-pool-node/17577)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 23\
**Last updated:** [May 29, 2015, 5:22pm UTC](https://forum.ansible.com/t/f5-disable-pool-node/17577 "2015-05-29T17:22:30Z")

</div>

We are looking into automating our network failover between datacenters using the F5 network modules. http://docs.ansible.com/list\_of\_network\_modules.html. I’ve been able to do simple things like gather facts, add/delet…

---

## [JSON parsing](https://forum.ansible.com/t/json-parsing/18342)

<div class="topic-metadata">

**Author:** [@Stanley\_Nguyen](https://forum.ansible.com/u/Stanley_Nguyen)\
**Replies:** 2\
**Last updated:** [May 29, 2015, 5:10pm UTC](https://forum.ansible.com/t/json-parsing/18342 "2015-05-29T17:10:37Z")

</div>

Hi, I’m having a very basic problem but I can’t figure out what’s wrong. This is the output I got from a debug statement with my Ansible task. All I’m trying to do is to get the GroupId to use it in the next task but it…

---

## [copy says ok but file isn't there](https://forum.ansible.com/t/copy-says-ok-but-file-isnt-there/18347)

<div class="topic-metadata">

**Author:** [@alexander.altanis](https://forum.ansible.com/u/alexander.altanis)\
**Replies:** 1\
**Last updated:** [May 29, 2015, 3:52pm UTC](https://forum.ansible.com/t/copy-says-ok-but-file-isnt-there/18347 "2015-05-29T15:52:05Z")

</div>

So, I posted this as an issue on github, but I guess it might be me using ansible incorrectly. I explain it better over there: https://github.com/ansible/ansible/issues/11088 Any ideas?

---

## [Ansible capable of handling diskless clients?](https://forum.ansible.com/t/ansible-capable-of-handling-diskless-clients/18327)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 3\
**Last updated:** [May 29, 2015, 3:23pm UTC](https://forum.ansible.com/t/ansible-capable-of-handling-diskless-clients/18327 "2015-05-29T15:23:45Z")

</div>

Hi all, a similar question was already posted on Serverfault (http://serverfault.com/questions/693698/config-management-for-nfs-root-cluster) but got turned down as being off-topic. To summarize: Is Ansible capable o…

---

## [Where to store global defaults?](https://forum.ansible.com/t/where-to-store-global-defaults/18345)

<div class="topic-metadata">

**Author:** [@Bence\_Takacs](https://forum.ansible.com/u/Bence_Takacs)\
**Replies:** 1\
**Last updated:** [May 29, 2015, 2:24pm UTC](https://forum.ansible.com/t/where-to-store-global-defaults/18345 "2015-05-29T14:24:24Z")

</div>

Hi, All Where should I store my global variables? Like company artifact repository url, application directory (/opt), etc? Is there a proper place to put that? I was thinking about ansible.cfg but this would be overki…

---

## [win\_template and line breaks](https://forum.ansible.com/t/win-template-and-line-breaks/17100)

<div class="topic-metadata">

**Author:** [@Joey](https://forum.ansible.com/u/Joey)\
**Replies:** 12\
**Last updated:** [May 29, 2015, 2:12pm UTC](https://forum.ansible.com/t/win-template-and-line-breaks/17100 "2015-05-29T14:12:27Z")

</div>

I’m using win\_template to copy a text file with a couple variables to a windows client. However, it seems to be removing all lines breaks from the file. I tried using unix2dos on the template, as well as adding “#jinja2:…

---

## [Powershell modules, json conversion quirk](https://forum.ansible.com/t/powershell-modules-json-conversion-quirk/18193)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 6\
**Last updated:** [May 29, 2015, 1:59pm UTC](https://forum.ansible.com/t/powershell-modules-json-conversion-quirk/18193 "2015-05-29T13:59:09Z")

</div>

I came across this powershell quirk today and thought I should share it with anyone else who might be writing powershell ansible modules. It seems there is a bug, or at least an inconsistency in the behaviour of Convert…

---

## [cannot get win\_template to work](https://forum.ansible.com/t/cannot-get-win-template-to-work/18328)

<div class="topic-metadata">

**Author:** [@Jake\_Dupuy](https://forum.ansible.com/u/Jake_Dupuy)\
**Replies:** 3\
**Last updated:** [May 29, 2015, 12:37pm UTC](https://forum.ansible.com/t/cannot-get-win-template-to-work/18328 "2015-05-29T12:37:22Z")

</div>

someone please help me out. I cannot get win\_template or win\_copy to work. I’m able to do a simple ipconfig test to confirm that ansible is working with windows I’ve got some powershell scripts that I need to have in a t…

---

## [Get Ansible Job ID inside playbook](https://forum.ansible.com/t/get-ansible-job-id-inside-playbook/18331)

<div class="topic-metadata">

**Author:** [@Ivo\_Hechmann](https://forum.ansible.com/u/Ivo_Hechmann)\
**Replies:** 4\
**Last updated:** [May 29, 2015, 11:29am UTC](https://forum.ansible.com/t/get-ansible-job-id-inside-playbook/18331 "2015-05-29T11:29:26Z")

</div>

Hello; How can I retrieve the current job id? Want to create a Jira Issue using the jira module and add the ansible job ID as description… Thank you very much Ivo

---

## [How do you parameterize ansible\_eth\* facts and use it?](https://forum.ansible.com/t/how-do-you-parameterize-ansible-eth-facts-and-use-it/18341)

<div class="topic-metadata">

**Author:** [@t\_goto](https://forum.ansible.com/u/t_goto)\
**Replies:** 4\
**Last updated:** [May 29, 2015, 7:32am UTC](https://forum.ansible.com/t/how-do-you-parameterize-ansible-eth-facts-and-use-it/18341 "2015-05-29T07:32:47Z")

</div>

Hello, ansible experts. I’m trying to parameterize eth interface in group\_vars/all so that I can use it in playbook easier. group\_vars/all file looks like this. my\_int\_if: eth1 my\_int\_ip: "{{ ansible\_eth1.ipv4.address…

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

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