# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=532

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

**Page:** 533

---

## [Debug workflow: Enable a facts cache to use --start-at-task?](https://forum.ansible.com/t/debug-workflow-enable-a-facts-cache-to-use-start-at-task/23189)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 1\
**Last updated:** [December 7, 2016, 9:21am UTC](https://forum.ansible.com/t/debug-workflow-enable-a-facts-cache-to-use-start-at-task/23189 "2016-12-07T09:21:08Z")

</div>

Hi, sometime to debug Ansible Playbook I use: \` $ ansible-playbook site.yml --start-at-task=“My task” \` but I have one issue: sometime this task need facts/variables defined before this task. Question: it’s possibl…

---

## ["sudo: a password is required" error with "local\_action: file path={{ fetch\_directory }} state=directory"](https://forum.ansible.com/t/sudo-a-password-is-required-error-with-local-action-file-path-fetch-directory-state-directory/23179)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 2\
**Last updated:** [December 7, 2016, 9:10am UTC](https://forum.ansible.com/t/sudo-a-password-is-required-error-with-local-action-file-path-fetch-directory-state-directory/23179 "2016-12-07T09:10:40Z")

</div>

Hi, I have this error: TASK \[ceph-mon : create a local fetch directory if it does not exist\] \*\*\*\*\*\*\*\*\*\* task path: /Users/stephane/projets/tech-angels/test\_ceph/vagrant/roles/ceph-mon/tasks/docker/create\_configs.yml:2…

---

## [set\_fact array in loop](https://forum.ansible.com/t/set-fact-array-in-loop/17870)

<div class="topic-metadata">

**Author:** [@Michael\_Bitard](https://forum.ansible.com/u/Michael_Bitard)\
**Replies:** 4\
**Last updated:** [December 6, 2016, 11:28pm UTC](https://forum.ansible.com/t/set-fact-array-in-loop/17870 "2016-12-06T23:28:10Z")

</div>

Hi, I tried to construct an array with set\_fact and I found this: http://stackoverflow.com/questions/23507589/is-it-possible-to-set-a-fact-of-an-array-in-ansible So I tested: tasks: - set\_fact: foo="\[ 'one', 'tw…

---

## [What version of Ansible added the json\_query filter?](https://forum.ansible.com/t/what-version-of-ansible-added-the-json-query-filter/23183)

<div class="topic-metadata">

**Author:** [@watsonb](https://forum.ansible.com/u/watsonb)\
**Replies:** 2\
**Last updated:** [December 6, 2016, 4:31pm UTC](https://forum.ansible.com/t/what-version-of-ansible-added-the-json-query-filter/23183 "2016-12-06T16:31:07Z")

</div>

I’m currently running Ansible 2.1.0 and get an error when trying to use the json\_query filter. Example name: Display filtered variable contents debug: var=item with\_items: “{{ my\_var | json\_query(‘json.\[\*\].percent’)…

---

## [Ansible 2.2 - async mode with windows hosts](https://forum.ansible.com/t/ansible-2-2-async-mode-with-windows-hosts/23184)

<div class="topic-metadata">

**Author:** [@fabrice.perko](https://forum.ansible.com/u/fabrice.perko)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 4:06pm UTC](https://forum.ansible.com/t/ansible-2-2-async-mode-with-windows-hosts/23184 "2016-12-06T16:06:41Z")

</div>

Hello, I use Ansible 2.2.0 It seems that asynchronous mode does not work for windows remote hosts. The task does not fall into error, but the playbook does not go to the next task (start.bat lasts 3 hours…) Example: …

---

## [\[vsphere\_guest\] esxi.hostname is mandatory?](https://forum.ansible.com/t/vsphere-guest-esxi-hostname-is-mandatory/23185)

<div class="topic-metadata">

**Author:** [@Martino\_Vigano](https://forum.ansible.com/u/Martino_Vigano)\
**Replies:** 0\
**Last updated:** [December 6, 2016, 4:01pm UTC](https://forum.ansible.com/t/vsphere-guest-esxi-hostname-is-mandatory/23185 "2016-12-06T16:01:01Z")

</div>

Hello, I have to create a new virtual machine using the vsphere\_guest form. I will not place my new virtual machine on a single host but I want to create the cluster, and I want it to vmware host more appropriate to pl…

---

## [copy result of a find command using register](https://forum.ansible.com/t/copy-result-of-a-find-command-using-register/23182)

<div class="topic-metadata">

**Author:** [@stewart.paul](https://forum.ansible.com/u/stewart.paul)\
**Replies:** 0\
**Last updated:** [December 6, 2016, 2:54pm UTC](https://forum.ansible.com/t/copy-result-of-a-find-command-using-register/23182 "2016-12-06T14:54:39Z")

</div>

Hello, I have placed below tasks in a role. It works fine when executing the complete role, but when i run my playbook and I include a tag “-- tags copy\_files”, my registered “result\_files” is not included. What would …

---

## [Module "Warning" after upgrade to v. 2.2](https://forum.ansible.com/t/module-warning-after-upgrade-to-v-2-2/23141)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 3\
**Last updated:** [December 6, 2016, 2:37pm UTC](https://forum.ansible.com/t/module-warning-after-upgrade-to-v-2-2/23141 "2016-12-06T14:37:20Z")

</div>

Hello, all. Today, I upgraded Ansible to version 2.2 from version 2.1 via RPM on a CentOS 6.x server. The first playbook I ran post-upgrade contained a play using the win\_updates module. It appears the module worked, bu…

---

## [Need help with AWS](https://forum.ansible.com/t/need-help-with-aws/23178)

<div class="topic-metadata">

**Author:** [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 9:39am UTC](https://forum.ansible.com/t/need-help-with-aws/23178 "2016-12-06T09:39:31Z")

</div>

Hi, I’ve been trying to create AWS instances using Ansible. Is it mandatory that I have to create a VPC, assign a Gateway and a security group for the instance? If yes can anyone help me by sending an example playbook t…

---

## [Trying to hack a module, but external dependency cannot be found despite being installed](https://forum.ansible.com/t/trying-to-hack-a-module-but-external-dependency-cannot-be-found-despite-being-installed/23114)

<div class="topic-metadata">

**Author:** [@Simon\_Wydooghe](https://forum.ansible.com/u/Simon_Wydooghe)\
**Replies:** 4\
**Last updated:** [December 6, 2016, 6:21am UTC](https://forum.ansible.com/t/trying-to-hack-a-module-but-external-dependency-cannot-be-found-despite-being-installed/23114 "2016-12-06T06:21:55Z")

</div>

I’m following the Developing Modules guide to get myself started with Ansible hacking (http://docs.ansible.com/ansible/dev\_guide/developing\_modules.html). I’ve sourced hacking/env-setup and now I’m simply trying to use …

---

## [handling BadHostKeyException?](https://forum.ansible.com/t/handling-badhostkeyexception/23177)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [December 6, 2016, 6:01am UTC](https://forum.ansible.com/t/handling-badhostkeyexception/23177 "2016-12-06T06:01:03Z")

</div>

Is anyone aware of how to handle the below exception in the \*\_command network modules? -tim File “/var/folders/jc/9d1188j962931rhqrlm4173w5j5m45/T/ansible\_bLe9q4/ansible\_modlib.zip/ansible/module\_utils/shell.py”, line …

---

## [ssh failing](https://forum.ansible.com/t/ssh-failing/23175)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 0\
**Last updated:** [December 6, 2016, 2:20am UTC](https://forum.ansible.com/t/ssh-failing/23175 "2016-12-06T02:20:51Z")

</div>

Hi i am connecting to my ec2 instance and i am getting this error , please help ssh centos@10.103.1.235 -vvv OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /root/.ssh/config debug1:…

---

## [flaky apt installs today on ubuntu](https://forum.ansible.com/t/flaky-apt-installs-today-on-ubuntu/23165)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 2\
**Last updated:** [December 5, 2016, 11:00pm UTC](https://forum.ansible.com/t/flaky-apt-installs-today-on-ubuntu/23165 "2016-12-05T23:00:41Z")

</div>

{"failed": true, "invocation": {"module\_args": {"cache\_valid\_time": null, "deb": null, "default\_release": null, "dpkg\_options": "force-confdef,force-confold", "force": false, "install\_recommends": null, "name": \["cryptse…

---

## [Error Attempting to MAKE Ansible src:  Fatal error in reader: Makefile, line 26: Unexpected end of line seen](https://forum.ansible.com/t/error-attempting-to-make-ansible-src-fatal-error-in-reader-makefile-line-26-unexpected-end-of-line-seen/23173)

<div class="topic-metadata">

**Author:** [@Harvey\_Flaisher](https://forum.ansible.com/u/Harvey_Flaisher)\
**Replies:** 0\
**Last updated:** [December 5, 2016, 6:11pm UTC](https://forum.ansible.com/t/error-attempting-to-make-ansible-src-fatal-error-in-reader-makefile-line-26-unexpected-end-of-line-seen/23173 "2016-12-05T18:11:03Z")

</div>

Hello: I am attempting to install Ansible on Unix Solaris. So I downloaded the src and am attempting to $ make make: Fatal error in reader: Makefile, line 26: Unexpected end of line seen 26 ifneq ($(shell which a2x 2\>…

---

## [Ansible Dynamic Vagrant Inventory script](https://forum.ansible.com/t/ansible-dynamic-vagrant-inventory-script/23172)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 0\
**Last updated:** [December 5, 2016, 5:45pm UTC](https://forum.ansible.com/t/ansible-dynamic-vagrant-inventory-script/23172 "2016-12-05T17:45:41Z")

</div>

Hi, this inventory script can be useful if you use Vagrant: https://github.com/harobed/ansible-dynamic-vagrant-inventory Best regards, Stéphane

---

## [Ansible Galaxy/GitHub Issues](https://forum.ansible.com/t/ansible-galaxy-github-issues/23171)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 4:29pm UTC](https://forum.ansible.com/t/ansible-galaxy-github-issues/23171 "2016-12-05T16:29:20Z")

</div>

I’ve filed a ticket on this but there does not seem to be a workaround (https://github.com/ansible/galaxy-issues/issues/217). I wrote a role that I want to deploy to Galaxy but the GitHub integration fails to work every …

---

## [modules for Packet host (extras/cloud/packet/)](https://forum.ansible.com/t/modules-for-packet-host-extras-cloud-packet/23103)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 1:12pm UTC](https://forum.ansible.com/t/modules-for-packet-host-extras-cloud-packet/23103 "2016-12-05T13:12:02Z")

</div>

Hello, I’m about to start working on modules for http://www.packet.net. Packet is baremetal infra provider. They have rather usual resource types: devices (servers) volumes ssh keys IP addresses snapshot policies I …

---

## [How can tell my docker\_container module to always pull an Image only sometimes when i specify using extra vars or something](https://forum.ansible.com/t/how-can-tell-my-docker-container-module-to-always-pull-an-image-only-sometimes-when-i-specify-using-extra-vars-or-something/23136)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 1:00pm UTC](https://forum.ansible.com/t/how-can-tell-my-docker-container-module-to-always-pull-an-image-only-sometimes-when-i-specify-using-extra-vars-or-something/23136 "2016-12-05T13:00:24Z")

</div>

I have a number of playbooks each related to starting a container for a microservice using docker\_container module. I supply the variables like image name from the outside using YAML var files. Since we never update a ta…

---

## [Problems with Solaris 8 & 9 in Ansible 2.2.0.0](https://forum.ansible.com/t/problems-with-solaris-8-9-in-ansible-2-2-0-0/23025)

<div class="topic-metadata">

**Author:** [@Daniel\_Delin](https://forum.ansible.com/u/Daniel_Delin)\
**Replies:** 7\
**Last updated:** [December 5, 2016, 12:24pm UTC](https://forum.ansible.com/t/problems-with-solaris-8-9-in-ansible-2-2-0-0/23025 "2016-12-05T12:24:27Z")

</div>

Just started testing the new 2.2 version with my current playbooks, but it fails already in the facts gathering on Solaris 8 and 9. Solaris 10 works fine, and 8 and 9 worked fine with 2.1.2.0 and 2.1.3.0. Python version…

---

## [Global variable to pas dynamic data between plays with different hosts](https://forum.ansible.com/t/global-variable-to-pas-dynamic-data-between-plays-with-different-hosts/23102)

<div class="topic-metadata">

**Author:** [@Pieter\_Voet](https://forum.ansible.com/u/Pieter_Voet)\
**Replies:** 7\
**Last updated:** [December 5, 2016, 12:12pm UTC](https://forum.ansible.com/t/global-variable-to-pas-dynamic-data-between-plays-with-different-hosts/23102 "2016-12-05T12:12:21Z")

</div>

Hi all, I’ve been looking into this for some time now, and I think I definitely can use some help here. What I want is to set a variable from a task specific to one host from a group, with a value that is set dynamical…

---

## [with\_dict and with\_items together in ansible task](https://forum.ansible.com/t/with-dict-and-with-items-together-in-ansible-task/23170)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 0\
**Last updated:** [December 5, 2016, 11:34am UTC](https://forum.ansible.com/t/with-dict-and-with-items-together-in-ansible-task/23170 "2016-12-05T11:34:38Z")

</div>

Hi My requirement is to install multiple patches on different machines based on which all tiers the patch is supported for install. Say patch1 should be installed on client group and service group, patch2 should be inst…

---

## [ansible on Ubuntu](https://forum.ansible.com/t/ansible-on-ubuntu/23167)

<div class="topic-metadata">

**Author:** [@Jason\_Li](https://forum.ansible.com/u/Jason_Li)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 7:23am UTC](https://forum.ansible.com/t/ansible-on-ubuntu/23167 "2016-12-05T07:23:55Z")

</div>

Hi Support, I’m new for ansible and Linux, may I know, as Ubuntu disabled ‘root’ account, but when we install system, the permission was grant to ‘root’ as well, like ‘/etc/’… I’m facing the problem when create /etc/ng…

---

## [Callback plugin Types](https://forum.ansible.com/t/callback-plugin-types/23168)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 2\
**Last updated:** [December 4, 2016, 2:04am UTC](https://forum.ansible.com/t/callback-plugin-types/23168 "2016-12-04T02:04:20Z")

</div>

What are the different types of Callback\_plugins - notification, stdout, aggregate ? Any more? And what are the differences? I am trying to develop a callback\_plugin using the json plugin as base. But I would like stdo…

---

## [Weird ec2\_elb\_facts error](https://forum.ansible.com/t/weird-ec2-elb-facts-error/23159)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [December 3, 2016, 7:57am UTC](https://forum.ansible.com/t/weird-ec2-elb-facts-error/23159 "2016-12-03T07:57:41Z")

</div>

I’m running into a very odd problem with an ansible playbook that I’m running from Jenkins. The playbook executes the ec2\_elb\_facts module (without the names parameter). When it runs from my jenkins pipeline job, I get t…

---

## [output var not used?](https://forum.ansible.com/t/output-var-not-used/23166)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [December 3, 2016, 6:05am UTC](https://forum.ansible.com/t/output-var-not-used/23166 "2016-12-03T06:05:19Z")

</div>

hi folks, I was looking at the nxos\_command module here https://github.com/ansible/ansible-modules-core/blob/6890003c4f8dcd8f63a5b280211068cfaf1dcc35/network/nxos/nxos\_command.py#L245 and noticed it used a cmd.get(‘out…

---

## [Ansible 2.2: register with a variable in the name](https://forum.ansible.com/t/ansible-2-2-register-with-a-variable-in-the-name/23111)

<div class="topic-metadata">

**Author:** [@Andreas\_Olsson](https://forum.ansible.com/u/Andreas_Olsson)\
**Replies:** 1\
**Last updated:** [December 3, 2016, 4:52am UTC](https://forum.ansible.com/t/ansible-2-2-register-with-a-variable-in-the-name/23111 "2016-12-03T04:52:18Z")

</div>

Greetings Since moving from Ansible 2.1.3 to Ansible 2.2.0 I have run into an issue with register, and when it's variable name is built up using a variable. I have no idea if this is due to a regression in Ansible 2.2…

---

## [How to "flatten" nested keys in a dictionary, when key structure varies?](https://forum.ansible.com/t/how-to-flatten-nested-keys-in-a-dictionary-when-key-structure-varies/23164)

<div class="topic-metadata">

**Author:** [@Mike\_Titus1](https://forum.ansible.com/u/Mike_Titus1)\
**Replies:** 2\
**Last updated:** [December 2, 2016, 11:52pm UTC](https://forum.ansible.com/t/how-to-flatten-nested-keys-in-a-dictionary-when-key-structure-varies/23164 "2016-12-02T23:52:09Z")

</div>

Given this YAML: somevar: alpha: beta: gamma: foo1: bar1 foo2: bar2 red: green: blue: baz1: quz1 baz2: quz2 I want to construct strings of the full key paths: somevar/alpha/beta/gamma somevar/red/green/b…

---

## [synchronize using a file list](https://forum.ansible.com/t/synchronize-using-a-file-list/23001)

<div class="topic-metadata">

**Author:** [@giaf](https://forum.ansible.com/u/giaf)\
**Replies:** 1\
**Last updated:** [December 2, 2016, 9:27pm UTC](https://forum.ansible.com/t/synchronize-using-a-file-list/23001 "2016-12-02T21:27:27Z")

</div>

Hi all, I’m new on this mailing list. I was wondering why the ansible plugin synchronize doesn’t support filelist. The correspondent rsync option is: --files-from= Is there any particular reason to not implement this …

---

## [Server not found in Kerberos Database](https://forum.ansible.com/t/server-not-found-in-kerberos-database/21638)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 8\
**Last updated:** [December 2, 2016, 5:18pm UTC](https://forum.ansible.com/t/server-not-found-in-kerberos-database/21638 "2016-12-02T17:18:58Z")

</div>

Control Node: CentOS 7 Ansible 2.1 pywinrm version from May 19th, 2016 Remote Node: Windows 7 Powershell 3 I’m having trouble connecting to my remote node with kerberos. I have carefully followed all…

---

## [ansible vault and lookups module for password hashes](https://forum.ansible.com/t/ansible-vault-and-lookups-module-for-password-hashes/23099)

<div class="topic-metadata">

**Author:** [@Asil](https://forum.ansible.com/u/Asil)\
**Replies:** 1\
**Last updated:** [December 2, 2016, 11:51am UTC](https://forum.ansible.com/t/ansible-vault-and-lookups-module-for-password-hashes/23099 "2016-12-02T11:51:18Z")

</div>

Is this possible? Lookups will work on an un-encrytped file but the following example on a vaulted file: root\_passwd\_hash: "{{ lookup('csvfile', 'root file=vault/pw\_hash.csv' ) }}" Gives me: \<propval type="astring"…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=531)

[Next page](https://forum.ansible.com/c/archives/31.md?page=533)
