# Latest

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

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

**Page:** 704

---

## [Basic Info required please regarding the sequence that tasks inside a role are executed in](https://forum.ansible.com/t/basic-info-required-please-regarding-the-sequence-that-tasks-inside-a-role-are-executed-in/23169)

<div class="topic-metadata">

**Author:** [@Michael\_Byrne](https://forum.ansible.com/u/Michael_Byrne)\
**Replies:** 1\
**Last updated:** [December 8, 2016, 7:08am UTC](https://forum.ansible.com/t/basic-info-required-please-regarding-the-sequence-that-tasks-inside-a-role-are-executed-in/23169 "2016-12-08T07:08:33Z")

</div>

Hi, I’m new to Ansible so apologies for the the basic question. I have a role called “manage\_prod\_logs” I created the directory structure automatically using the command → "ansible-galaxy init manage\_prod\_logs" Withi…

---

## [Right way to wait for service start](https://forum.ansible.com/t/right-way-to-wait-for-service-start/23176)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 1\
**Last updated:** [December 8, 2016, 6:56am UTC](https://forum.ansible.com/t/right-way-to-wait-for-service-start/23176 "2016-12-08T06:56:19Z")

</div>

Hi, I would like to restart a server and wait till the services start up. I can us the wait\_for module to wait for ports to be up, but how can I wait for the services to be up? The service modules seem to start,stop or …

---

## [possible to run playbooks in offline mode?](https://forum.ansible.com/t/possible-to-run-playbooks-in-offline-mode/23181)

<div class="topic-metadata">

**Author:** [@neil1](https://forum.ansible.com/u/neil1)\
**Replies:** 1\
**Last updated:** [December 8, 2016, 6:43am UTC](https://forum.ansible.com/t/possible-to-run-playbooks-in-offline-mode/23181 "2016-12-08T06:43:07Z")

</div>

is it possible to run playbooks in an “offline” mode where setup wouldn’t make any remote requests, leaving out any facts that require it? we sometimes have limited internet connectivity and playbooks that are only doin…

---

## [Transform dictionary into lists for module consumption](https://forum.ansible.com/t/transform-dictionary-into-lists-for-module-consumption/23188)

<div class="topic-metadata">

**Author:** [@Geoff\_Webster](https://forum.ansible.com/u/Geoff_Webster)\
**Replies:** 1\
**Last updated:** [December 8, 2016, 5:33am UTC](https://forum.ansible.com/t/transform-dictionary-into-lists-for-module-consumption/23188 "2016-12-08T05:33:35Z")

</div>

I am trying to simplify some variable files for our developers and I am wondering if I can do this transform with existing filter/lookup plugins Ansible. I’ll have this dictionary (and the fields are not static, there c…

---

## [Control socket connect(...): Connection refused](https://forum.ansible.com/t/control-socket-connect-connection-refused/18462)

<div class="topic-metadata">

**Author:** [@Traun\_Leyden](https://forum.ansible.com/u/Traun_Leyden)\
**Replies:** 4\
**Last updated:** [December 8, 2016, 4:35am UTC](https://forum.ansible.com/t/control-socket-connect-connection-refused/18462 "2016-12-08T04:35:30Z")

</div>

I’m running ansible on Ubuntu 14.04.2 LTS running OpenSSH\_6.6.1p1 inside of a Docker container with a CoreOS host, and running this command as root: ansible key\_tleyden -i inventory -m ping -u centos -vvvv and seeing…

---

## [Issue with junos\_config module and delete statements](https://forum.ansible.com/t/issue-with-junos-config-module-and-delete-statements/23196)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 0\
**Last updated:** [December 8, 2016, 12:48am UTC](https://forum.ansible.com/t/issue-with-junos-config-module-and-delete-statements/23196 "2016-12-08T00:48:35Z")

</div>

I was using the junos\_template module in 2.1 with pretty good results, but 2.2 merged junos\_template into junos\_config. Good idea, but I don’t think it’s working right. Here’s an example playbook I’m running: \`

---

## [Ack!  Color!  Make it stop!](https://forum.ansible.com/t/ack-color-make-it-stop/23174)

<div class="topic-metadata">

**Author:** [@K\_Richard\_Pixley](https://forum.ansible.com/u/K_Richard_Pixley)\
**Replies:** 1\
**Last updated:** [December 7, 2016, 4:09pm UTC](https://forum.ansible.com/t/ack-color-make-it-stop/23174 "2016-12-07T16:09:59Z")

</div>

Hi. I’m a total ansible newbie. My first attempt to run a command came out totally illegible as it’s in color. How do I turn this off? Forever. Never ask me again, legible output only, please. I looked through the man …

---

## [with\_items and register in a role/main.yml](https://forum.ansible.com/t/with-items-and-register-in-a-role-main-yml/23133)

<div class="topic-metadata">

**Author:** [@stewart.paul](https://forum.ansible.com/u/stewart.paul)\
**Replies:** 4\
**Last updated:** [December 7, 2016, 4:02pm UTC](https://forum.ansible.com/t/with-items-and-register-in-a-role-main-yml/23133 "2016-12-07T16:02:14Z")

</div>

Hi, I’ve created a small demo below which demonstrates my problem. I can’t seem to invoke the with\_items and call {{item}} later on. What am I doing wrong? I’ve tried searching obviously but I can’t find the direct ans…

---

## [Trouble in using netscaler module of ansible](https://forum.ansible.com/t/trouble-in-using-netscaler-module-of-ansible/23162)

<div class="topic-metadata">

**Author:** [@Chitrangda\_Kapoor](https://forum.ansible.com/u/Chitrangda_Kapoor)\
**Replies:** 3\
**Last updated:** [December 7, 2016, 3:29pm UTC](https://forum.ansible.com/t/trouble-in-using-netscaler-module-of-ansible/23162 "2016-12-07T15:29:54Z")

</div>

Hi, I am trying to use netscaler module of ansible like below:- “ansible host -m netscaler -a “nsc\_host=10.102.56.141 user=nsroot password=nsroot”” But I am getting the below error:- ‘ERROR! Specified hosts and/or --…

---

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

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

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