# Latest

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

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

**Page:** 666

---

## [Passing a variable into 'hosts' in the same playbooks](https://forum.ansible.com/t/passing-a-variable-into-hosts-in-the-same-playbooks/24276)

<div class="topic-metadata">

**Author:** [@Tony\_Xynidakis](https://forum.ansible.com/u/Tony_Xynidakis)\
**Replies:** 1\
**Last updated:** [April 24, 2017, 2:30pm UTC](https://forum.ansible.com/t/passing-a-variable-into-hosts-in-the-same-playbooks/24276 "2017-04-24T14:30:15Z")

</div>

Hi Sorry I’m coding and learning at the same time I’m writing a playbook to generate an AMI in ansible basic steps of the playbook launch an EC2 instance in AWS 1.a wait for ssh port to come up refresh cached outpu…

---

## [template backup names?](https://forum.ansible.com/t/template-backup-names/24283)

<div class="topic-metadata">

**Author:** [@Dave\_Martin](https://forum.ansible.com/u/Dave_Martin)\
**Replies:** 2\
**Last updated:** [April 24, 2017, 1:17pm UTC](https://forum.ansible.com/t/template-backup-names/24283 "2017-04-24T13:17:39Z")

</div>

So, why is there a process ID in the extension added to the backup file created by a template action? Any why not put it at the end so they sort correctly? The process id is ephemeral - by the time you go look a the fil…

---

## [Removed restricted key from module data after upgrade to 2.3](https://forum.ansible.com/t/removed-restricted-key-from-module-data-after-upgrade-to-2-3/24294)

<div class="topic-metadata">

**Author:** [@Tomasz\_Lesniewski](https://forum.ansible.com/u/Tomasz_Lesniewski)\
**Replies:** 0\
**Last updated:** [April 24, 2017, 11:03am UTC](https://forum.ansible.com/t/removed-restricted-key-from-module-data-after-upgrade-to-2-3/24294 "2017-04-24T11:03:38Z")

</div>

Hi, after upgrade from 2.2.1 to 2.3 i have warning: \[WARNING\]: Removed restricted key from module data: ansible\_lxc\_221592 \[…\] rest of interface data \[…\] where lxc\_221592 is name of lxc container interface. I can’t fi…

---

## [Getting vars\_plugins to work.](https://forum.ansible.com/t/getting-vars-plugins-to-work/24292)

<div class="topic-metadata">

**Author:** [@Josef\_Karthauser](https://forum.ansible.com/u/Josef_Karthauser)\
**Replies:** 0\
**Last updated:** [April 24, 2017, 7:14am UTC](https://forum.ansible.com/t/getting-vars-plugins-to-work/24292 "2017-04-24T07:14:57Z")

</div>

Hey folks, Can someone please help me with a vars\_plugins/ issue? I can’t get them to work! I’m not convinced that they work at all (under 2.3 and above). For example if I intentionally put a syntax error in lib/ansib…

---

## [not able to connect to windows host](https://forum.ansible.com/t/not-able-to-connect-to-windows-host/23753)

<div class="topic-metadata">

**Author:** [@Akshay\_Khanna](https://forum.ansible.com/u/Akshay_Khanna)\
**Replies:** 3\
**Last updated:** [April 24, 2017, 7:09am UTC](https://forum.ansible.com/t/not-able-to-connect-to-windows-host/23753 "2017-04-24T07:09:19Z")

</div>

Hi Team, i am new to Ansible, and i am trying to connect windows host and getting below error: \[@ ~\]$ ansible windows -m win\_ping --ask-vault-pass -vvv Using /etc/ansible/ansible.cfg as config file Vault password: U…

---

## [Mercurial for windows](https://forum.ansible.com/t/mercurial-for-windows/24267)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 2\
**Last updated:** [April 24, 2017, 6:53am UTC](https://forum.ansible.com/t/mercurial-for-windows/24267 "2017-04-24T06:53:50Z")

</div>

do we have any module of hg for windows in ansible…or can the hg module be used for maintaining repos in windows

---

## [what does \>- mean ?](https://forum.ansible.com/t/what-does-mean/24278)

<div class="topic-metadata">

**Author:** [@Bruce\_Auyeung](https://forum.ansible.com/u/Bruce_Auyeung)\
**Replies:** 1\
**Last updated:** [April 24, 2017, 3:53am UTC](https://forum.ansible.com/t/what-does-mean/24278 "2017-04-24T03:53:39Z")

</div>

there are some tasks like this in kargo project \` name: Register docker images info raw: \>- {{ docker\_bin\_dir }}/docker images -q | xargs {{ docker\_bin\_dir }}/docker inspect -f “{{ ‘{{’ }} .RepoTags {{ ‘}}’ }},{{ ‘{…

---

## [failing while connecting to Windows using AD credentials](https://forum.ansible.com/t/failing-while-connecting-to-windows-using-ad-credentials/24291)

<div class="topic-metadata">

**Author:** [@Nergalgreed\_Es](https://forum.ansible.com/u/Nergalgreed_Es)\
**Replies:** 1\
**Last updated:** [April 24, 2017, 1:19am UTC](https://forum.ansible.com/t/failing-while-connecting-to-windows-using-ad-credentials/24291 "2017-04-24T01:19:10Z")

</div>

Hello all. I am a ansible Rookie. I am trying to setup ansible to manage Windows machines. but i got some issues. here I will share some information about my system and my configuration. I hope you can help me. Thank …

---

## [Fails with "Enter passphrase for key"](https://forum.ansible.com/t/fails-with-enter-passphrase-for-key/24241)

<div class="topic-metadata">

**Author:** [@Stiv\_Ostenberg](https://forum.ansible.com/u/Stiv_Ostenberg)\
**Replies:** 1\
**Last updated:** [April 24, 2017, 12:51am UTC](https://forum.ansible.com/t/fails-with-enter-passphrase-for-key/24241 "2017-04-24T00:51:39Z")

</div>

Trying to work through some Ansible training, but failing to run Ansible playbooks. It took me quite a while to figure out the relationship between the “~/.ssh/config” and the “/etc/ansible/hosts” to get things to where…

---

## [Callback plugins : host available as a task attribute in v2\_playbook\_on\_task\_start()](https://forum.ansible.com/t/callback-plugins-host-available-as-a-task-attribute-in-v2-playbook-on-task-start/24251)

<div class="topic-metadata">

**Author:** [@Eric\_Salome](https://forum.ansible.com/u/Eric_Salome)\
**Replies:** 3\
**Last updated:** [April 23, 2017, 12:43pm UTC](https://forum.ansible.com/t/callback-plugins-host-available-as-a-task-attribute-in-v2-playbook-on-task-start/24251 "2017-04-23T12:43:57Z")

</div>

Hi, In an Ansible V2 callback plugin : Within def v2\_playbook\_on\_play\_start(self, play): I have the list of hosts to play with in play.hosts (which is fine) Within def v2\_playbook\_on\_stats(self, stats): I have the l…

---

## [Is win\_msi deprecated or not ?](https://forum.ansible.com/t/is-win-msi-deprecated-or-not/24246)

<div class="topic-metadata">

**Author:** [@Tai\_Kedzierski](https://forum.ansible.com/u/Tai_Kedzierski)\
**Replies:** 3\
**Last updated:** [April 22, 2017, 5:09pm UTC](https://forum.ansible.com/t/is-win-msi-deprecated-or-not/24246 "2017-04-22T17:09:09Z")

</div>

Hello (Apologies if this is a double-post - I am sure I posted yesterday, but I do not see the item in the list or in my activities…) The docs page for the win\_msi module states that the module is deprecated, and its i…

---

## [Trying to use previous task output to new task to modify one file, But it is throwing error variable not defined](https://forum.ansible.com/t/trying-to-use-previous-task-output-to-new-task-to-modify-one-file-but-it-is-throwing-error-variable-not-defined/24281)

<div class="topic-metadata">

**Author:** [@Sudhanshu\_Sharma](https://forum.ansible.com/u/Sudhanshu_Sharma)\
**Replies:** 2\
**Last updated:** [April 22, 2017, 2:05pm UTC](https://forum.ansible.com/t/trying-to-use-previous-task-output-to-new-task-to-modify-one-file-but-it-is-throwing-error-variable-not-defined/24281 "2017-04-22T14:05:06Z")

</div>

Hi, I am trying to use previous task output to new task to modify one file, But it is throwing error variable not defined -

---

## [nxos\_interface crashes when interface Vlan is specified](https://forum.ansible.com/t/nxos-interface-crashes-when-interface-vlan-is-specified/24290)

<div class="topic-metadata">

**Author:** [@Petr\_Hruby](https://forum.ansible.com/u/Petr_Hruby)\
**Replies:** 0\
**Last updated:** [April 22, 2017, 11:38am UTC](https://forum.ansible.com/t/nxos-interface-crashes-when-interface-vlan-is-specified/24290 "2017-04-22T11:38:05Z")

</div>

Hello all, I’ve just started to play with Ansible.When I run playbook which should create int Vlan, the Vlan is created but the playbook ends with errors. tasks: name: Create interface nxos\_interface: interface: Vl…

---

## [using a custom ansible module from a python package](https://forum.ansible.com/t/using-a-custom-ansible-module-from-a-python-package/24289)

<div class="topic-metadata">

**Author:** [@Joseph\_Lorenzini](https://forum.ansible.com/u/Joseph_Lorenzini)\
**Replies:** 0\
**Last updated:** [April 21, 2017, 10:00pm UTC](https://forum.ansible.com/t/using-a-custom-ansible-module-from-a-python-package/24289 "2017-04-21T22:00:48Z")

</div>

Hi all, Let’s say I create a python package (may have one or more subdirectories with the appropriate init.py file). Can I have ansible module in this package and have ansible copy over the entire package and run it? Wh…

---

## [wait\_for port isn't waiting](https://forum.ansible.com/t/wait-for-port-isnt-waiting/24288)

<div class="topic-metadata">

**Author:** [@Brian\_Williams1](https://forum.ansible.com/u/Brian_Williams1)\
**Replies:** 0\
**Last updated:** [April 21, 2017, 9:56pm UTC](https://forum.ansible.com/t/wait-for-port-isnt-waiting/24288 "2017-04-21T21:56:43Z")

</div>

Hi everyone, I have a playbook where I am waiting for a port to come up. On certain machines it sometimes doesn’t waits and immediately fails. I’m not certain what is causing this, and I can’t easily reproduce. Here is…

---

## [Multiple modules in a same task](https://forum.ansible.com/t/multiple-modules-in-a-same-task/24279)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 2\
**Last updated:** [April 21, 2017, 7:23pm UTC](https://forum.ansible.com/t/multiple-modules-in-a-same-task/24279 "2017-04-21T19:23:09Z")

</div>

Is it possible to have multiple modules in same task? for example : if i want to copy a file and extract it cant i use copy and unzip in same task? should i create separate tasks for each module?

---

## [Undefined variables, dicts, and Ansible 2.3](https://forum.ansible.com/t/undefined-variables-dicts-and-ansible-2-3/24271)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 1\
**Last updated:** [April 21, 2017, 7:19pm UTC](https://forum.ansible.com/t/undefined-variables-dicts-and-ansible-2-3/24271 "2017-04-21T19:19:47Z")

</div>

Given this playbook: - hosts: localhost vars: mydict: { a: apple, b: banana } myfruit: "{{ mydict\[myletter\] }}" tasks: - debug: msg="My fruit is {{ myvar }}" when: myfruit is de…

---

## [How do I use a variable in an inventory file in a template](https://forum.ansible.com/t/how-do-i-use-a-variable-in-an-inventory-file-in-a-template/24286)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [April 21, 2017, 5:46pm UTC](https://forum.ansible.com/t/how-do-i-use-a-variable-in-an-inventory-file-in-a-template/24286 "2017-04-21T17:46:30Z")

</div>

| up vote down votefavorite | I have this inventory file inventory/hosts\_elk \<br\>\[elk-client-0\]\<br\>10.11.22.22\<br\>\<br\> Now I have a template, and I want to do this elk\_server.yml.j2 \<br\>elk\_serv…

---

## [optimize haproxy enable/disable backends](https://forum.ansible.com/t/optimize-haproxy-enable-disable-backends/24254)

<div class="topic-metadata">

**Author:** [@Michael\_Bubb](https://forum.ansible.com/u/Michael_Bubb)\
**Replies:** 3\
**Last updated:** [April 21, 2017, 4:54pm UTC](https://forum.ansible.com/t/optimize-haproxy-enable-disable-backends/24254 "2017-04-21T16:54:49Z")

</div>

Hello - We have apps that use haproxy as a lb for http/https and we use 8 haproxy sockets. Below I have included a playbook extract and a sample run where I take a single server in and out of the lbs. In this example th…

---

## [var\_prompt & dynamic default values](https://forum.ansible.com/t/var-prompt-dynamic-default-values/24284)

<div class="topic-metadata">

**Author:** [@Mike\_Kingsbury](https://forum.ansible.com/u/Mike_Kingsbury)\
**Replies:** 0\
**Last updated:** [April 21, 2017, 3:28pm UTC](https://forum.ansible.com/t/var-prompt-dynamic-default-values/24284 "2017-04-21T15:28:09Z")

</div>

I’m just getting started, but I haven’t stumbled across a good solution to this problem. In the case of deploying our software stack to a group of nodes, we’re using var\_prompt to ask a series of questions about the envi…

---

## [arguments](https://forum.ansible.com/t/arguments/24272)

<div class="topic-metadata">

**Author:** [@Patricia\_Witten](https://forum.ansible.com/u/Patricia_Witten)\
**Replies:** 1\
**Last updated:** [April 21, 2017, 1:17pm UTC](https://forum.ansible.com/t/arguments/24272 "2017-04-21T13:17:34Z")

</div>

This is from a yaml script. The syntax checks ok but the arguments don’t seem right. It’s using the vyos\_config module. It fails. Does anyone have suggestions or thoughts on this message? “changed”: false, “failed”: t…

---

## [Using Ansible for bare metal installation for linux, windows and esx](https://forum.ansible.com/t/using-ansible-for-bare-metal-installation-for-linux-windows-and-esx/24233)

<div class="topic-metadata">

**Author:** [@Dinil\_T](https://forum.ansible.com/u/Dinil_T)\
**Replies:** 2\
**Last updated:** [April 21, 2017, 12:37pm UTC](https://forum.ansible.com/t/using-ansible-for-bare-metal-installation-for-linux-windows-and-esx/24233 "2017-04-21T12:37:13Z")

</div>

Hi Team, Curious to know if Ansible can do bare metal installation from scratch by integrating with PXE. The requirement is to install Linux, Windows and VMware from scratch. What I am aiming is to do remote installati…

---

## [Ansible with docker-compose](https://forum.ansible.com/t/ansible-with-docker-compose/24280)

<div class="topic-metadata">

**Author:** [@ask.arman990](https://forum.ansible.com/u/ask.arman990)\
**Replies:** 0\
**Last updated:** [April 21, 2017, 11:00am UTC](https://forum.ansible.com/t/ansible-with-docker-compose/24280 "2017-04-21T11:00:40Z")

</div>

I have docker-compose files to create solutions such as ELK stack, Kafka (Confluent Platform) and others. How can I leverage Ansible to automate this process? I am aware that starting from Ansible 2.1, docker\_service mo…

---

## [Unarchive not using remote\_tmp and filling /tmp](https://forum.ansible.com/t/unarchive-not-using-remote-tmp-and-filling-tmp/24277)

<div class="topic-metadata">

**Author:** [@Michele\_Dolfi](https://forum.ansible.com/u/Michele_Dolfi)\
**Replies:** 0\
**Last updated:** [April 21, 2017, 6:06am UTC](https://forum.ansible.com/t/unarchive-not-using-remote-tmp-and-filling-tmp/24277 "2017-04-21T06:06:47Z")

</div>

Hello, I'm using the unarchive module with a remote URL. Ansible version 2.2.1 and also updated to 2.3.0. My problem is that the archive I'm downloading is a few GB and the /tmp mount is too small. I tried to set the …

---

## [Can we create a VM with fixed MAC address (Using ansible)](https://forum.ansible.com/t/can-we-create-a-vm-with-fixed-mac-address-using-ansible/24275)

<div class="topic-metadata">

**Author:** [@Sudhanshu\_Sharma](https://forum.ansible.com/u/Sudhanshu_Sharma)\
**Replies:** 0\
**Last updated:** [April 21, 2017, 4:56am UTC](https://forum.ansible.com/t/can-we-create-a-vm-with-fixed-mac-address-using-ansible/24275 "2017-04-21T04:56:56Z")

</div>

Can we create a VM with fixed MAC address (Using ansible). I am implementing automatic installation and regression for ad product.

---

## [docker\_login works in playbook, but not in role?](https://forum.ansible.com/t/docker-login-works-in-playbook-but-not-in-role/24270)

<div class="topic-metadata">

**Author:** [@Bjorn\_Hansen](https://forum.ansible.com/u/Bjorn_Hansen)\
**Replies:** 2\
**Last updated:** [April 20, 2017, 9:13pm UTC](https://forum.ansible.com/t/docker-login-works-in-playbook-but-not-in-role/24270 "2017-04-20T21:13:50Z")

</div>

I’m trying to use a private docker registry, and seeing some weirdness that I can’t explain. Running the exact same task yaml is working as expected when I put it in a playbook and run it, but not working when running as…

---

## [cannot run an ansible playbook with vsphere\_guest support](https://forum.ansible.com/t/cannot-run-an-ansible-playbook-with-vsphere-guest-support/15133)

<div class="topic-metadata">

**Author:** [@John\_Shen](https://forum.ansible.com/u/John_Shen)\
**Replies:** 5\
**Last updated:** [April 20, 2017, 9:10pm UTC](https://forum.ansible.com/t/cannot-run-an-ansible-playbook-with-vsphere-guest-support/15133 "2017-04-20T21:10:35Z")

</div>

$ ansible-playbook vmtest.yml ERROR: vsphere\_guest is not a legal parameter in an Ansible Playbook $ ansible --version ansible 1.6 (devel c0f92317ef) last updated 2014/05/01 10:56:27 (GMT -600) i used the first examp…

---

## [When using group\_vars  : ValueError: dictionary update sequence element #0 has length 1; 2 is required](https://forum.ansible.com/t/when-using-group-vars-valueerror-dictionary-update-sequence-element-0-has-length-1-2-is-required/24266)

<div class="topic-metadata">

**Author:** [@Sean\_McConkey](https://forum.ansible.com/u/Sean_McConkey)\
**Replies:** 1\
**Last updated:** [April 20, 2017, 5:48pm UTC](https://forum.ansible.com/t/when-using-group-vars-valueerror-dictionary-update-sequence-element-0-has-length-1-2-is-required/24266 "2017-04-20T17:48:03Z")

</div>

Hi, I am introducing group\_vars & children in my inventory into my Ansible environment as I need to update cron-tabs for different geographical regions using templates the basics of what you can see below. When I run th…

---

## [SuSE Enterprise Linux Service Pack Migrations](https://forum.ansible.com/t/suse-enterprise-linux-service-pack-migrations/24269)

<div class="topic-metadata">

**Author:** [@Scott\_Whitehead](https://forum.ansible.com/u/Scott_Whitehead)\
**Replies:** 0\
**Last updated:** [April 20, 2017, 5:42pm UTC](https://forum.ansible.com/t/suse-enterprise-linux-service-pack-migrations/24269 "2017-04-20T17:42:14Z")

</div>

Hi All, Is it possible to perform service pack migration on SuSE Enterprise Linux servers using any built in Ansible modules ? For example going from SLES 11 SP3 \> SP4 or SLES 12 SP1 \> SP2 I see there is a zypper modu…

---

## [localhost getting all variables from different groups.](https://forum.ansible.com/t/localhost-getting-all-variables-from-different-groups/24252)

<div class="topic-metadata">

**Author:** [@Matt\_Snoby](https://forum.ansible.com/u/Matt_Snoby)\
**Replies:** 2\
**Last updated:** [April 20, 2017, 5:39pm UTC](https://forum.ansible.com/t/localhost-getting-all-variables-from-different-groups/24252 "2017-04-20T17:39:51Z")

</div>

Hello, I’m looking for advice on how to improve my implementation of my playbook. I know the way I have designed it is very different from the normal way of doing playbooks. I have a playbook that controls deploying con…

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

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