# Latest

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

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

**Page:** 590

---

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

---

## [Questions regarding "when: condition"](https://forum.ansible.com/t/questions-regarding-when-condition/26536)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [January 23, 2018, 7:36pm UTC](https://forum.ansible.com/t/questions-regarding-when-condition/26536 "2018-01-23T19:36:56Z")

</div>

The commented section of the following code works. I was trying to simplify it by adding with\_items; however, it seems to change the way it is evaluated?.. at least that is my guess based on the verbosity: \` skipping: …

---

## [gather\_facts:  ansible\_hostname only](https://forum.ansible.com/t/gather-facts-ansible-hostname-only/26542)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [January 23, 2018, 6:19pm UTC](https://forum.ansible.com/t/gather-facts-ansible-hostname-only/26542 "2018-01-23T18:19:55Z")

</div>

Is there a way for me to specify the only fact I care about gathering? I have a server that is giving me grief due to the way its disks are setup (tons of nfs shares, etc)… at least I assume that is why it is giving me g…

---

## [What should be the proper way to use include\_tasks in ansible 2.5](https://forum.ansible.com/t/what-should-be-the-proper-way-to-use-include-tasks-in-ansible-2-5/26535)

<div class="topic-metadata">

**Author:** [@chipcha](https://forum.ansible.com/u/chipcha)\
**Replies:** 4\
**Last updated:** [January 23, 2018, 3:31pm UTC](https://forum.ansible.com/t/what-should-be-the-proper-way-to-use-include-tasks-in-ansible-2-5/26535 "2018-01-23T15:31:31Z")

</div>

Hi all, Following the discussion in issue #35065: included include\_role fails to escalate since ebf971f (see also https://groups.google.com/forum/#!searchin/ansible-project/chipcha|sort:date/ansible-project/2-A3BVF02X4…

---

## [VARIABLE IS NOT DEFINED!](https://forum.ansible.com/t/variable-is-not-defined/26521)

<div class="topic-metadata">

**Author:** [@Surjeet\_Singh](https://forum.ansible.com/u/Surjeet_Singh)\
**Replies:** 3\
**Last updated:** [January 23, 2018, 2:57pm UTC](https://forum.ansible.com/t/variable-is-not-defined/26521 "2018-01-23T14:57:25Z")

</div>

am i impacted with some bug ? “VARIABLE IS NOT DEFINED!” root@eve-ng:/etc/ansible# ansible-playbook test.yaml PLAY \[collect device facts and display OS version\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [How to do math in Ansible?](https://forum.ansible.com/t/how-to-do-math-in-ansible/26531)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 5\
**Last updated:** [January 23, 2018, 2:54pm UTC](https://forum.ansible.com/t/how-to-do-math-in-ansible/26531 "2018-01-23T14:54:50Z")

</div>

I have an Ansible task that aims to upgrade our Gitlab application. I want the user to ONLY be able to upgrade 1 major release. For example, I want to enable a 8.x to 9.x upgrade, but not an 8.x to 10.x upgrade. I’m awar…

---

## [nxos\_acl module](https://forum.ansible.com/t/nxos-acl-module/26489)

<div class="topic-metadata">

**Author:** [@jguirlinger](https://forum.ansible.com/u/jguirlinger)\
**Replies:** 3\
**Last updated:** [January 23, 2018, 1:58pm UTC](https://forum.ansible.com/t/nxos-acl-module/26489 "2018-01-23T13:58:29Z")

</div>

Hello, Does anybody use ansible to manage ACL on Cisco Nexus switches ? I have started to use, but i face some issues : I didn’t find a way to set the “per entry statistics on my ACL” I have to call the module for ea…

---

## [Should pip still use /usr/bin/python if the ansible\_python\_interpreter env var is set to a virtualenv](https://forum.ansible.com/t/should-pip-still-use-usr-bin-python-if-the-ansible-python-interpreter-env-var-is-set-to-a-virtualenv/26540)

<div class="topic-metadata">

**Author:** [@Wajdi\_Al-Hawari](https://forum.ansible.com/u/Wajdi_Al-Hawari)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 1:01pm UTC](https://forum.ansible.com/t/should-pip-still-use-usr-bin-python-if-the-ansible-python-interpreter-env-var-is-set-to-a-virtualenv/26540 "2018-01-23T13:01:51Z")

</div>

The Scenario: I have encountered an issue that I first drafted as a bug, but before I post it, I wanted to ask about it here first. The scenario I’m facing is wanting to run my playbook without explicitly setting a vir…

---

## [vsphere\_guest module doesn't receve datastore value](https://forum.ansible.com/t/vsphere-guest-module-doesnt-receve-datastore-value/26505)

<div class="topic-metadata">

**Author:** [@Arkanon](https://forum.ansible.com/u/Arkanon)\
**Replies:** 2\
**Last updated:** [January 23, 2018, 8:16am UTC](https://forum.ansible.com/t/vsphere-guest-module-doesnt-receve-datastore-value/26505 "2018-01-23T08:16:56Z")

</div>

Hello. I want to deploy a VMWare Linux VM from a template and then customize IP and hostname. With vmware\_guest module the deploy where finished, but I couldn’t set IP/hostname. So I changed to vsphere\_guest module to …

---

## [Tasks in rescue don't work if host is unreachable](https://forum.ansible.com/t/tasks-in-rescue-dont-work-if-host-is-unreachable/24009)

<div class="topic-metadata">

**Author:** [@kaufmann.ecom](https://forum.ansible.com/u/kaufmann.ecom)\
**Replies:** 3\
**Last updated:** [January 23, 2018, 8:02am UTC](https://forum.ansible.com/t/tasks-in-rescue-dont-work-if-host-is-unreachable/24009 "2018-01-23T08:02:10Z")

</div>

Hello everyone, For error handling I’m trying to use “block - rescue”. I looked im internet and found out that rescue doesn’t have any effekt if tasks in block failed because of unreachable host. Does anyone any workaro…

---

## [How to force win\_unzip to overwrite a existing file?](https://forum.ansible.com/t/how-to-force-win-unzip-to-overwrite-a-existing-file/26514)

<div class="topic-metadata">

**Author:** [@Daniel\_Bernardo](https://forum.ansible.com/u/Daniel_Bernardo)\
**Replies:** 2\
**Last updated:** [January 23, 2018, 7:54am UTC](https://forum.ansible.com/t/how-to-force-win-unzip-to-overwrite-a-existing-file/26514 "2018-01-23T07:54:58Z")

</div>

I’m extrating a zip file on a folder, like to do a IIS deploy using win\_unzip, but files that alredy exists were no updated. I didnt found nothing about =/ http://docs.ansible.com/ansible/latest/win\_unzip\_module.html

---

## [Ansible FortiOS config backup to target node error](https://forum.ansible.com/t/ansible-fortios-config-backup-to-target-node-error/26537)

<div class="topic-metadata">

**Author:** [@James\_Liew](https://forum.ansible.com/u/James_Liew)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 11:28pm UTC](https://forum.ansible.com/t/ansible-fortios-config-backup-to-target-node-error/26537 "2018-01-22T23:28:10Z")

</div>

Hi all, I am having issues with backing up a Forti64VM(Fortigate VM appliance) running FortiOS 5.6.2 in my environment via Ansible Tower. The errors below: Error message: { “msg”: “SSH Error: data could not be sent …

---

## [Service Not Stopping](https://forum.ansible.com/t/service-not-stopping/26533)

<div class="topic-metadata">

**Author:** [@Heather\_Luna](https://forum.ansible.com/u/Heather_Luna)\
**Replies:** 2\
**Last updated:** [January 22, 2018, 11:24pm UTC](https://forum.ansible.com/t/service-not-stopping/26533 "2018-01-22T23:24:02Z")

</div>

Hello! It appears that Ansible is seeing the splunkd service as stopped although when I check the status on my test box, it’s running. I use the same play earlier in the playbook to stop the service and it successfully…

---

## [Change ROOT password on MAC OSX](https://forum.ansible.com/t/change-root-password-on-mac-osx/26534)

<div class="topic-metadata">

**Author:** [@Nirav\_Doshi](https://forum.ansible.com/u/Nirav_Doshi)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 10:08pm UTC](https://forum.ansible.com/t/change-root-password-on-mac-osx/26534 "2018-01-22T22:08:22Z")

</div>

I am trying to change the ‘root’ user password on a mac osx system. I am not sure if the users module can handle changing the password for the root user. Could someone please shed some light on the topic. Thank you.

---

## [How to make ansible read a json file on remote host?](https://forum.ansible.com/t/how-to-make-ansible-read-a-json-file-on-remote-host/26532)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [January 22, 2018, 9:07pm UTC](https://forum.ansible.com/t/how-to-make-ansible-read-a-json-file-on-remote-host/26532 "2018-01-22T21:07:30Z")

</div>

I following the technique suggested in how to read json file using ansible suggestion in Stackoverflow, and I do this \` set\_fact: version\_file: “{{ lookup(‘file’,‘/opt/gitlab/version-manifest.json’) | from\_json }}” …

---

## [Dynamic GlusterFS Configuration (Looping)](https://forum.ansible.com/t/dynamic-glusterfs-configuration-looping/26529)

<div class="topic-metadata">

**Author:** [@Shaun\_Dolan](https://forum.ansible.com/u/Shaun_Dolan)\
**Replies:** 4\
**Last updated:** [January 22, 2018, 5:32pm UTC](https://forum.ansible.com/t/dynamic-glusterfs-configuration-looping/26529 "2018-01-22T17:32:14Z")

</div>

All, I’m trying to loop over play\_hosts to build out my cluster in a glusterfs configuration ansible/ruby block. I’m not sure of the best way to do this, but would like any feedback you can provide. I didn’t believe wi…

---

## [include\_tasks with tags, regression of feature?](https://forum.ansible.com/t/include-tasks-with-tags-regression-of-feature/26519)

<div class="topic-metadata">

**Author:** [@Mike\_Klebolt](https://forum.ansible.com/u/Mike_Klebolt)\
**Replies:** 5\
**Last updated:** [January 22, 2018, 2:32pm UTC](https://forum.ansible.com/t/include-tasks-with-tags-regression-of-feature/26519 "2018-01-22T14:32:57Z")

</div>

I’m trying to dynamically include tasks along with using tags. The issue I’m running into is that yes, its including the tasks file, but its not executing any of the tasks within that file. After reading the Creating Reu…

---

## [Get all groups from parent group](https://forum.ansible.com/t/get-all-groups-from-parent-group/26259)

<div class="topic-metadata">

**Author:** [@starflighter.one](https://forum.ansible.com/u/starflighter.one)\
**Replies:** 2\
**Last updated:** [January 22, 2018, 2:25pm UTC](https://forum.ansible.com/t/get-all-groups-from-parent-group/26259 "2018-01-22T14:25:34Z")

</div>

Hi guys, I want to get all existent subgroups from a parent group. Example Playbook: \`

---

## [access custom variables from inside play\_ontext.py](https://forum.ansible.com/t/access-custom-variables-from-inside-play-ontext-py/26528)

<div class="topic-metadata">

**Author:** [@schick-dein-spam-und](https://forum.ansible.com/u/schick-dein-spam-und)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 12:01pm UTC](https://forum.ansible.com/t/access-custom-variables-from-inside-play-ontext-py/26528 "2018-01-22T12:01:58Z")

</div>

Hi. I need to use a custom shell (/bin/bash wrapper with some additional options) when I need privilege escalation via sudo (become). For non-root tasks (no beomce) standard sh is needed. I have hacked make\_become\_cmd …

---

## [vim as default editor on ubuntu/debian](https://forum.ansible.com/t/vim-as-default-editor-on-ubuntu-debian/26526)

<div class="topic-metadata">

**Author:** [@Joli\_Martinez](https://forum.ansible.com/u/Joli_Martinez)\
**Replies:** 2\
**Last updated:** [January 22, 2018, 7:57am UTC](https://forum.ansible.com/t/vim-as-default-editor-on-ubuntu-debian/26526 "2018-01-22T07:57:40Z")

</div>

Hello, I am looking for a way to make vim the default editor on my Ubuntu and Debian based system. Could you help me accomplish this? On the CLI I know that I have to run “update-alternatives --config editor” and then h…

---

## [Create Security group error](https://forum.ansible.com/t/create-security-group-error/26523)

<div class="topic-metadata">

**Author:** [@Reddy\_Myyb](https://forum.ansible.com/u/Reddy_Myyb)\
**Replies:** 1\
**Last updated:** [January 22, 2018, 5:07am UTC](https://forum.ansible.com/t/create-security-group-error/26523 "2018-01-22T05:07:03Z")

</div>

I’m trying to create a security group but there’s an error as below. Please suggest where I’m going wrong. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ClientError: An…

---

## [Ansible and Kitchen test](https://forum.ansible.com/t/ansible-and-kitchen-test/26525)

<div class="topic-metadata">

**Author:** [@Ivan\_Pacheco](https://forum.ansible.com/u/Ivan_Pacheco)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 12:44am UTC](https://forum.ansible.com/t/ansible-and-kitchen-test/26525 "2018-01-22T00:44:39Z")

</div>

We use Kitchen test for every Ansible role as a norm. While working on some new Roles notice that a specific software installation did not work on Kitchen itself but worked fine on target VMs.In order for the role to wor…

---

## [AWS was not able to validate the provided access credentials](https://forum.ansible.com/t/aws-was-not-able-to-validate-the-provided-access-credentials/26524)

<div class="topic-metadata">

**Author:** [@hrf](https://forum.ansible.com/u/hrf)\
**Replies:** 0\
**Last updated:** [January 22, 2018, 12:10am UTC](https://forum.ansible.com/t/aws-was-not-able-to-validate-the-provided-access-credentials/26524 "2018-01-22T00:10:48Z")

</div>

I am running a ansible script with ansible 2.4.2 to create a security and it works fine if I run the script for region us-east-1 but if I go against region us-west-2 it fails with TASK \[create the LB security group\] \*\*\*…

---

## [Ansible - AWS - Security Group](https://forum.ansible.com/t/ansible-aws-security-group/26477)

<div class="topic-metadata">

**Author:** [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Replies:** 5\
**Last updated:** [January 21, 2018, 11:07pm UTC](https://forum.ansible.com/t/ansible-aws-security-group/26477 "2018-01-21T23:07:24Z")

</div>

This looks like a definition of a role, not a play. If you want this to be a play you have to turn this into the ‘tasks’ section of the yaml file and specify at least hosts you want this ran against. kind regards Pshem …

---

## ['Interactive authentication required' error even using 'become'](https://forum.ansible.com/t/interactive-authentication-required-error-even-using-become/25863)

<div class="topic-metadata">

**Author:** [@Dev](https://forum.ansible.com/u/Dev)\
**Replies:** 5\
**Last updated:** [January 21, 2018, 4:37am UTC](https://forum.ansible.com/t/interactive-authentication-required-error-even-using-become/25863 "2018-01-21T04:37:49Z")

</div>

Hello everyone, I’m using the following construction to start and stop wildfly service: \` hosts: appserver remote\_user: jenkins tasks: name: Stop WildFly become: true become\_user: wildfly become\_method: sudo …

---

## [Forcing a gather when using caching](https://forum.ansible.com/t/forcing-a-gather-when-using-caching/26522)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Honig](https://forum.ansible.com/u/Jeffrey_Honig)\
**Replies:** 1\
**Last updated:** [January 20, 2018, 2:59pm UTC](https://forum.ansible.com/t/forcing-a-gather-when-using-caching/26522 "2018-01-20T14:59:09Z")

</div>

I’m using: jch@jch-air\[727\]:master$ ansible --version ansible 2.4.2.0 config file = /Users/jch/Documents/ttn-multitech-cm/master/ansible.cfg configured module search path = \[u’/Users/jch/.ansible/plugins/modu…

---

## [Backport of blockinfile/diff bug fix to 2.3.x?](https://forum.ansible.com/t/backport-of-blockinfile-diff-bug-fix-to-2-3-x/26520)

<div class="topic-metadata">

**Author:** [@Michael4](https://forum.ansible.com/u/Michael4)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 8:20pm UTC](https://forum.ansible.com/t/backport-of-blockinfile-diff-bug-fix-to-2-3-x/26520 "2018-01-19T20:20:59Z")

</div>

Hi, I was wondering if the bug that was fixed mid-last-year to make “–diff” work correctly with blockinfile can be backported to 2.3.x? It is in 2.4.x but I can’t upgrade to 2.4.x yet because it dropped support for Pyth…

---

## [json\_query on getent\_group-data: resolving the group-name for a given group-id](https://forum.ansible.com/t/json-query-on-getent-group-data-resolving-the-group-name-for-a-given-group-id/26506)

<div class="topic-metadata">

**Author:** [@Henning\_Rohde](https://forum.ansible.com/u/Henning_Rohde)\
**Replies:** 4\
**Last updated:** [January 19, 2018, 6:59pm UTC](https://forum.ansible.com/t/json-query-on-getent-group-data-resolving-the-group-name-for-a-given-group-id/26506 "2018-01-19T18:59:21Z")

</div>

Hello! Is there an elegant way to deduce from given gid to group-name in the dictionary that's provided by the getent-module of ansible?

---

## [awx relese changelog](https://forum.ansible.com/t/awx-relese-changelog/26516)

<div class="topic-metadata">

**Author:** [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 6:08pm UTC](https://forum.ansible.com/t/awx-relese-changelog/26516 "2018-01-19T18:08:48Z")

</div>

Hi Are there any way to read the awx change/diff per docker release/tag? Now I check github closed pull request and if there are an new awx relese/tag after they should be included. Regards Christer

---

## [How to resolve this error ""msg": "the field 'args' has an invalid value (\[\]), and could not be converted to an dict.The error was: Extra data: line 2 column 1 - line 2 column 317 (char 315 - 631)"](https://forum.ansible.com/t/how-to-resolve-this-error-msg-the-field-args-has-an-invalid-value-and-could-not-be-converted-to-an-dict-the-error-was-extra-data-line-2-column-1-line-2-column-317-char-315-631/26515)

<div class="topic-metadata">

**Author:** [@sumitkumars](https://forum.ansible.com/u/sumitkumars)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 3:46pm UTC](https://forum.ansible.com/t/how-to-resolve-this-error-msg-the-field-args-has-an-invalid-value-and-could-not-be-converted-to-an-dict-the-error-was-extra-data-line-2-column-1-line-2-column-317-char-315-631/26515 "2018-01-19T15:46:17Z")

</div>

this is line: set\_fact: vwa\_rl\_policy=“{{VWA\_UT\_RL\_Policy.stdout|from\_json}}”

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

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