# Latest

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

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

**Page:** 577

---

## [win\_get\_url always failing first time](https://forum.ansible.com/t/win-get-url-always-failing-first-time/26927)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 10:32pm UTC](https://forum.ansible.com/t/win-get-url-always-failing-first-time/26927 "2018-03-07T22:32:34Z")

</div>

Are you able to share some more info like the Ansible version you are on, the task you are running. A 500 status code means internal error (internal to the http server) and usually indicates a problem on the remote end. …

---

## [apt\_key hanging issues](https://forum.ansible.com/t/apt-key-hanging-issues/26925)

<div class="topic-metadata">

**Author:** [@David\_Jones](https://forum.ansible.com/u/David_Jones)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 8:16pm UTC](https://forum.ansible.com/t/apt-key-hanging-issues/26925 "2018-03-07T20:16:45Z")

</div>

Hi I am stuck trying to get apt\_key to download a key from a key server. Here is my code which just hags indefinitely. name: Get upstream APT GPG key apt\_key: id: “{{ docker\_apt\_key }}” keyserver: “{{ key\_server }}…

---

## [ios\_facts module unable to open shell](https://forum.ansible.com/t/ios-facts-module-unable-to-open-shell/26913)

<div class="topic-metadata">

**Author:** [@Otto\_Nix](https://forum.ansible.com/u/Otto_Nix)\
**Replies:** 4\
**Last updated:** [March 7, 2018, 7:34pm UTC](https://forum.ansible.com/t/ios-facts-module-unable-to-open-shell/26913 "2018-03-07T19:34:26Z")

</div>

Hello all, I’m new to Ansible so forgive me if this is elementary. I have looked all over for a solution to my problems getting ios\_facts to work and none of the solutions worked for me. No matter what I try it always f…

---

## [inventory\_dir is still present as a global variable in Ansible 2.4  ?](https://forum.ansible.com/t/inventory-dir-is-still-present-as-a-global-variable-in-ansible-2-4/26918)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 5:57pm UTC](https://forum.ansible.com/t/inventory-dir-is-still-present-as-a-global-variable-in-ansible-2-4/26918 "2018-03-07T17:57:44Z")

</div>

Hi All, I am trying to understand the changes with Ansible 2.4 that affects the usage of inventory\_dir variable. Earlier i was using a static host file and in my playbooks, i was heavily relying on inventory\_dir to loa…

---

## [expect module hangs](https://forum.ansible.com/t/expect-module-hangs/26912)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 7\
**Last updated:** [March 7, 2018, 5:40pm UTC](https://forum.ansible.com/t/expect-module-hangs/26912 "2018-03-07T17:40:57Z")

</div>

Hello I have a config to copy config to a tftp server but with the expect module it just hangs no error it logs it successful with telnet( I can see it in the logs) but does not copy ( I have tested it manually with …

---

## [Feature enhancement: Azure KeyVault Keys and Secrets](https://forum.ansible.com/t/feature-enhancement-azure-keyvault-keys-and-secrets/26924)

<div class="topic-metadata">

**Author:** [@Amanvir\_Mundra](https://forum.ansible.com/u/Amanvir_Mundra)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 4:54pm UTC](https://forum.ansible.com/t/feature-enhancement-azure-keyvault-keys-and-secrets/26924 "2018-03-07T16:54:00Z")

</div>

Hi. I am very new to Ansible but I have a good experience in programming in general. I am orchestrating infra and services on Azure using Ansible but I have hit a bit of a limitation when I needed to retrieve Account Ke…

---

## [Ansible Disk Uage and Disk Space Alert generation Script.](https://forum.ansible.com/t/ansible-disk-uage-and-disk-space-alert-generation-script/26923)

<div class="topic-metadata">

**Author:** [@Kiran\_Shrimali](https://forum.ansible.com/u/Kiran_Shrimali)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 4:45pm UTC](https://forum.ansible.com/t/ansible-disk-uage-and-disk-space-alert-generation-script/26923 "2018-03-07T16:45:26Z")

</div>

Hi Team, I am tryig to write an Ansible script which will Generat Alert on Disk Usage. Once the Disk Usage goes above the Threshold, alert will be generated. Below is start up code.

---

## [networking / enable / privilege level](https://forum.ansible.com/t/networking-enable-privilege-level/26922)

<div class="topic-metadata">

**Author:** [@serhii.bolotin](https://forum.ansible.com/u/serhii.bolotin)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 3:40pm UTC](https://forum.ansible.com/t/networking-enable-privilege-level/26922 "2018-03-07T15:40:23Z")

</div>

Hi, Is it possible to specify the privilege level for enable command? For example, when you enter the enable command, you enter the system enable password, and the cisco asa places you in level 15 by default. I’d like …

---

## [connection to multiple hosts with all different passwords](https://forum.ansible.com/t/connection-to-multiple-hosts-with-all-different-passwords/26920)

<div class="topic-metadata">

**Author:** [@neccross9](https://forum.ansible.com/u/neccross9)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 12:48pm UTC](https://forum.ansible.com/t/connection-to-multiple-hosts-with-all-different-passwords/26920 "2018-03-07T12:48:45Z")

</div>

Hi all, I’m new to Ansible, so please excuse myl lack of knowledge I’m tryting to handle multiple hosts that need to execute some tasks being root. While it’s not a good idea to have all root-ssh-keys stored on one ma…

---

## [Unable to run ansible playbook..](https://forum.ansible.com/t/unable-to-run-ansible-playbook/26919)

<div class="topic-metadata">

**Author:** [@borseankush2112](https://forum.ansible.com/u/borseankush2112)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 12:35pm UTC](https://forum.ansible.com/t/unable-to-run-ansible-playbook/26919 "2018-03-07T12:35:59Z")

</div>

Hi Team, I want to run a script via ansible playbook. The script contains installation and uninstallation of some agents and If we run that script, It requires some inputs like Yes or No or 1 or 2 like that... So how t…

---

## [Error while using Yum install packages on existing rhel template on VMware](https://forum.ansible.com/t/error-while-using-yum-install-packages-on-existing-rhel-template-on-vmware/26917)

<div class="topic-metadata">

**Author:** [@Shiva\_Gonela](https://forum.ansible.com/u/Shiva_Gonela)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 8:03am UTC](https://forum.ansible.com/t/error-while-using-yum-install-packages-on-existing-rhel-template-on-vmware/26917 "2018-03-07T08:03:36Z")

</div>

Hi team, we are facing issues provisioning the rhel VM in Vmware environment using the existing template. here are list of tasks we are performing – provisioning the rhel Vm using existing template used vmware\_guest mo…

---

## [pick the hostname dynamically from facts and match with inventory hostname and if matched then run the command](https://forum.ansible.com/t/pick-the-hostname-dynamically-from-facts-and-match-with-inventory-hostname-and-if-matched-then-run-the-command/26915)

<div class="topic-metadata">

**Author:** [@rraka1002](https://forum.ansible.com/u/rraka1002)\
**Replies:** 2\
**Last updated:** [March 7, 2018, 8:00am UTC](https://forum.ansible.com/t/pick-the-hostname-dynamically-from-facts-and-match-with-inventory-hostname-and-if-matched-then-run-the-command/26915 "2018-03-07T08:00:11Z")

</div>

I’m looking for an idea to spill the hostname infromation geting from facts and run the command if the matches the hostname provided in inventory. Saying that “myhostname” value should be picked & matched from inventory…

---

## [When condition ignored during the includes and loops](https://forum.ansible.com/t/when-condition-ignored-during-the-includes-and-loops/26916)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 7:50am UTC](https://forum.ansible.com/t/when-condition-ignored-during-the-includes-and-loops/26916 "2018-03-07T07:50:42Z")

</div>

Hello, Can some one help me on below issue, When condition got ignored if I use Includes and loops. main.yml \`

---

## [Reading each line in CSV file and use the items and execute the SQL statement against a remote Database.](https://forum.ansible.com/t/reading-each-line-in-csv-file-and-use-the-items-and-execute-the-sql-statement-against-a-remote-database/26846)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 8\
**Last updated:** [March 7, 2018, 12:02am UTC](https://forum.ansible.com/t/reading-each-line-in-csv-file-and-use-the-items-and-execute-the-sql-statement-against-a-remote-database/26846 "2018-03-07T00:02:57Z")

</div>

Hello Ansible Gurus, I have a CSV file as below. “DB\_SCHEMA”,“SYSTEM\_USER”,“SYSTEM\_PASSWORD”,“TNS\_NAME”,“TNS\_DESCRIPTION” “Client\_Schema1”,“user”,“password”,“TNSNAME”,“(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SANDBOX…

---

## [Newbie: Error running ansible playbook](https://forum.ansible.com/t/newbie-error-running-ansible-playbook/26904)

<div class="topic-metadata">

**Author:** [@Vishlesh\_Patel](https://forum.ansible.com/u/Vishlesh_Patel)\
**Replies:** 4\
**Last updated:** [March 6, 2018, 10:30pm UTC](https://forum.ansible.com/t/newbie-error-running-ansible-playbook/26904 "2018-03-06T22:30:01Z")

</div>

hosts: CSRs gather\_facts: false connection: local tasks: name: test show run ios\_config: authorize: yes lines: do show run I have the above simple show\_run.yaml ansible playbook. While i run this playbook I am …

---

## [Having trouble copying registered result to local file.](https://forum.ansible.com/t/having-trouble-copying-registered-result-to-local-file/26906)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 2\
**Last updated:** [March 6, 2018, 9:43pm UTC](https://forum.ansible.com/t/having-trouble-copying-registered-result-to-local-file/26906 "2018-03-06T21:43:19Z")

</div>

Hi, I am trying to save some results that I have registered to a file on my local machine ( that is running ansible ) The error I am getting is very generic and of no use. Below is the playbook and the resulting error \`…

---

## [get the value of Json vars ansible](https://forum.ansible.com/t/get-the-value-of-json-vars-ansible/26910)

<div class="topic-metadata">

**Author:** [@Brunet\_Julien](https://forum.ansible.com/u/Brunet_Julien)\
**Replies:** 1\
**Last updated:** [March 6, 2018, 7:06pm UTC](https://forum.ansible.com/t/get-the-value-of-json-vars-ansible/26910 "2018-03-06T19:06:36Z")

</div>

Hello I faced a issue with items , i would like to get the value of Json vars. But i can’t access/get the value. I write this ansible script : \`

---

## [trouble iterating through stdout\_lines](https://forum.ansible.com/t/trouble-iterating-through-stdout-lines/26908)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 1\
**Last updated:** [March 6, 2018, 6:35pm UTC](https://forum.ansible.com/t/trouble-iterating-through-stdout-lines/26908 "2018-03-06T18:35:57Z")

</div>

Hi, I am trying to work out how to iterate through some results from a command I am running on a network device. the idea is when I find the line that matches what I am looking for based on a regexp I want to store it. …

---

## [Variables in lookup statement for vault](https://forum.ansible.com/t/variables-in-lookup-statement-for-vault/26902)

<div class="topic-metadata">

**Author:** [@K\_S-Dean](https://forum.ansible.com/u/K_S-Dean)\
**Replies:** 1\
**Last updated:** [March 6, 2018, 6:19pm UTC](https://forum.ansible.com/t/variables-in-lookup-statement-for-vault/26902 "2018-03-06T18:19:22Z")

</div>

"{{ lookup('vault', 'pki/issue/webserver common\_name=\\"test.example.com\\" ip\_sans=\\"{{ IP\_ADDR }}, {{ var=hostvars\[inventory\_hostname\].ansible\_ssh\_host }}\\" format=\\"pem\\" key\_bits=4096').certificate }}" Hi im trying to…

---

## [HP Procurve switch](https://forum.ansible.com/t/hp-procurve-switch/26839)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 2\
**Last updated:** [March 6, 2018, 10:08am UTC](https://forum.ansible.com/t/hp-procurve-switch/26839 "2018-03-06T10:08:56Z")

</div>

Does any one knows how to backup the config of HP Procurve using Ansible. Has anyone done this backup I can’t see any information on the networking module

---

## [What's wrong with my PR ?](https://forum.ansible.com/t/whats-wrong-with-my-pr/26894)

<div class="topic-metadata">

**Author:** [@Rey\_Remi](https://forum.ansible.com/u/Rey_Remi)\
**Replies:** 2\
**Last updated:** [March 6, 2018, 7:59am UTC](https://forum.ansible.com/t/whats-wrong-with-my-pr/26894 "2018-03-06T07:59:31Z")

</div>

Hello all, I am wondering if there is something wrong with my PR: https://github.com/ansible/ansible/pull/34246 It was submitted long ago (over a month) and I only got a review yesterday from a community member, but it…

---

## [Issue in 2.5.0rc1 with digital\_ocean module: "Server was unable to give you a response"](https://forum.ansible.com/t/issue-in-2-5-0rc1-with-digital-ocean-module-server-was-unable-to-give-you-a-response/26907)

<div class="topic-metadata">

**Author:** [@Denise\_Draper](https://forum.ansible.com/u/Denise_Draper)\
**Replies:** 0\
**Last updated:** [March 6, 2018, 7:58am UTC](https://forum.ansible.com/t/issue-in-2-5-0rc1-with-digital-ocean-module-server-was-unable-to-give-you-a-response/26907 "2018-03-06T07:58:47Z")

</div>

Hi — Previously working command isn’t working as of tonight. I’m pretty sure it did previously work after I upgraded to ansible 2.5.0rc1, but I could be wrong about that. The specific and the response are below. I think…

---

## [debug module does not escape double quotes](https://forum.ansible.com/t/debug-module-does-not-escape-double-quotes/26900)

<div class="topic-metadata">

**Author:** [@rasha\_hajlaoui](https://forum.ansible.com/u/rasha_hajlaoui)\
**Replies:** 2\
**Last updated:** [March 6, 2018, 7:40am UTC](https://forum.ansible.com/t/debug-module-does-not-escape-double-quotes/26900 "2018-03-06T07:40:10Z")

</div>

Hello guys, I’ve got a problem with ansible playbook. In fact, I use debug module to display a file content. the content of myfile is : my playbook.yml is as follow: name: Display file content shell: cat myfile …

---

## [How do I access the cpu %usage in this example? I'm getting an error no matter what I try.](https://forum.ansible.com/t/how-do-i-access-the-cpu-usage-in-this-example-im-getting-an-error-no-matter-what-i-try/26896)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 4\
**Last updated:** [March 6, 2018, 4:11am UTC](https://forum.ansible.com/t/how-do-i-access-the-cpu-usage-in-this-example-im-getting-an-error-no-matter-what-i-try/26896 "2018-03-06T04:11:24Z")

</div>

Hi, I am using the Napalm module with Ansible and using its get\_facts module to obtain some basic information from the device. The relevant output is below, \` “ansible\_facts”: { “napalm\_environment”: { “cpu”: { “0”…

---

## [how to specify log-opt of docker run in ansible to limit the log size of a container?](https://forum.ansible.com/t/how-to-specify-log-opt-of-docker-run-in-ansible-to-limit-the-log-size-of-a-container/26905)

<div class="topic-metadata">

**Author:** [@Tang\_Ye](https://forum.ansible.com/u/Tang_Ye)\
**Replies:** 0\
**Last updated:** [March 6, 2018, 12:53am UTC](https://forum.ansible.com/t/how-to-specify-log-opt-of-docker-run-in-ansible-to-limit-the-log-size-of-a-container/26905 "2018-03-06T00:53:13Z")

</div>

I am using ansible playbook to deploy my app with docker in Jenkins, Recently I want to limit the log size of the app container, with “docker run” has “–log-opt max-size=xxxm” option, but How can I add the same function …

---

## ["absolute" (root) include\_tasks path](https://forum.ansible.com/t/absolute-root-include-tasks-path/26903)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 3\
**Last updated:** [March 6, 2018, 12:08am UTC](https://forum.ansible.com/t/absolute-root-include-tasks-path/26903 "2018-03-06T00:08:44Z")

</div>

Just looking for possible better approaches for specifying a semi absolute path to include\_tasks. I’ve come up with this: vars: pwd: ‘{{ lookup(“env”, “PWD”) }}’ And then constructing the include path with this varia…

---

## [assert and fail. When to use what?](https://forum.ansible.com/t/assert-and-fail-when-to-use-what/26621)

<div class="topic-metadata">

**Author:** [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 5:00pm UTC](https://forum.ansible.com/t/assert-and-fail-when-to-use-what/26621 "2018-03-05T17:00:57Z")

</div>

Hi, I’ve been working on a playbook that asserts prerequisites required for a mssql installation and I’m not entirely confident with what I’ve come up with. https://gist.githubusercontent.com/chopraaa/1b74480a7b286ee91…

---

## [Dynamic Inventory using Google Cloud Platform](https://forum.ansible.com/t/dynamic-inventory-using-google-cloud-platform/26801)

<div class="topic-metadata">

**Author:** [@Chrisy](https://forum.ansible.com/u/Chrisy)\
**Replies:** 6\
**Last updated:** [March 5, 2018, 1:47pm UTC](https://forum.ansible.com/t/dynamic-inventory-using-google-cloud-platform/26801 "2018-03-05T13:47:38Z")

</div>

We are trying to configure Google compute engine resources using dynamic inventory in ANSIBLE We are getting the below error when we run the command: $ ./gce.py --list File “./gce.py”, line 508, in GceInventory() Fi…

---

## [Is it possible to process each host in an inventory "across a workflow"?](https://forum.ansible.com/t/is-it-possible-to-process-each-host-in-an-inventory-across-a-workflow/26897)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 12:26pm UTC](https://forum.ansible.com/t/is-it-possible-to-process-each-host-in-an-inventory-across-a-workflow/26897 "2018-03-05T12:26:37Z")

</div>

Hi, I understand that the title may not be clear so let me explain. Say I have workflow with 3 nodes. First Node - conducts some basic health checks on a server Second Node - Installs a piece of software to the host …

---

## [Error: 'import\_playbook' has extra params](https://forum.ansible.com/t/error-import-playbook-has-extra-params/26898)

<div class="topic-metadata">

**Author:** [@kavya\_KULSHRESHTHA](https://forum.ansible.com/u/kavya_KULSHRESHTHA)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 11:40am UTC](https://forum.ansible.com/t/error-import-playbook-has-extra-params/26898 "2018-03-05T11:40:14Z")

</div>

Hi, I am using ansible 2.4.4 I have a role, where in main.yml I am importing two playbooks: main.yml: \`

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

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