# Latest

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

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

**Page:** 670

---

## [Ansible: How to run the for command through playbook](https://forum.ansible.com/t/ansible-how-to-run-the-for-command-through-playbook/24160)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 2\
**Last updated:** [April 10, 2017, 1:00pm UTC](https://forum.ansible.com/t/ansible-how-to-run-the-for-command-through-playbook/24160 "2017-04-10T13:00:28Z")

</div>

Below is the playbook using “for command”. Playbook: name: “Fetch the ip of all the servers from hosts.new file” shell: for i in awk '{print $1}' hosts.new do echo “$i” done args: chdir: “/home/dp794d/” failed\_w…

---

## [Unable to ssh as centos to my ansible AWS instance Permission denied (publickey,gssapi-keyex,gssapi-with-mic).](https://forum.ansible.com/t/unable-to-ssh-as-centos-to-my-ansible-aws-instance-permission-denied-publickey-gssapi-keyex-gssapi-with-mic/24175)

<div class="topic-metadata">

**Author:** [@Guruprasad\_Krishnamu](https://forum.ansible.com/u/Guruprasad_Krishnamu)\
**Replies:** 1\
**Last updated:** [April 10, 2017, 11:30am UTC](https://forum.ansible.com/t/unable-to-ssh-as-centos-to-my-ansible-aws-instance-permission-denied-publickey-gssapi-keyex-gssapi-with-mic/24175 "2017-04-10T11:30:54Z")

</div>

Hello, I have been using ansible AWS instance on a CentOs machine for a couple of days now. However on logging in now I get this error. The machine is running fine, and I need to retrieve data from it. Any suggestions ?…

---

## [creating my own dynamic vars module](https://forum.ansible.com/t/creating-my-own-dynamic-vars-module/24169)

<div class="topic-metadata">

**Author:** [@Matt\_Graham](https://forum.ansible.com/u/Matt_Graham)\
**Replies:** 3\
**Last updated:** [April 10, 2017, 7:00am UTC](https://forum.ansible.com/t/creating-my-own-dynamic-vars-module/24169 "2017-04-10T07:00:15Z")

</div>

Hi All Im probably doing this wrong. I’m working on a version of include\_vars module where by my variables (based off a text file) get added to the global vars like include\_vars Im trying to figure out how I add it. I …

---

## [Problem creating brigde network using nmcli.](https://forum.ansible.com/t/problem-creating-brigde-network-using-nmcli/24177)

<div class="topic-metadata">

**Author:** [@Anthony\_P\_V](https://forum.ansible.com/u/Anthony_P_V)\
**Replies:** 0\
**Last updated:** [April 10, 2017, 3:55am UTC](https://forum.ansible.com/t/problem-creating-brigde-network-using-nmcli/24177 "2017-04-10T03:55:54Z")

</div>

Hi, I am trying to create a bridge network on centos 7. Unfortunately it does not work with my playbook. What am I doing wrong? Using Fedora 25 with Ansible 2.2.1.0 to change network settings on Centos 7 64bit. This i…

---

## [Looking for an available port number](https://forum.ansible.com/t/looking-for-an-available-port-number/24168)

<div class="topic-metadata">

**Author:** [@andrew.leung](https://forum.ansible.com/u/andrew.leung)\
**Replies:** 2\
**Last updated:** [April 9, 2017, 11:37pm UTC](https://forum.ansible.com/t/looking-for-an-available-port-number/24168 "2017-04-09T23:37:07Z")

</div>

Hi, I am new to ansible and trying to test a playbook to check availability of a port number. If one found then use it, if not then go to the next one. Following is my playbook code, tasks: name: check port number b…

---

## [using nested items with json\_query?](https://forum.ansible.com/t/using-nested-items-with-json-query/24174)

<div class="topic-metadata">

**Author:** [@Tom\_Trahan](https://forum.ansible.com/u/Tom_Trahan)\
**Replies:** 0\
**Last updated:** [April 8, 2017, 12:05am UTC](https://forum.ansible.com/t/using-nested-items-with-json-query/24174 "2017-04-08T00:05:19Z")

</div>

I’m trying to do the following: From an object that stores multiple EC2 instance ids Use those values to iterate over a second json object using each individual instance id as a filter I’ve tried to do this with json\_…

---

## [Problem with AD-Related activities](https://forum.ansible.com/t/problem-with-ad-related-activities/24172)

<div class="topic-metadata">

**Author:** [@Jonathan\_Coupal](https://forum.ansible.com/u/Jonathan_Coupal)\
**Replies:** 1\
**Last updated:** [April 7, 2017, 10:13pm UTC](https://forum.ansible.com/t/problem-with-ad-related-activities/24172 "2017-04-07T22:13:54Z")

</div>

Hi, for some reason I’m really struggling with executing domain-related activities on Windows machines that are domain members. Two specific things that I’m trying to do is Rename-Computer and Remove-Computer. Note that …

---

## [Using configurationName in powershell module](https://forum.ansible.com/t/using-configurationname-in-powershell-module/24149)

<div class="topic-metadata">

**Author:** [@Vincent\_Desjardins](https://forum.ansible.com/u/Vincent_Desjardins)\
**Replies:** 6\
**Last updated:** [April 7, 2017, 10:02pm UTC](https://forum.ansible.com/t/using-configurationname-in-powershell-module/24149 "2017-04-07T22:02:39Z")

</div>

Hi, I wrote a small powershell module for Ansible. My Windows Admin wants me to use a specific configuration when connecting to the server for security. So I would like to know if Ansible can be configured to have a ses…

---

## [Ansible 2.3.0 RC5 is available for testing!](https://forum.ansible.com/t/ansible-2-3-0-rc5-is-available-for-testing/24173)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 7, 2017, 9:33pm UTC](https://forum.ansible.com/t/ansible-2-3-0-rc5-is-available-for-testing/24173 "2017-04-07T21:33:17Z")

</div>

We are happy to announce the availability of Ansible 2.3.0 RC5! A critical bug was found in some of the network modules, so we’re releasing RC5 to address it prior to the final release next week. How do you get it?

---

## [Deploying Windows OS VM to azure with Ansiblr](https://forum.ansible.com/t/deploying-windows-os-vm-to-azure-with-ansiblr/24114)

<div class="topic-metadata">

**Author:** [@brownstuff1899](https://forum.ansible.com/u/brownstuff1899)\
**Replies:** 1\
**Last updated:** [April 7, 2017, 9:05pm UTC](https://forum.ansible.com/t/deploying-windows-os-vm-to-azure-with-ansiblr/24114 "2017-04-07T21:05:49Z")

</div>

I've created a playback to deploy a Windows VM to Azure (ARM) which fails with the following message: "InvalidParamter\\nMessage: The value of parameters linuxconfiguration is invalid.\\nTarget: linixConfiguration." I've…

---

## [Disabling VGW route propagation in AWS](https://forum.ansible.com/t/disabling-vgw-route-propagation-in-aws/24171)

<div class="topic-metadata">

**Author:** [@Paul\_Fletcher](https://forum.ansible.com/u/Paul_Fletcher)\
**Replies:** 0\
**Last updated:** [April 7, 2017, 5:29pm UTC](https://forum.ansible.com/t/disabling-vgw-route-propagation-in-aws/24171 "2017-04-07T17:29:07Z")

</div>

Hi, Is there a way with ec2\_vpc\_route\_table or something else to disable route propagation from an attached VGW? The propagating\_vgw\_ids option can turn it on, but I have been unable to find a way to turn it off if it i…

---

## [Openstack Ansible deployment fails](https://forum.ansible.com/t/openstack-ansible-deployment-fails/24170)

<div class="topic-metadata">

**Author:** [@Saugata\_Mallick](https://forum.ansible.com/u/Saugata_Mallick)\
**Replies:** 0\
**Last updated:** [April 7, 2017, 1:01pm UTC](https://forum.ansible.com/t/openstack-ansible-deployment-fails/24170 "2017-04-07T13:01:44Z")

</div>

Hi all, I am getting error while deploying Openstack Ansible. The error is : TASK \[lxc\_container\_create : Wait for ssh to be available\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* The setup-hosts.yml script gets stuck in this command, Plea…

---

## [Specifying version when installing Apache](https://forum.ansible.com/t/specifying-version-when-installing-apache/24165)

<div class="topic-metadata">

**Author:** [@Dan\_F](https://forum.ansible.com/u/Dan_F)\
**Replies:** 1\
**Last updated:** [April 7, 2017, 5:56am UTC](https://forum.ansible.com/t/specifying-version-when-installing-apache/24165 "2017-04-07T05:56:51Z")

</div>

I’m thinking of using specific versions for everything whenever I can. This would enable me to mirror exactly what I have in one server to another at any given time. With that said, I tried a very basic install of Apach…

---

## [Wanting to submit module to core to support downloads from Nexus and artifactory repositories](https://forum.ansible.com/t/wanting-to-submit-module-to-core-to-support-downloads-from-nexus-and-artifactory-repositories/24136)

<div class="topic-metadata">

**Author:** [@Giles\_Westwood](https://forum.ansible.com/u/Giles_Westwood)\
**Replies:** 1\
**Last updated:** [April 7, 2017, 3:15am UTC](https://forum.ansible.com/t/wanting-to-submit-module-to-core-to-support-downloads-from-nexus-and-artifactory-repositories/24136 "2017-04-07T03:15:23Z")

</div>

Hi Ansible devs, I’ve helped out a bit with a module that I’d like to get into core:- https://github.com/gilesw/ansible-nexus/ Where should I add it in lib/ansible/modules when I submit my pull request?

---

## [Ansible 2.3.0 RC4 is available for testing!](https://forum.ansible.com/t/ansible-2-3-0-rc4-is-available-for-testing/24164)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 6, 2017, 7:29pm UTC](https://forum.ansible.com/t/ansible-2-3-0-rc4-is-available-for-testing/24164 "2017-04-06T19:29:43Z")

</div>

We are happy to announce the availability of Ansible 2.3.0 RC4! This release candidate fixes a few more last minute bugs, including a lot of small fixes in networking and windows modules. Using “runas” as a become met…

---

## [Set variable before hosts in playbook?](https://forum.ansible.com/t/set-variable-before-hosts-in-playbook/24161)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 4\
**Last updated:** [April 6, 2017, 7:14pm UTC](https://forum.ansible.com/t/set-variable-before-hosts-in-playbook/24161 "2017-04-06T19:14:04Z")

</div>

Is it possible to set variable before hosts in playbook? Something like this doesn’t work: \` var: VARHOSTNAME: test hosts: “{{ VARHOSTNAME }}” gather\_facts: true become: yes \` I know I can set variable in vars …

---

## [Play's included\_path does not have playbook file name?](https://forum.ansible.com/t/plays-included-path-does-not-have-playbook-file-name/24162)

<div class="topic-metadata">

**Author:** [@LeiLei\_W](https://forum.ansible.com/u/LeiLei_W)\
**Replies:** 0\
**Last updated:** [April 6, 2017, 7:01pm UTC](https://forum.ansible.com/t/plays-included-path-does-not-have-playbook-file-name/24162 "2017-04-06T19:01:18Z")

</div>

Hi everyone I installed the latest ansible version by: pip install git+git://github.com/ansible/ansible.git@devel My ansible version is: ansible 2.4.0. I am implementing the callback to send some updates for each task…

---

## [Did something change in 2.3 when using iosxr\_command?](https://forum.ansible.com/t/did-something-change-in-2-3-when-using-iosxr-command/24120)

<div class="topic-metadata">

**Author:** [@john3](https://forum.ansible.com/u/john3)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 6:38pm UTC](https://forum.ansible.com/t/did-something-change-in-2-3-when-using-iosxr-command/24120 "2017-04-06T18:38:50Z")

</div>

Hi All, I have this playbook that is using iosxr\_command to do a show version, and it is working with 2.2.2.0, but fails with 2.3RC3. Do I have to add / change something? This playbook with iosxr\_command changed to sros…

---

## [Ansible 2.1.0 to 2.2.2.0 ec2\_facts change](https://forum.ansible.com/t/ansible-2-1-0-to-2-2-2-0-ec2-facts-change/24156)

<div class="topic-metadata">

**Author:** [@Thad\_Scalf](https://forum.ansible.com/u/Thad_Scalf)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 5:59pm UTC](https://forum.ansible.com/t/ansible-2-1-0-to-2-2-2-0-ec2-facts-change/24156 "2017-04-06T17:59:18Z")

</div>

We are upgrading from ansible 2.1.0 to 2.2.2.0 and our syntax validation tests are failing on the ec2\_facts module. Syntax for using ec2\_facts has changed. To test syntax, we use: ansible-playbook --syntax-check --list-…

---

## [Conditional succeeds in 2.1.1.0 but fails in 2.2.2.0](https://forum.ansible.com/t/conditional-succeeds-in-2-1-1-0-but-fails-in-2-2-2-0/24159)

<div class="topic-metadata">

**Author:** [@Pantelis\_Karamolegko](https://forum.ansible.com/u/Pantelis_Karamolegko)\
**Replies:** 0\
**Last updated:** [April 6, 2017, 3:34pm UTC](https://forum.ansible.com/t/conditional-succeeds-in-2-1-1-0-but-fails-in-2-2-2-0/24159 "2017-04-06T15:34:47Z")

</div>

Hi, I was instructed to direct this issue here: https://github.com/ansible/ansible/issues/23358 Any suggestions why the difference in behavior? Thanks

---

## [How to construct a csv string from a dictionary](https://forum.ansible.com/t/how-to-construct-a-csv-string-from-a-dictionary/24155)

<div class="topic-metadata">

**Author:** [@The\_Gripmaster](https://forum.ansible.com/u/The_Gripmaster)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 3:09pm UTC](https://forum.ansible.com/t/how-to-construct-a-csv-string-from-a-dictionary/24155 "2017-04-06T15:09:23Z")

</div>

I have a dictionary like this customers: abc: id: 1 status: active def: id: 2 status: inactive ghi: id: 3 status: active jkl: id: 4 status: active What’s the best way to construct a string like below of the active cust…

---

## [Is there a list that details known bugs that are not yet fixed](https://forum.ansible.com/t/is-there-a-list-that-details-known-bugs-that-are-not-yet-fixed/24158)

<div class="topic-metadata">

**Author:** [@rcreatore](https://forum.ansible.com/u/rcreatore)\
**Replies:** 0\
**Last updated:** [April 6, 2017, 3:02pm UTC](https://forum.ansible.com/t/is-there-a-list-that-details-known-bugs-that-are-not-yet-fixed/24158 "2017-04-06T15:02:29Z")

</div>

We use Ansible 2.2.2.0 in a product that we sell, and a customer has asked for me to list all known bugs. I can’t seem to find a compiled list that I can download. Can someone point me to where this information might be …

---

## [How to use the ansible\_env.ProgramFiles(x86) variable](https://forum.ansible.com/t/how-to-use-the-ansible-env-programfiles-x86-variable/24153)

<div class="topic-metadata">

**Author:** [@Noel\_Verhoeven](https://forum.ansible.com/u/Noel_Verhoeven)\
**Replies:** 2\
**Last updated:** [April 6, 2017, 2:35pm UTC](https://forum.ansible.com/t/how-to-use-the-ansible-env-programfiles-x86-variable/24153 "2017-04-06T14:35:10Z")

</div>

I’ve been trying to use this variable (host is a windows 2K12 machine), but I guess the parsers trip over the brackets/parentheses in the name in the last task … Previous tasks all work correct. Should be better to renam…

---

## [ElastiCache error in Ec2.py while running playbooks](https://forum.ansible.com/t/elasticache-error-in-ec2-py-while-running-playbooks/23240)

<div class="topic-metadata">

**Author:** [@Abhilash\_Panickar](https://forum.ansible.com/u/Abhilash_Panickar)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 2:08pm UTC](https://forum.ansible.com/t/elasticache-error-in-ec2-py-while-running-playbooks/23240 "2017-04-06T14:08:06Z")

</div>

Hi, For the past few days I am getting the following error when running ansible playbooks using the AWS cloud modules or when directly running the ec2.py file with the --refresh-cache command from my local machine: ap:…

---

## [Postgresql\_exec module](https://forum.ansible.com/t/postgresql-exec-module/24137)

<div class="topic-metadata">

**Author:** [@Giles\_Westwood](https://forum.ansible.com/u/Giles_Westwood)\
**Replies:** 2\
**Last updated:** [April 6, 2017, 12:08pm UTC](https://forum.ansible.com/t/postgresql-exec-module/24137 "2017-04-06T12:08:54Z")

</div>

Hi Ansible devs, I’m attempting to make this module 2.x compatible in the hope I can get it added to core because it would nicely add to the postgresql\_ set of modules https://github.com/jirutka/ansible-modules/blob/ma…

---

## [jinja2.ChoiceLoader](https://forum.ansible.com/t/jinja2-choiceloader/24157)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 0\
**Last updated:** [April 6, 2017, 11:55am UTC](https://forum.ansible.com/t/jinja2-choiceloader/24157 "2017-04-06T11:55:06Z")

</div>

HI! I'd like to give the "user" the possibility to override arbitrary Jinja2 templates used within an ansible role without having to implement that with custom vars. Something like: http://jinja.pocoo.org/docs/2.9/ap…

---

## [Kerberos Auth - the specified credentials were rejected by the server](https://forum.ansible.com/t/kerberos-auth-the-specified-credentials-were-rejected-by-the-server/24098)

<div class="topic-metadata">

**Author:** [@meaton](https://forum.ansible.com/u/meaton)\
**Replies:** 6\
**Last updated:** [April 6, 2017, 11:24am UTC](https://forum.ansible.com/t/kerberos-auth-the-specified-credentials-were-rejected-by-the-server/24098 "2017-04-06T11:24:00Z")

</div>

Hi guys, On my Centos7 ansible control server I’m trying to connect to a windows host using a domain account. I’ve configured kerberos and installed everything (pip install pywinrm\[kerberos\]) and I have a ticket: \[meat…

---

## [win\_get\_url and 'force: no' not working?](https://forum.ansible.com/t/win-get-url-and-force-no-not-working/24151)

<div class="topic-metadata">

**Author:** [@cupcake](https://forum.ansible.com/u/cupcake)\
**Replies:** 4\
**Last updated:** [April 6, 2017, 10:42am UTC](https://forum.ansible.com/t/win-get-url-and-force-no-not-working/24151 "2017-04-06T10:42:36Z")

</div>

ansible 2.2.1.0 windows server 2008 r2 x64 Trying to use win\_get\_url for an xml file update. I can curl the file and see that it notices newer timestamp but force: no does not pull the new file down. pbook: \`

---

## [Help needed to construct a cvs list of values from a dictionary](https://forum.ansible.com/t/help-needed-to-construct-a-cvs-list-of-values-from-a-dictionary/24154)

<div class="topic-metadata">

**Author:** [@The\_Gripmaster](https://forum.ansible.com/u/The_Gripmaster)\
**Replies:** 0\
**Last updated:** [April 6, 2017, 7:52am UTC](https://forum.ansible.com/t/help-needed-to-construct-a-cvs-list-of-values-from-a-dictionary/24154 "2017-04-06T07:52:17Z")

</div>

I have a dictionary like this customers: abc: id: 1 status: active def: id: 2 status: inactive ghi: id: 3 status: active jkl: id: 4 status: active What’s the easiest (Ansible) way to construct a string like below assig…

---

## [ansible motd changed login prompt](https://forum.ansible.com/t/ansible-motd-changed-login-prompt/24148)

<div class="topic-metadata">

**Author:** [@Robert\_Recchia](https://forum.ansible.com/u/Robert_Recchia)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 7:24am UTC](https://forum.ansible.com/t/ansible-motd-changed-login-prompt/24148 "2017-04-06T07:24:04Z")

</div>

This is weird and I am not sure of what really caused it all I know is I just wanted to start making motd files bit more useful. Created this simple playbook

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

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