# Latest

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

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

**Page:** 589

---

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

---

## [Can't seem to connect to database](https://forum.ansible.com/t/cant-seem-to-connect-to-database/26556)

<div class="topic-metadata">

**Author:** [@Mark\_Constant](https://forum.ansible.com/u/Mark_Constant)\
**Replies:** 3\
**Last updated:** [January 26, 2018, 8:38am UTC](https://forum.ansible.com/t/cant-seem-to-connect-to-database/26556 "2018-01-26T08:38:40Z")

</div>

For some reason there is an issue when deploying where it won’t connect to the postres database. I get \[2018-01-24 16:24:29,905: CRITICAL/MainProcess\] Unrecoverable error: OperationalError(‘could not connect to server: …

---

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

---

## [What kind of format are those .md files in awx source code?](https://forum.ansible.com/t/what-kind-of-format-are-those-md-files-in-awx-source-code/26550)

<div class="topic-metadata">

**Author:** [@leima2046](https://forum.ansible.com/u/leima2046)\
**Replies:** 2\
**Last updated:** [January 24, 2018, 8:22pm UTC](https://forum.ansible.com/t/what-kind-of-format-are-those-md-files-in-awx-source-code/26550 "2018-01-24T20:22:16Z")

</div>

Hi, All, I see some .md files in folder awx/api/templates/api. But they do not look like Markdown Documentation files, more like jinja2 files. Anyone can tell me what kind of format those .md files are, and how to read …

---

## [:ERROR! Unexpected Exception, this is probably a bug: \[Errno 2\] No such file or directory](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-errno-2-no-such-file-or-directory/26549)

<div class="topic-metadata">

**Author:** [@sai.upenderrao](https://forum.ansible.com/u/sai.upenderrao)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 5:32pm UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-errno-2-no-such-file-or-directory/26549 "2018-01-24T17:32:08Z")

</div>

Hi Team , i am facing below issue :ERROR! Unexpected Exception, this is probably a bug: \[Errno 2\] No such file or directory using ansible 2.4.2.0 version . Can some please help me what was the issue . \[suupacha@smolab…

---

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

---

## [Volumes and persistence](https://forum.ansible.com/t/volumes-and-persistence/26544)

<div class="topic-metadata">

**Author:** [@Mark\_Constant](https://forum.ansible.com/u/Mark_Constant)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 4:30pm UTC](https://forum.ansible.com/t/volumes-and-persistence/26544 "2018-01-24T16:30:30Z")

</div>

I thought I got this working before but I can’t seem to get volumes exported. To the main.yml for docker I added volumes: /var/lib/awx/projects:/var/lib/awx/projects To both the AWX Task and AWX Web Container build …

---

## [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\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [netapp volume create play book gives error](https://forum.ansible.com/t/netapp-volume-create-play-book-gives-error/26553)

<div class="topic-metadata">

**Author:** [@Ashish\_Badgujar](https://forum.ansible.com/u/Ashish_Badgujar)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 9:36am UTC](https://forum.ansible.com/t/netapp-volume-create-play-book-gives-error/26553 "2018-01-24T09:36:24Z")

</div>

Hi ALL, i am getting below error while running playbook Using /etc/ansible/ansible.cfg as config file PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TA…

---

## [I am unable to run .yml file](https://forum.ansible.com/t/i-am-unable-to-run-yml-file/26551)

<div class="topic-metadata">

**Author:** [@Dark\_Night](https://forum.ansible.com/u/Dark_Night)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 8:12am UTC](https://forum.ansible.com/t/i-am-unable-to-run-yml-file/26551 "2018-01-24T08:12:39Z")

</div>

while running the .yml file i do get following error fatal: \[192.168.124.1\]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,pa…

---

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

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

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