# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=494

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

**Page:** 495

---

## [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…

---

## [continue execution of tasks on both hosts](https://forum.ansible.com/t/continue-execution-of-tasks-on-both-hosts/24268)

<div class="topic-metadata">

**Author:** [@Robert\_Recchia](https://forum.ansible.com/u/Robert_Recchia)\
**Replies:** 1\
**Last updated:** [April 20, 2017, 5:29pm UTC](https://forum.ansible.com/t/continue-execution-of-tasks-on-both-hosts/24268 "2017-04-20T17:29:44Z")

</div>

I am creating a playbook that is used for multiple hosts - now this might not be the best way but I still want to figure it out. I have two hosts now one that is centos 7 and one that is in amazon ec2. Obviously one uses…

---

## [Can't execute 2 plays in a playbook in ansible-tower](https://forum.ansible.com/t/cant-execute-2-plays-in-a-playbook-in-ansible-tower/24258)

<div class="topic-metadata">

**Author:** [@nmath](https://forum.ansible.com/u/nmath)\
**Replies:** 1\
**Last updated:** [April 20, 2017, 5:14pm UTC](https://forum.ansible.com/t/cant-execute-2-plays-in-a-playbook-in-ansible-tower/24258 "2017-04-20T17:14:07Z")

</div>

Hi, I have a playbook which contains 2 plays, one for installing a server (with static IP set) and another to install & configure DNS in this server. For an example: setupdns.yml #play 1 # Installation of DNS VM - …

---

## [how to run task as unprivileged user](https://forum.ansible.com/t/how-to-run-task-as-unprivileged-user/24259)

<div class="topic-metadata">

**Author:** [@user22](https://forum.ansible.com/u/user22)\
**Replies:** 1\
**Last updated:** [April 20, 2017, 4:58pm UTC](https://forum.ansible.com/t/how-to-run-task-as-unprivileged-user/24259 "2017-04-20T16:58:47Z")

</div>

Good day. I have a sudo user(user1) on the server and i need to run a task as another unprivilleged user(user2). A dont know a password for user2 and regular way to run something as user2 that login as user1 run “sudo -…

---

## [hg username and password](https://forum.ansible.com/t/hg-username-and-password/24265)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 0\
**Last updated:** [April 20, 2017, 1:57pm UTC](https://forum.ansible.com/t/hg-username-and-password/24265 "2017-04-20T13:57:21Z")

</div>

http://docs.ansible.com/ansible/hg\_module.html How can we give the username and password for accessing the repos in hg module

---

## [how to solve ansible connexion problem to a junos device?](https://forum.ansible.com/t/how-to-solve-ansible-connexion-problem-to-a-junos-device/24264)

<div class="topic-metadata">

**Author:** [@fatimazahra.bouhajba](https://forum.ansible.com/u/fatimazahra.bouhajba)\
**Replies:** 0\
**Last updated:** [April 20, 2017, 11:33am UTC](https://forum.ansible.com/t/how-to-solve-ansible-connexion-problem-to-a-junos-device/24264 "2017-04-20T11:33:52Z")

</div>

Hi all, I’m new to ansible, and I need to backup a junos device configuration, I tried the solution bellow host aa.bb.cc.dd ####playbook

[Previous page](https://forum.ansible.com/c/archives/31.md?page=493)

[Next page](https://forum.ansible.com/c/archives/31.md?page=495)
