# Latest

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

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

**Page:** 488

---

## [merging specific group\_vars without changing global behavior](https://forum.ansible.com/t/merging-specific-group-vars-without-changing-global-behavior/29567)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 0\
**Last updated:** [January 30, 2019, 1:40am UTC](https://forum.ansible.com/t/merging-specific-group-vars-without-changing-global-behavior/29567 "2019-01-30T01:40:44Z")

</div>

In my environment i have a group\_vars structure something like the following: \` \[global:children\] datacenter1 \[datacenter1:children\] network\_zone1 network\_zone2 \[network\_zone1\] server1 \[network\_zone2\] server2 …

---

## [ERROR! Problem running vault password script /root/.vault\_pass (\[Errno 8\] Exec format error). If this is not a script, remove the executable bit from the file](https://forum.ansible.com/t/error-problem-running-vault-password-script-root-vault-pass-errno-8-exec-format-error-if-this-is-not-a-script-remove-the-executable-bit-from-the-file/29566)

<div class="topic-metadata">

**Author:** [@Jason\_Yu](https://forum.ansible.com/u/Jason_Yu)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 11:59pm UTC](https://forum.ansible.com/t/error-problem-running-vault-password-script-root-vault-pass-errno-8-exec-format-error-if-this-is-not-a-script-remove-the-executable-bit-from-the-file/29566 "2019-01-29T23:59:37Z")

</div>

I got the following error when I ran an ansible script from a docker container. It looks like the executable bit needs to be reset. I am using docker for windows which is running on my windows 10 desktop. Could anyone he…

---

## [Tags in loop](https://forum.ansible.com/t/tags-in-loop/29561)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 3\
**Last updated:** [January 29, 2019, 11:44pm UTC](https://forum.ansible.com/t/tags-in-loop/29561 "2019-01-29T23:44:29Z")

</div>

Hi dear, I need create tag in my role, this example: vars/main.yml name\_variable: tags: key1: value1 key2: value2 in tasks taks/main.yml - name: name my task user: name tags: tags f…

---

## [Iterating through stdout\_lines (jinja formatted data) and returning data](https://forum.ansible.com/t/iterating-through-stdout-lines-jinja-formatted-data-and-returning-data/29564)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 9:52pm UTC](https://forum.ansible.com/t/iterating-through-stdout-lines-jinja-formatted-data-and-returning-data/29564 "2019-01-29T21:52:11Z")

</div>

I wish to automate user removal from nagios. This can be done via their REST api; however, I first need to find the user, grab their user\_id, and then I can perform the delete based on the user\_id. Their API returns…

---

## [How ansible works? without an agent on target device](https://forum.ansible.com/t/how-ansible-works-without-an-agent-on-target-device/29555)

<div class="topic-metadata">

**Author:** [@Ethashamuddin\_Mohamm](https://forum.ansible.com/u/Ethashamuddin_Mohamm)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 8:30pm UTC](https://forum.ansible.com/t/how-ansible-works-without-an-agent-on-target-device/29555 "2019-01-29T20:30:11Z")

</div>

Without an agent on target host, Ansible is able to perform tasks like for example: adding a user(-m user). Here are the list of all modules To understand this, I read this article, which says: “Ansible works by conne…

---

## [Change password using script](https://forum.ansible.com/t/change-password-using-script/29563)

<div class="topic-metadata">

**Author:** [@mboncalo](https://forum.ansible.com/u/mboncalo)\
**Replies:** 4\
**Last updated:** [January 29, 2019, 7:32pm UTC](https://forum.ansible.com/t/change-password-using-script/29563 "2019-01-29T19:32:47Z")

</div>

Hi guys, I kinda feel ashamed asking this kind of questions but I'm currently still learning Ansible, only started a week ago and I have to complete this as a part of a personal project that I will present. I wrote a…

---

## [Running yum updates with ansible](https://forum.ansible.com/t/running-yum-updates-with-ansible/29556)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 8\
**Last updated:** [January 29, 2019, 6:30pm UTC](https://forum.ansible.com/t/running-yum-updates-with-ansible/29556 "2019-01-29T18:30:54Z")

</div>

Hey all, So I’ve done a lot of yum updates with ansible and several times I get issues where partial updates are run and it says it’s been completed, however, I reboot and I’m in a kernel panic because the new kernel di…

---

## [Block & rescue misconception](https://forum.ansible.com/t/block-rescue-misconception/29548)

<div class="topic-metadata">

**Author:** [@sergio.fernandez](https://forum.ansible.com/u/sergio.fernandez)\
**Replies:** 3\
**Last updated:** [January 29, 2019, 2:57pm UTC](https://forum.ansible.com/t/block-rescue-misconception/29548 "2019-01-29T14:57:27Z")

</div>

Hi all, I’m using Ansible 2.5.11, using the EC2 dynamic inventory script. I’m trying to do some tasks over an instance with a role using block and rescue, so if one of the tasks fails, the rescue task runs (removing the…

---

## [nmap dynamic inventory on AWX](https://forum.ansible.com/t/nmap-dynamic-inventory-on-awx/29560)

<div class="topic-metadata">

**Author:** [@sdmorel](https://forum.ansible.com/u/sdmorel)\
**Replies:** 3\
**Last updated:** [January 29, 2019, 2:44pm UTC](https://forum.ansible.com/t/nmap-dynamic-inventory-on-awx/29560 "2019-01-29T14:44:15Z")

</div>

Hi all, I’m trying to use the nmap inventory plugin to include all hosts from a specific network in the inventory. This is the ansible.cfg \[defaults\] inventory = inventory.yml \[inventory\] enable\_plugins = yaml, nm…

---

## [Porting playbooks from Ansible 2.4 to newer version](https://forum.ansible.com/t/porting-playbooks-from-ansible-2-4-to-newer-version/29342)

<div class="topic-metadata">

**Author:** [@Julien\_Deloubes](https://forum.ansible.com/u/Julien_Deloubes)\
**Replies:** 4\
**Last updated:** [January 29, 2019, 12:26pm UTC](https://forum.ansible.com/t/porting-playbooks-from-ansible-2-4-to-newer-version/29342 "2019-01-29T12:26:01Z")

</div>

Hi there, we have a bunch of playbooks and roles, all written in Ansible version \>= 2.4 I need to audit all our playbooks in order to migrate to a more recent version. There are a lot of changes from 2.4 to 2.5 mainly…

---

## [Ansible running command in two hosts and compare the outputs in one playbook](https://forum.ansible.com/t/ansible-running-command-in-two-hosts-and-compare-the-outputs-in-one-playbook/29558)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 0\
**Last updated:** [January 29, 2019, 7:50am UTC](https://forum.ansible.com/t/ansible-running-command-in-two-hosts-and-compare-the-outputs-in-one-playbook/29558 "2019-01-29T07:50:00Z")

</div>

Ask Question -1 I’ve one playbook which runs on 2,3 hosts. I want to compare output of a command run on host 1 with output of command run on host 2 Something like below - hosts: 1,2,3 tasks: - name: Check file…

---

## [Use AWX Credential inside playbook](https://forum.ansible.com/t/use-awx-credential-inside-playbook/29539)

<div class="topic-metadata">

**Author:** [@innatenew](https://forum.ansible.com/u/innatenew)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 4:20am UTC](https://forum.ansible.com/t/use-awx-credential-inside-playbook/29539 "2019-01-29T04:20:25Z")

</div>

Hello all, I have a use case where I am making a SOAP call via a custom ansible module. The call needs credentials to authenticate . I wanted to know if there was a way to create Credential on AWX and then call them i…

---

## [Access  same variable with different value from multiple json files](https://forum.ansible.com/t/access-same-variable-with-different-value-from-multiple-json-files/29557)

<div class="topic-metadata">

**Author:** [@Coding](https://forum.ansible.com/u/Coding)\
**Replies:** 0\
**Last updated:** [January 29, 2019, 2:20am UTC](https://forum.ansible.com/t/access-same-variable-with-different-value-from-multiple-json-files/29557 "2019-01-29T02:20:52Z")

</div>

I have multiple json files look like this: temp/file-a.json: { “x”: 5”, “y”: “name1”, } tmp/file-b.jsob: { “x”: “10”, “y”: “name2”, } tmp/file-c.json: { “x”: “7”, “y”: “name3”, …

---

## [set\_fact with default value of type string](https://forum.ansible.com/t/set-fact-with-default-value-of-type-string/29552)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [January 28, 2019, 10:09pm UTC](https://forum.ansible.com/t/set-fact-with-default-value-of-type-string/29552 "2019-01-28T22:09:28Z")

</div>

I know I can define the variable previous to this, but I am wondering if I can combine setting a variable with a default value within set\_fact. If possible, I wonder if my syntax is wrong (likely)? I can’t seem to find m…

---

## [Boot signal from a remote Pi](https://forum.ansible.com/t/boot-signal-from-a-remote-pi/29535)

<div class="topic-metadata">

**Author:** [@Sergio\_Fernandez](https://forum.ansible.com/u/Sergio_Fernandez)\
**Replies:** 1\
**Last updated:** [January 28, 2019, 10:01pm UTC](https://forum.ansible.com/t/boot-signal-from-a-remote-pi/29535 "2019-01-28T22:01:15Z")

</div>

Hi there! I would like to know the best way to perform this: I will be using the Vault (from Hashicorp) to store API keys for my app, so I will be storing the Vault Token in my Raspberry Pi, inside a tmpfs mount, so ev…

---

## [nxos failure on 9k when removing vlan (nxos\_vlan absent)](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29554)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 0\
**Last updated:** [January 28, 2019, 9:56pm UTC](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29554 "2019-01-28T21:56:16Z")

</div>

Hi Peter, Will do. Thanks for the reply.

---

## [nxos failure on 9k when removing vlan (nxos\_vlan absent)](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29547)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 1\
**Last updated:** [January 28, 2019, 9:53pm UTC](https://forum.ansible.com/t/nxos-failure-on-9k-when-removing-vlan-nxos-vlan-absent/29547 "2019-01-28T21:53:51Z")

</div>

Hi all, I’m running into problems with nxos\_vlan vlan removal on cisco nexus 9K. Works ok on 5k. For the 9k, ansible seems to try VXLAN commands when not configured for VXLAN. “10.6.0.81”: { “\_ansible\_no\_log”: false, …

---

## [Ansible parse variables with special characters](https://forum.ansible.com/t/ansible-parse-variables-with-special-characters/29549)

<div class="topic-metadata">

**Author:** [@pnagaraj7656](https://forum.ansible.com/u/pnagaraj7656)\
**Replies:** 2\
**Last updated:** [January 28, 2019, 9:48pm UTC](https://forum.ansible.com/t/ansible-parse-variables-with-special-characters/29549 "2019-01-28T21:48:16Z")

</div>

I need to pass certain strings with special characters like $ to variables. I was able to parse by providing the values in single quotes or using \\ when the string contains a single $ . Ex below x is my variable. X : …

---

## [Ansible module yum module](https://forum.ansible.com/t/ansible-module-yum-module/29551)

<div class="topic-metadata">

**Author:** [@Anand\_Vamsi](https://forum.ansible.com/u/Anand_Vamsi)\
**Replies:** 0\
**Last updated:** [January 28, 2019, 6:15pm UTC](https://forum.ansible.com/t/ansible-module-yum-module/29551 "2019-01-28T18:15:57Z")

</div>

Ansible Team- I’m in situation where i need to remove a package without removing the dependencies using yum module for centos/redhat. I don’t see any option in Ansible yum reference page which exclude deps. Only optio…

---

## [Create variables in hash](https://forum.ansible.com/t/create-variables-in-hash/29531)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 2\
**Last updated:** [January 28, 2019, 4:43pm UTC](https://forum.ansible.com/t/create-variables-in-hash/29531 "2019-01-28T16:43:07Z")

</div>

Hi dear, How can create variables in hash, example:

---

## [Ansible Cisco 5k Port-Profile issues](https://forum.ansible.com/t/ansible-cisco-5k-port-profile-issues/29545)

<div class="topic-metadata">

**Author:** [@Mark\_Giusti](https://forum.ansible.com/u/Mark_Giusti)\
**Replies:** 0\
**Last updated:** [January 28, 2019, 3:33pm UTC](https://forum.ansible.com/t/ansible-cisco-5k-port-profile-issues/29545 "2019-01-28T15:33:03Z")

</div>

Hi everyone, I am rather new to network automation so do excuse my lack of knowledge on the subject. I wish to setup a playbook for a cisco nexus 5k that will assign a number of interfaces to a predefined port-profile.…

---

## [getting error while checking which java using ansible](https://forum.ansible.com/t/getting-error-while-checking-which-java-using-ansible/29494)

<div class="topic-metadata">

**Author:** [@ruben\_melvin](https://forum.ansible.com/u/ruben_melvin)\
**Replies:** 8\
**Last updated:** [January 28, 2019, 8:47am UTC](https://forum.ansible.com/t/getting-error-while-checking-which-java-using-ansible/29494 "2019-01-28T08:47:33Z")

</div>

Hi guys, I am trying to execute below ansible playbook.

---

## [ModuleNotFoundError: No module named 'ansible.parsing'](https://forum.ansible.com/t/modulenotfounderror-no-module-named-ansible-parsing/29542)

<div class="topic-metadata">

**Author:** [@shenhaowee](https://forum.ansible.com/u/shenhaowee)\
**Replies:** 0\
**Last updated:** [January 28, 2019, 8:10am UTC](https://forum.ansible.com/t/modulenotfounderror-no-module-named-ansible-parsing/29542 "2019-01-28T08:10:51Z")

</div>

From what I saw in my environment I got this error when the script wasn’t in my root directory. \[root@xxx API\]# ./my\_ansible.py Traceback (most recent call last): File "./my\_ansible.py", line 5, in \<module\> …

---

## [To call Ansible legacy module from within library's custom module](https://forum.ansible.com/t/to-call-ansible-legacy-module-from-within-librarys-custom-module/29540)

<div class="topic-metadata">

**Author:** [@Leo\_Y](https://forum.ansible.com/u/Leo_Y)\
**Replies:** 0\
**Last updated:** [January 27, 2019, 1:18pm UTC](https://forum.ansible.com/t/to-call-ansible-legacy-module-from-within-librarys-custom-module/29540 "2019-01-27T13:18:52Z")

</div>

I would like to use existing implementations while developing a custom module. For this matter, I want to use k8s\_raw module to communicate with Kubernetes cluster instead of importing python packages and managing the wh…

---

## [Ansible 2.7, yum and list of packages](https://forum.ansible.com/t/ansible-2-7-yum-and-list-of-packages/29536)

<div class="topic-metadata">

**Author:** [@Byron\_Schlemmer](https://forum.ansible.com/u/Byron_Schlemmer)\
**Replies:** 3\
**Last updated:** [January 27, 2019, 11:05am UTC](https://forum.ansible.com/t/ansible-2-7-yum-and-list-of-packages/29536 "2019-01-27T11:05:54Z")

</div>

Hi, I’m having a problem installing RPMs using the yum module from a list. Using version: $ ansible --version ansible 2.7.6.post0 (stable-2.7 f759b5463b) last updated 2019/01/26 09:42:08 (GMT +000) python version = 2…

---

## [Running AWX Web and Task on AWS Fargate](https://forum.ansible.com/t/running-awx-web-and-task-on-aws-fargate/29538)

<div class="topic-metadata">

**Author:** [@Bob\_Bomar](https://forum.ansible.com/u/Bob_Bomar)\
**Replies:** 0\
**Last updated:** [January 27, 2019, 12:41am UTC](https://forum.ansible.com/t/running-awx-web-and-task-on-aws-fargate/29538 "2019-01-27T00:41:27Z")

</div>

I have awx running on AWS Fargate, but when I try to create a new project, I receive a 500 error and the error in the logs is " RuntimeError: No instance found with the current cluster host id" I think the problem is t…

---

## [Password change automation](https://forum.ansible.com/t/password-change-automation/29532)

<div class="topic-metadata">

**Author:** [@mboncalo](https://forum.ansible.com/u/mboncalo)\
**Replies:** 5\
**Last updated:** [January 26, 2019, 1:26pm UTC](https://forum.ansible.com/t/password-change-automation/29532 "2019-01-26T13:26:36Z")

</div>

Hi, I know there are lots of examples on the internet but I can't make it work ansible-playbook --private-key=/root/docker/aatool/ky.pem --extra-vars admin\_password=T3est@ chpass.yml \[WARNING\]: provided hosts list is…

---

## [packer with ansible](https://forum.ansible.com/t/packer-with-ansible/29534)

<div class="topic-metadata">

**Author:** [@chaitanya\_p](https://forum.ansible.com/u/chaitanya_p)\
**Replies:** 0\
**Last updated:** [January 26, 2019, 1:04pm UTC](https://forum.ansible.com/t/packer-with-ansible/29534 "2019-01-26T13:04:02Z")

</div>

could you please help me with script & process, how to create ami using packer with ansible, installing aplications available in ami for example tomcat

---

## [malformed output when we have variables in the command line-cisco ASA device](https://forum.ansible.com/t/malformed-output-when-we-have-variables-in-the-command-line-cisco-asa-device/29533)

<div class="topic-metadata">

**Author:** [@Sahar](https://forum.ansible.com/u/Sahar)\
**Replies:** 0\
**Last updated:** [January 25, 2019, 8:16pm UTC](https://forum.ansible.com/t/malformed-output-when-we-have-variables-in-the-command-line-cisco-asa-device/29533 "2019-01-25T20:16:32Z")

</div>

I’m running the following commands, the output is malformed, May I know how I can fix it? name: Checking DNS Parameters asa\_command: commands: ‘show run policy-map type inspect dns “{{ policy\_map }}” | i maximum’ …

---

## [need ansible to wait for a springboot acutuator heathcheck to show up](https://forum.ansible.com/t/need-ansible-to-wait-for-a-springboot-acutuator-heathcheck-to-show-up/29528)

<div class="topic-metadata">

**Author:** [@IP\_Freely](https://forum.ansible.com/u/IP_Freely)\
**Replies:** 1\
**Last updated:** [January 25, 2019, 5:27pm UTC](https://forum.ansible.com/t/need-ansible-to-wait-for-a-springboot-acutuator-heathcheck-to-show-up/29528 "2019-01-25T17:27:18Z")

</div>

Hi Hope you can help me again I need to wait for a spring application to start before moving on in my playbook. when the microservice starts it runs flyway script that can take a long time to run before the service act…

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

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