# Latest

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

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

**Page:** 683

---

## [Version (and other) problems with Ansible Azure Modules](https://forum.ansible.com/t/version-and-other-problems-with-ansible-azure-modules/21907)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 18\
**Last updated:** [February 24, 2017, 5:49pm UTC](https://forum.ansible.com/t/version-and-other-problems-with-ansible-azure-modules/21907 "2017-02-24T17:49:12Z")

</div>

when trying to run: hosts: localhost connection: local gather\_facts: yes vars: azure\_region: ‘eastus’ tasks: name: Get facts for one resource group azure\_rm\_resourcegroup\_facts: name: stevenca-csr I get: fat…

---

## [How to run this playbook locally ?](https://forum.ansible.com/t/how-to-run-this-playbook-locally/23806)

<div class="topic-metadata">

**Author:** [@John\_Doe](https://forum.ansible.com/u/John_Doe)\
**Replies:** 2\
**Last updated:** [February 24, 2017, 5:24pm UTC](https://forum.ansible.com/t/how-to-run-this-playbook-locally/23806 "2017-02-24T17:24:34Z")

</div>

Hey, I’ve got this playbook here https://pastebin.mozilla.org/8980172 and what I want is just run it locally. My plan is that I run this playbook from another playbook or in other words another playbook is referencing …

---

## [Ansible Modules for hadoop](https://forum.ansible.com/t/ansible-modules-for-hadoop/23810)

<div class="topic-metadata">

**Author:** [@Yassine\_Azzouz](https://forum.ansible.com/u/Yassine_Azzouz)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 4:47pm UTC](https://forum.ansible.com/t/ansible-modules-for-hadoop/23810 "2017-02-24T16:47:20Z")

</div>

Hi All, I have been working for quite a while now on a set of modules for hadoop (hdfs and hive/impala mainly), that I found very useful and helped me greatly to automate my deployments and operations on hadoop. So I wo…

---

## [Ansible dynamic inventory: Authentication error retrieving ec2 inventory](https://forum.ansible.com/t/ansible-dynamic-inventory-authentication-error-retrieving-ec2-inventory/23808)

<div class="topic-metadata">

**Author:** [@Prithula\_Mukherjee](https://forum.ansible.com/u/Prithula_Mukherjee)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 4:28pm UTC](https://forum.ansible.com/t/ansible-dynamic-inventory-authentication-error-retrieving-ec2-inventory/23808 "2017-02-24T16:28:06Z")

</div>

I am using Ansible’s Dynamic Inventory feature to connect to the ec2 instances in AWS account using below: AWS\_PROFILE=personal ansible-playbook cifarm.yml -C I have copied the https://raw.github.com/ansible/ansible/de…

---

## [Can't use ansible with user/password if keyfile exists](https://forum.ansible.com/t/cant-use-ansible-with-user-password-if-keyfile-exists/23805)

<div class="topic-metadata">

**Author:** [@Andreas\_Goetz](https://forum.ansible.com/u/Andreas_Goetz)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 10:24am UTC](https://forum.ansible.com/t/cant-use-ansible-with-user-password-if-keyfile-exists/23805 "2017-02-24T10:24:22Z")

</div>

In https://github.com/ansible/ansible/issues/21867 I’ve noticed that ansible ignores the -u user -k parameters if a keyfile exists (in my case an unusable 1023bits key) and still insists on using that key. I anybody abl…

---

## [Ansible for Windows](https://forum.ansible.com/t/ansible-for-windows/23800)

<div class="topic-metadata">

**Author:** [@Frank\_Mehlhop](https://forum.ansible.com/u/Frank_Mehlhop)\
**Replies:** 2\
**Last updated:** [February 24, 2017, 4:18am UTC](https://forum.ansible.com/t/ansible-for-windows/23800 "2017-02-24T04:18:08Z")

</div>

Hi, I work with Windows. I would like to use Vagrant on with gitolite my machine and therefore I need Ansible. Is it a piece of Software to download and install? Where do I get it? Or how do I get Ansible on my mach…

---

## [ansible 2.2.1.0 does not evaluate variable lazily](https://forum.ansible.com/t/ansible-2-2-1-0-does-not-evaluate-variable-lazily/23804)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 4\
**Last updated:** [February 23, 2017, 9:29pm UTC](https://forum.ansible.com/t/ansible-2-2-1-0-does-not-evaluate-variable-lazily/23804 "2017-02-23T21:29:38Z")

</div>

Hi all, These are what I am trying: base-ng.yml:

---

## [Dynamically  access  instances  unable to change the login user from root to centos](https://forum.ansible.com/t/dynamically-access-instances-unable-to-change-the-login-user-from-root-to-centos/23792)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Brewster](https://forum.ansible.com/u/Jeffrey_Brewster)\
**Replies:** 1\
**Last updated:** [February 23, 2017, 7:05pm UTC](https://forum.ansible.com/t/dynamically-access-instances-unable-to-change-the-login-user-from-root-to-centos/23792 "2017-02-23T19:05:21Z")

</div>

Hi all, I’m able to add the host dynamically however I’m not able to run yum install commands on it because of user issues: Error: command scp -v -t 'Please login as the user:

---

## [win\_command problems](https://forum.ansible.com/t/win-command-problems/23787)

<div class="topic-metadata">

**Author:** [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Replies:** 2\
**Last updated:** [February 23, 2017, 6:26pm UTC](https://forum.ansible.com/t/win-command-problems/23787 "2017-02-23T18:26:42Z")

</div>

Hi, so if I run on the command line, having used the inventory file to add user/password details under windows:vars ansible mesh -u user1 -m win\_shell -a “dir chdir=C:\\Temp” then I get mesh | SUCCESS | rc=0 \>\> Direc…

---

## [Replace a list of directories, but only if they are empty](https://forum.ansible.com/t/replace-a-list-of-directories-but-only-if-they-are-empty/23797)

<div class="topic-metadata">

**Author:** [@Jesus\_Cea](https://forum.ansible.com/u/Jesus_Cea)\
**Replies:** 3\
**Last updated:** [February 23, 2017, 6:06pm UTC](https://forum.ansible.com/t/replace-a-list-of-directories-but-only-if-they-are-empty/23797 "2017-02-23T18:06:52Z")

</div>

I have spend hours trying to solve this in a clear style, with no success. I need to replace a few directories with a symbolic link to other directories, but only when the first directories are empty. I have managed t…

---

## [windows, secrets, and remote plays](https://forum.ansible.com/t/windows-secrets-and-remote-plays/23765)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [February 23, 2017, 5:15pm UTC](https://forum.ansible.com/t/windows-secrets-and-remote-plays/23765 "2017-02-23T17:15:28Z")

</div>

how does one manage secrets and remote plays? when we only had linux to deal with, no big deal to ssh -A to a control node, tmux, and have no secrets stored there at all. but now, we have to deal with windows, which doe…

---

## [lineinfile with serial is overwriting the data](https://forum.ansible.com/t/lineinfile-with-serial-is-overwriting-the-data/23778)

<div class="topic-metadata">

**Author:** [@Chandan\_Javaregowda](https://forum.ansible.com/u/Chandan_Javaregowda)\
**Replies:** 1\
**Last updated:** [February 23, 2017, 1:57pm UTC](https://forum.ansible.com/t/lineinfile-with-serial-is-overwriting-the-data/23778 "2017-02-23T13:57:08Z")

</div>

lineinfile when used with serial is overwriting the data. Here’s what I’m trying to do: In a serial deployment there are ‘100’ hosts and 20 in each batch. I do not want to stop the execution when a task fails for one h…

---

## [alphanum string filter?](https://forum.ansible.com/t/alphanum-string-filter/23801)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 2\
**Last updated:** [February 23, 2017, 10:51am UTC](https://forum.ansible.com/t/alphanum-string-filter/23801 "2017-02-23T10:51:00Z")

</div>

Hi, is there a convenient way to filter an arbitrary string for alphanum chars only? example input: " 2!bc/ABC\_" output: "2bcABC" I didn't see something like that on the filter pages: http://jinja.pocoo.org/docs/…

---

## [Failed when using vmware\_guest](https://forum.ansible.com/t/failed-when-using-vmware-guest/23802)

<div class="topic-metadata">

**Author:** [@Rico\_John](https://forum.ansible.com/u/Rico_John)\
**Replies:** 0\
**Last updated:** [February 23, 2017, 4:19am UTC](https://forum.ansible.com/t/failed-when-using-vmware-guest/23802 "2017-02-23T04:19:35Z")

</div>

Hi, I have tried using ansible for vcenter management. I have follow the tutorial, however it doesn’t work. Please take a look at below : root@ansible02:/etc/ansible# ansible-playbook test.yml -C PLAY \[vcenter\] \*\*\*\*\*\*…

---

## [automatically test all variables in a config file](https://forum.ansible.com/t/automatically-test-all-variables-in-a-config-file/23775)

<div class="topic-metadata">

**Author:** [@sami.joseph](https://forum.ansible.com/u/sami.joseph)\
**Replies:** 1\
**Last updated:** [February 22, 2017, 9:30pm UTC](https://forum.ansible.com/t/automatically-test-all-variables-in-a-config-file/23775 "2017-02-22T21:30:57Z")

</div>

Hi, I built an application that gets deployed using ansible, the ‘config’ file for my app has a lot of variables that are set in a YAML file. Some examples of these variables: Path to images Number of VM instances to…

---

## [Passing a fact to another play](https://forum.ansible.com/t/passing-a-fact-to-another-play/23795)

<div class="topic-metadata">

**Author:** [@barnaclefluff](https://forum.ansible.com/u/barnaclefluff)\
**Replies:** 2\
**Last updated:** [February 22, 2017, 8:38pm UTC](https://forum.ansible.com/t/passing-a-fact-to-another-play/23795 "2017-02-22T20:38:25Z")

</div>

Imagine I have multiple hadoop clusters, each with a master node and a varying amount of slave nodes connected to it. I want to dynamically discover the slaves from the master, and then perform actions on them in serial…

---

## [How to control output of a particular task](https://forum.ansible.com/t/how-to-control-output-of-a-particular-task/23796)

<div class="topic-metadata">

**Author:** [@Jesus\_Cea](https://forum.ansible.com/u/Jesus_Cea)\
**Replies:** 2\
**Last updated:** [February 22, 2017, 8:09pm UTC](https://forum.ansible.com/t/how-to-control-output-of-a-particular-task/23796 "2017-02-22T20:09:18Z")

</div>

I kind of remember reading about this in the documentation, but I have spend an hour trying to find it with no success. I am iterating over huge structures and the task is showing the complete structure on the screen.…

---

## [Removing Files and Replacing with links, IF it's a file](https://forum.ansible.com/t/removing-files-and-replacing-with-links-if-its-a-file/23790)

<div class="topic-metadata">

**Author:** [@Robert\_L\_Harris](https://forum.ansible.com/u/Robert_L_Harris)\
**Replies:** 1\
**Last updated:** [February 22, 2017, 7:09pm UTC](https://forum.ansible.com/t/removing-files-and-replacing-with-links-if-its-a-file/23790 "2017-02-22T19:09:30Z")

</div>

( Sorry if this is a repost, I can’t find the original as if it didn’t post ) I’m trying to build out some new Ubuntu machines. One of the things I want to do is remove /root/.bashrc, IF it’s a file and then create a li…

---

## [Clean way to "rm /root/.bashrc && ln -s /root/.profile/.bashrc"](https://forum.ansible.com/t/clean-way-to-rm-root-bashrc-ln-s-root-profile-bashrc/23788)

<div class="topic-metadata">

**Author:** [@Robert\_L\_Harris](https://forum.ansible.com/u/Robert_L_Harris)\
**Replies:** 1\
**Last updated:** [February 22, 2017, 7:02pm UTC](https://forum.ansible.com/t/clean-way-to-rm-root-bashrc-ln-s-root-profile-bashrc/23788 "2017-02-22T19:02:48Z")

</div>

I’m trying to use ansible to enforce some file configurations in a test environment. Right now I’ve got a command: which does the remove of the original .bashrc then creates the links. But then every run, it removes the …

---

## [how use aws profile when using ansible ec2.py module](https://forum.ansible.com/t/how-use-aws-profile-when-using-ansible-ec2-py-module/23576)

<div class="topic-metadata">

**Author:** [@Ronak\_Patel](https://forum.ansible.com/u/Ronak_Patel)\
**Replies:** 1\
**Last updated:** [February 22, 2017, 5:37pm UTC](https://forum.ansible.com/t/how-use-aws-profile-when-using-ansible-ec2-py-module/23576 "2017-02-22T17:37:33Z")

</div>

I wrote a quick ansible playbook to launch a simple ec2 instance but I think I have an issue on how I want to authenticate. What I don’t want to do is set my aws access/secret keys as env variables since they expire eac…

---

## [Example for running a playbook using Python API](https://forum.ansible.com/t/example-for-running-a-playbook-using-python-api/16673)

<div class="topic-metadata">

**Author:** [@Brian\_Fleming](https://forum.ansible.com/u/Brian_Fleming)\
**Replies:** 4\
**Last updated:** [February 22, 2017, 8:47am UTC](https://forum.ansible.com/t/example-for-running-a-playbook-using-python-api/16673 "2017-02-22T08:47:54Z")

</div>

\` import ansible.runner import ansible.playbook from ansible import callbacks from ansible import utils stats = callbacks.AggregateStats() playbook\_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY) runner\_…

---

## [Ansible 2.1.5 and 2.2.2 RC1 are ready for testing](https://forum.ansible.com/t/ansible-2-1-5-and-2-2-2-rc1-are-ready-for-testing/23794)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [February 22, 2017, 12:22am UTC](https://forum.ansible.com/t/ansible-2-1-5-and-2-2-2-rc1-are-ready-for-testing/23794 "2017-02-22T00:22:31Z")

</div>

Hi all, we’re very happy to announce that RC1 for Ansible 2.1.5 and 2.2.2 are ready for testing! First and foremost, these release candidates address two security issues: \[SECURITY\] (HIGH) handle some additional corne…

---

## [Fuzzing/Exerising variables in a deployment config/template](https://forum.ansible.com/t/fuzzing-exerising-variables-in-a-deployment-config-template/23793)

<div class="topic-metadata">

**Author:** [@sami.joseph](https://forum.ansible.com/u/sami.joseph)\
**Replies:** 0\
**Last updated:** [February 22, 2017, 12:01am UTC](https://forum.ansible.com/t/fuzzing-exerising-variables-in-a-deployment-config-template/23793 "2017-02-22T00:01:06Z")

</div>

Hi, I built an App that gets its deployment data from a yaml/json config file (i.e: catalog), the catalog has variables, for example : number of virtual machine to be spun or how many CPUs are needed per Virtual machine…

---

## [How to use variables defined in a group\_vars directory of a role?](https://forum.ansible.com/t/how-to-use-variables-defined-in-a-group-vars-directory-of-a-role/23771)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 3\
**Last updated:** [February 21, 2017, 11:44pm UTC](https://forum.ansible.com/t/how-to-use-variables-defined-in-a-group-vars-directory-of-a-role/23771 "2017-02-21T23:44:46Z")

</div>

Hello, I would like to copy some files specified by a group\_var. But while running my playbook I got the fatal error that the variable given is undefined. But first things first. My directory structure looks like: \` r…

---

## [\[Question\] Jinja2 template - check variable](https://forum.ansible.com/t/question-jinja2-template-check-variable/23782)

<div class="topic-metadata">

**Author:** [@belajzus](https://forum.ansible.com/u/belajzus)\
**Replies:** 5\
**Last updated:** [February 21, 2017, 9:59pm UTC](https://forum.ansible.com/t/question-jinja2-template-check-variable/23782 "2017-02-21T21:59:43Z")

</div>

Hi, is it possible in Jinja2 template to define possible values for some variable. Let say I have template config1.j2: parameter1={{var1 | default(1) }} parameter2={{var2 | default(2) }} parameter3={{var3 | default(…

---

## [Is it possible to deploy Nuget package with Ansible](https://forum.ansible.com/t/is-it-possible-to-deploy-nuget-package-with-ansible/23769)

<div class="topic-metadata">

**Author:** [@Rafid\_Haroon](https://forum.ansible.com/u/Rafid_Haroon)\
**Replies:** 1\
**Last updated:** [February 21, 2017, 9:36pm UTC](https://forum.ansible.com/t/is-it-possible-to-deploy-nuget-package-with-ansible/23769 "2017-02-21T21:36:17Z")

</div>

Hi, I am presently using Octopus deploy for deploying .Net applications. I was wondering if it can be replaced by Ansible, I am playing around with Ansible for cloud provisioning, it will be great if it could also help …

---

## [Testing roles](https://forum.ansible.com/t/testing-roles/23763)

<div class="topic-metadata">

**Author:** [@Matt\_WH](https://forum.ansible.com/u/Matt_WH)\
**Replies:** 2\
**Last updated:** [February 21, 2017, 7:19pm UTC](https://forum.ansible.com/t/testing-roles/23763 "2017-02-21T19:19:39Z")

</div>

Hi everyone, I’m working on an Ansible setup where it would be extremely helpful to be able to test roles and changes to a role before they were moved into the roles folder used by ansible, as defined in the /etc/ansibl…

---

## [Loop in a loop](https://forum.ansible.com/t/loop-in-a-loop/23772)

<div class="topic-metadata">

**Author:** [@Acrobis\_Nubian](https://forum.ansible.com/u/Acrobis_Nubian)\
**Replies:** 4\
**Last updated:** [February 21, 2017, 6:26pm UTC](https://forum.ansible.com/t/loop-in-a-loop/23772 "2017-02-21T18:26:41Z")

</div>

Hi all, If someone could help me on the following: I am trying to automate as maximum as possible the addition of authorized keys to my new remote servers by doing the below playbook, but I am getting the following err…

---

## [Delegating a playbook to run across multiple hosts](https://forum.ansible.com/t/delegating-a-playbook-to-run-across-multiple-hosts/23789)

<div class="topic-metadata">

**Author:** [@barnaclefluff](https://forum.ansible.com/u/barnaclefluff)\
**Replies:** 0\
**Last updated:** [February 21, 2017, 4:13pm UTC](https://forum.ansible.com/t/delegating-a-playbook-to-run-across-multiple-hosts/23789 "2017-02-21T16:13:41Z")

</div>

I’m having a newbie issue related to orchestrating actions across hosts. I’m probably doing this completely the wrong way. Essentially what I want to do is call a playbook from within a playbook, targeting specific host…

---

## [win\_find module](https://forum.ansible.com/t/win-find-module/23786)

<div class="topic-metadata">

**Author:** [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Replies:** 2\
**Last updated:** [February 21, 2017, 2:46pm UTC](https://forum.ansible.com/t/win-find-module/23786 "2017-02-21T14:46:16Z")

</div>

Hi, if I have a task of name: find all the files in c/temp find: paths: c:\\temp then it fails which is fine because it is working on a windows machine. The important thing is that the syntax is good. But if have w…

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

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