# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=285

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

**Page:** 286

---

## [WINRM Connection always ends up with "STDERR An error occurred while creating the pipeline"](https://forum.ansible.com/t/winrm-connection-always-ends-up-with-stderr-an-error-occurred-while-creating-the-pipeline/26581)

<div class="topic-metadata">

**Author:** [@Jeremie\_Levy](https://forum.ansible.com/u/Jeremie_Levy)\
**Replies:** 4\
**Last updated:** [January 29, 2018, 2:50pm UTC](https://forum.ansible.com/t/winrm-connection-always-ends-up-with-stderr-an-error-occurred-while-creating-the-pipeline/26581 "2018-01-29T14:50:03Z")

</div>

Hi Any task i run is followed by this WINRM error I am not sure it’s an error since the task is done successfully, does someone knows about this? \` TASK \[Create KIT folder if missing\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [UnArchive fails](https://forum.ansible.com/t/unarchive-fails/26583)

<div class="topic-metadata">

**Author:** [@kumar\_c](https://forum.ansible.com/u/kumar_c)\
**Replies:** 1\
**Last updated:** [January 29, 2018, 2:10pm UTC](https://forum.ansible.com/t/unarchive-fails/26583 "2018-01-29T14:10:38Z")

</div>

Hi there, trying to un-archive from ansible controller machine to remote… But, it’s throwing error’s… Error :- FAILED! =\> {“changed”: false, “msg”: “Failed to find handler for "/root/.ansible/tmp/ansible-tmp-15172232…

---

## [How to use grouped/combined register variable output values \[values can be repeated/duplicate\] of multiple hosts?](https://forum.ansible.com/t/how-to-use-grouped-combined-register-variable-output-values-values-can-be-repeated-duplicate-of-multiple-hosts/26584)

<div class="topic-metadata">

**Author:** [@Karthik\_V](https://forum.ansible.com/u/Karthik_V)\
**Replies:** 0\
**Last updated:** [January 29, 2018, 11:11am UTC](https://forum.ansible.com/t/how-to-use-grouped-combined-register-variable-output-values-values-can-be-repeated-duplicate-of-multiple-hosts/26584 "2018-01-29T11:11:33Z")

</div>

When I list the subnet cidr of every host in an environment I get repeated subent cidrs in the output as multiple hosts can be in same subnet. What I’m trying to achieve is run a shell command in ansible for each unique…

---

## [How to display ansible\_host in console output even if an alias is defined at inventory level](https://forum.ansible.com/t/how-to-display-ansible-host-in-console-output-even-if-an-alias-is-defined-at-inventory-level/26576)

<div class="topic-metadata">

**Author:** [@Julio\_Fernandez](https://forum.ansible.com/u/Julio_Fernandez)\
**Replies:** 3\
**Last updated:** [January 29, 2018, 2:21am UTC](https://forum.ansible.com/t/how-to-display-ansible-host-in-console-output-even-if-an-alias-is-defined-at-inventory-level/26576 "2018-01-29T02:21:50Z")

</div>

Hi everyone! We currently use ansible\_host variable and define an alias for the hosts we use as follows: Inventory file \[my\_jboss\_servers\] jboss\_server1 ansible\_host=myhostnameABC jboss\_server2 ansible\_host=myhostname…

---

## [service module fails to start nginx usig a docker connection](https://forum.ansible.com/t/service-module-fails-to-start-nginx-usig-a-docker-connection/26577)

<div class="topic-metadata">

**Author:** [@Ruben\_Decrop](https://forum.ansible.com/u/Ruben_Decrop)\
**Replies:** 1\
**Last updated:** [January 28, 2018, 4:51pm UTC](https://forum.ansible.com/t/service-module-fails-to-start-nginx-usig-a-docker-connection/26577 "2018-01-28T16:51:30Z")

</div>

I am using ansible to manage a group of Docker containers, using docker\_connection. All goes well unitl I am instructing nginx to be started in the container using this snippet \` name: ensure nginx started service: …

---

## [double with\_items and loops](https://forum.ansible.com/t/double-with-items-and-loops/26569)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 13\
**Last updated:** [January 27, 2018, 7:34pm UTC](https://forum.ansible.com/t/double-with-items-and-loops/26569 "2018-01-27T19:34:03Z")

</div>

I have the following, and wish to combine them, but don’t know how because my with\_items is referencing a variable. Wondering if someone can guide me (if possible) on how to combine these two stanzas: \` name: Add DNS…

---

## [Python Module not found](https://forum.ansible.com/t/python-module-not-found/26573)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 0\
**Last updated:** [January 27, 2018, 7:19am UTC](https://forum.ansible.com/t/python-module-not-found/26573 "2018-01-27T07:19:06Z")

</div>

I have read the documentation and install module zabbix-api on host and python version is 2.7…On the ansible server: ansible 2.4.2.0 config file = /ansible/ansible.cfg configured module search path = \[u'/root/.ansible…

---

## [AWS Security Group and VPC Peering](https://forum.ansible.com/t/aws-security-group-and-vpc-peering/26572)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 0\
**Last updated:** [January 26, 2018, 6:15pm UTC](https://forum.ansible.com/t/aws-security-group-and-vpc-peering/26572 "2018-01-26T18:15:36Z")

</div>

I am trying to allow a security group from a VPC peer, access to resources on another security group. Exactly what is described here. I am using ansible 2.5 https://github.com/ansible/ansible/pull/28876 My VPC is activ…

---

## [How to retry up to N times (on failures) with win\_get\_url](https://forum.ansible.com/t/how-to-retry-up-to-n-times-on-failures-with-win-get-url/26555)

<div class="topic-metadata">

**Author:** [@SurferL](https://forum.ansible.com/u/SurferL)\
**Replies:** 2\
**Last updated:** [January 26, 2018, 10:24am UTC](https://forum.ansible.com/t/how-to-retry-up-to-n-times-on-failures-with-win-get-url/26555 "2018-01-26T10:24:57Z")

</div>

Sometimes when using win\_get\_url, it fails with my downloads with fatal: : UNREACHABLE! =\> {“changed”: false, “msg”: “ssl: (u’http’, u’Bad HTTP response returned from server. Code 500’)”, “unreachable”: true} As you can…

---

## [Ansible Service Module and sudo](https://forum.ansible.com/t/ansible-service-module-and-sudo/20379)

<div class="topic-metadata">

**Author:** [@Isa](https://forum.ansible.com/u/Isa)\
**Replies:** 1\
**Last updated:** [January 26, 2018, 8:26am UTC](https://forum.ansible.com/t/ansible-service-module-and-sudo/20379 "2018-01-26T08:26:46Z")

</div>

Hi All I am trying to user a systemd service with ansible. Basically I am trying to restart jboss with a jboss user. I have allowed this user to stop/start/ using sudo without a password in the sudoers file and it works …

---

## [Ansible shell moudle](https://forum.ansible.com/t/ansible-shell-moudle/26564)

<div class="topic-metadata">

**Author:** [@Subrat\_Mahapatra](https://forum.ansible.com/u/Subrat_Mahapatra)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 10:05pm UTC](https://forum.ansible.com/t/ansible-shell-moudle/26564 "2018-01-25T22:05:22Z")

</div>

Hi There, I am trying to execute a Predefined shell script on a remote server through Ansible. While executing the playbook the script with arguments got executed properly and i got the output as well. When I am check…

---

## [Any tips on working with SQL Express on Windows](https://forum.ansible.com/t/any-tips-on-working-with-sql-express-on-windows/26538)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 5\
**Last updated:** [January 25, 2018, 9:05pm UTC](https://forum.ansible.com/t/any-tips-on-working-with-sql-express-on-windows/26538 "2018-01-25T21:05:13Z")

</div>

I'm looking to start a project working against an Amazon image with SQL Express preinstalled. I know that it comes with windows auth. I know I can also configure the authentication mode to use a SA account. My real issue…

---

## [Searching for documentation covering the regex characters Ansible uses](https://forum.ansible.com/t/searching-for-documentation-covering-the-regex-characters-ansible-uses/26568)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 6:28pm UTC](https://forum.ansible.com/t/searching-for-documentation-covering-the-regex-characters-ansible-uses/26568 "2018-01-25T18:28:50Z")

</div>

I’m trying to find a list of all regex characters Ansible uses in its definitions. For example, the in the files module, the blockinfile definition has an insertafter parameter that accepts regex instead of ‘EOF’ but I …

---

## [Getting a batch to run as administrator Windows](https://forum.ansible.com/t/getting-a-batch-to-run-as-administrator-windows/26559)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 2\
**Last updated:** [January 25, 2018, 5:12pm UTC](https://forum.ansible.com/t/getting-a-batch-to-run-as-administrator-windows/26559 "2018-01-25T17:12:34Z")

</div>

Hi, TL;DR - need the “run as administrator” to be automated. I have tried and tried to get a bat file to run as administrator on a windows box. What it is supposed to do is chmod a file in cygwin. Manually, if i righ…

---

## [how to use dynamic calling of a variable which is present in vars file](https://forum.ansible.com/t/how-to-use-dynamic-calling-of-a-variable-which-is-present-in-vars-file/26554)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 4\
**Last updated:** [January 25, 2018, 2:02pm UTC](https://forum.ansible.com/t/how-to-use-dynamic-calling-of-a-variable-which-is-present-in-vars-file/26554 "2018-01-25T14:02:06Z")

</div>

Hi All, My variable file: VISEBS\_SYSTEM: password My yaml.file: I’ll be passing a argument to my playbook as -e “src=VISEBS”, in my playbook i am trying to get dynamically the VISEBS\_SYSTEM value. any suggestions i…

---

## [Playbook and vmware\_inventory dynamic](https://forum.ansible.com/t/playbook-and-vmware-inventory-dynamic/26566)

<div class="topic-metadata">

**Author:** [@David\_Jourdain](https://forum.ansible.com/u/David_Jourdain)\
**Replies:** 0\
**Last updated:** [January 25, 2018, 11:50am UTC](https://forum.ansible.com/t/playbook-and-vmware-inventory-dynamic/26566 "2018-01-25T11:50:27Z")

</div>

Hi all, I have a little problem. The vmware\_inventory.py work for my dynamic inventory of vmware. But when i try my playbook ping.yml , that not loads the inventory. ansible-playbook ping.yml -i ‘/etc/ansible/modules…

---

## [How to change the IP and Hostname After create a guest VM through VMware vSphere with vsphere\_guest - need help or advice](https://forum.ansible.com/t/how-to-change-the-ip-and-hostname-after-create-a-guest-vm-through-vmware-vsphere-with-vsphere-guest-need-help-or-advice/21131)

<div class="topic-metadata">

**Author:** [@Ben1](https://forum.ansible.com/u/Ben1)\
**Replies:** 3\
**Last updated:** [January 25, 2018, 7:27am UTC](https://forum.ansible.com/t/how-to-change-the-ip-and-hostname-after-create-a-guest-vm-through-vmware-vsphere-with-vsphere-guest-need-help-or-advice/21131 "2018-01-25T07:27:35Z")

</div>

I am new in ansible… After create a guest with vsphere\_guest i want to be able : how I can create 5 VM and not just 1 how can I give all of them IPs and Hostnames Thanks Ben my playbook:

---

## [per-host proxy setting](https://forum.ansible.com/t/per-host-proxy-setting/26548)

<div class="topic-metadata">

**Author:** [@Sureshkumar\_Kalianna](https://forum.ansible.com/u/Sureshkumar_Kalianna)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 7:00am UTC](https://forum.ansible.com/t/per-host-proxy-setting/26548 "2018-01-25T07:00:13Z")

</div>

Hi, Can https\_proxy be set on a per-host basis for e.g, \[nodes\] NFL-00053.abc.com ansible\_ssh\_port=16385 ansible\_ssh\_host=localhost https\_proxy=http://192.168.101.1:3128 This doesn’t seem to work. The https\_proxy lo…

---

## [How to deploy kvm vm using Ansible](https://forum.ansible.com/t/how-to-deploy-kvm-vm-using-ansible/26563)

<div class="topic-metadata">

**Author:** [@minesh\_custom](https://forum.ansible.com/u/minesh_custom)\
**Replies:** 0\
**Last updated:** [January 25, 2018, 3:51am UTC](https://forum.ansible.com/t/how-to-deploy-kvm-vm-using-ansible/26563 "2018-01-25T03:51:17Z")

</div>

How to deploy kvm vm using ansible.

---

## [Ansible-2.4.3-rc3](https://forum.ansible.com/t/ansible-2-4-3-rc3/26562)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [January 25, 2018, 2:56am UTC](https://forum.ansible.com/t/ansible-2-4-3-rc3/26562 "2018-01-25T02:56:04Z")

</div>

Hi all, we're happy to announce that RC3 for 2.4.3 is now available for testing. How do you get it?

---

## [Question:  Network restart stuff](https://forum.ansible.com/t/question-network-restart-stuff/26561)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 11:31pm UTC](https://forum.ansible.com/t/question-network-restart-stuff/26561 "2018-01-24T23:31:04Z")

</div>

I know that ssh is smart enough to stay connected (or reconnect), but I am wondering if there is a general rule of thumb to keep in mind when restarting network services via ansible? ie. I am disabling NetworkManager on …

---

## [How to measure the time a task is taking to complete](https://forum.ansible.com/t/how-to-measure-the-time-a-task-is-taking-to-complete/26557)

<div class="topic-metadata">

**Author:** [@Narahari\_Lakshminara](https://forum.ansible.com/u/Narahari_Lakshminara)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 5:31pm UTC](https://forum.ansible.com/t/how-to-measure-the-time-a-task-is-taking-to-complete/26557 "2018-01-24T17:31:23Z")

</div>

Friends: Is there a way to measure the amount of time it takes to run task so I can get an idea how much time we are spending to deploy packages ? -N

---

## [How to sftp a file? get\_url failing 'need secure connection'](https://forum.ansible.com/t/how-to-sftp-a-file-get-url-failing-need-secure-connection/26558)

<div class="topic-metadata">

**Author:** [@G\_T](https://forum.ansible.com/u/G_T)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 5:04pm UTC](https://forum.ansible.com/t/how-to-sftp-a-file-get-url-failing-need-secure-connection/26558 "2018-01-24T17:04:33Z")

</div>

Hi all, I am attempting to sftp a file from an ftp server to a target host. I am attempting to use get\_url with the url in the below format but getting ‘urlopen error ftp error: 530 Not logged in, need secure connection’…

---

## [Command module failure- ansible](https://forum.ansible.com/t/command-module-failure-ansible/26539)

<div class="topic-metadata">

**Author:** [@Jayashri\_Garud](https://forum.ansible.com/u/Jayashri_Garud)\
**Replies:** 4\
**Last updated:** [January 24, 2018, 1:45pm UTC](https://forum.ansible.com/t/command-module-failure-ansible/26539 "2018-01-24T13:45:26Z")

</div>

Hi, I have a playbook for deployment . In which I have a task which execute script to extract artifacts. I am using jenkins server to run ansible. while running this playbook it is throwing error like “MODULE FAILURE”. …

---

## [template module: Failed to get information on remote file : Connection closed](https://forum.ansible.com/t/template-module-failed-to-get-information-on-remote-file-connection-closed/26530)

<div class="topic-metadata">

**Author:** [@rdxmbr](https://forum.ansible.com/u/rdxmbr)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 11:29am UTC](https://forum.ansible.com/t/template-module-failed-to-get-information-on-remote-file-connection-closed/26530 "2018-01-24T11:29:56Z")

</div>

Hi, with ansible v2.4.2.0 I have a problem on some hosts with the template module: TASK \[etc\_hosts : generate /etc/hosts for this domain\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [msg: Failed to find required executable mysql](https://forum.ansible.com/t/msg-failed-to-find-required-executable-mysql/17022)

<div class="topic-metadata">

**Author:** [@Marti\_Butler](https://forum.ansible.com/u/Marti_Butler)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 7:27am UTC](https://forum.ansible.com/t/msg-failed-to-find-required-executable-mysql/17022 "2018-01-24T07:27:05Z")

</div>

Hi I am importing an SQL file into my already created DB but getting the above error: name: import database mysql\_db: name=DB state=import target=DB.sql login\_user=root login\_host=localhost login\_unix\_socket=/var/lib…

---

## [Setting variables from within a plugin](https://forum.ansible.com/t/setting-variables-from-within-a-plugin/26547)

<div class="topic-metadata">

**Author:** [@thebearup](https://forum.ansible.com/u/thebearup)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 1:41am UTC](https://forum.ansible.com/t/setting-variables-from-within-a-plugin/26547 "2018-01-24T01:41:31Z")

</div>

Any pointers on writing data to a task variable from within a plugin? I’ve looked at the host\_group\_vars plugin (which just returns a dictionary) and at the templar (set\_available\_variables). I can get the current variab…

---

## [include\_tasks:  multipe yml files](https://forum.ansible.com/t/include-tasks-multipe-yml-files/26546)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [January 23, 2018, 10:49pm UTC](https://forum.ansible.com/t/include-tasks-multipe-yml-files/26546 "2018-01-23T22:49:43Z")

</div>

I can’t seem to find examples on this that show more than one task/yml file. How can I specify multiple files for include\_tasks? \` include\_tasks: test.yml, test2.yml, test3.yml when: install\_type | lower | search (“n…

---

## [Bug: ansible json cache not always invalidated when switching between non/privileged plays](https://forum.ansible.com/t/bug-ansible-json-cache-not-always-invalidated-when-switching-between-non-privileged-plays/26545)

<div class="topic-metadata">

**Author:** [@Budding\_Mechanic](https://forum.ansible.com/u/Budding_Mechanic)\
**Replies:** 0\
**Last updated:** [January 23, 2018, 9:12pm UTC](https://forum.ansible.com/t/bug-ansible-json-cache-not-always-invalidated-when-switching-between-non-privileged-plays/26545 "2018-01-23T21:12:37Z")

</div>

I found an issue in ansible 2.4.2.0. This may have existed in previous versions. \[defaults\] callback\_whitelist = timer fact\_caching = jsonfile fact\_caching\_connection = ./.fact\_cache gathering = smart host\_key\_chec…

---

## [ERROR! Unexpected Exception, this is probably a bug: unhashable type: 'dict'](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-unhashable-type-dict/26543)

<div class="topic-metadata">

**Author:** [@timothy.wall](https://forum.ansible.com/u/timothy.wall)\
**Replies:** 2\
**Last updated:** [January 23, 2018, 7:51pm UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-unhashable-type-dict/26543 "2018-01-23T19:51:22Z")

</div>

Running Ansible 2.4.2.0 on OSX 10.13.2 (via macports), python version 3.6.4. I’m running a playbook of some 100-odd tasks and this error occurs at some point in that operation. I can repeatedly run the playbook and get …

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=284)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=286)
