# Latest

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

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

**Page:** 702

---

## [Using complex data structures in templates](https://forum.ansible.com/t/using-complex-data-structures-in-templates/23259)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 6:41am UTC](https://forum.ansible.com/t/using-complex-data-structures-in-templates/23259 "2016-12-15T06:41:42Z")

</div>

Hi Some of my playbooks involve configuring files in languages such as PHP. The configuration is basically a large PHP array, for example this SimpleSAMLphp config file: \<?php $config = array ( 'language.i18n.backend…

---

## [Gather facts for more than 300 hosts is failing.](https://forum.ansible.com/t/gather-facts-for-more-than-300-hosts-is-failing/23195)

<div class="topic-metadata">

**Author:** [@lishyalak](https://forum.ansible.com/u/lishyalak)\
**Replies:** 1\
**Last updated:** [December 15, 2016, 3:28am UTC](https://forum.ansible.com/t/gather-facts-for-more-than-300-hosts-is-failing/23195 "2016-12-15T03:28:40Z")

</div>

I am trying to gather facts into a json and it is failing for 400 servers. It gathers for 300 hosts without any issue, is there any limitation.

---

## [service module with Slackware](https://forum.ansible.com/t/service-module-with-slackware/23220)

<div class="topic-metadata">

**Author:** [@Steve\_Saner](https://forum.ansible.com/u/Steve_Saner)\
**Replies:** 4\
**Last updated:** [December 14, 2016, 10:04pm UTC](https://forum.ansible.com/t/service-module-with-slackware/23220 "2016-12-14T22:04:20Z")

</div>

I am finding that the service module in the core ansible modules does not work for starting/stopping services on a Slackware system. Slackware, as you might know, does not use the same startup script systems that most Li…

---

## [Traceback in azure\_rm.py on Centos 7.3 with Azure python SDK rc6](https://forum.ansible.com/t/traceback-in-azure-rm-py-on-centos-7-3-with-azure-python-sdk-rc6/23250)

<div class="topic-metadata">

**Author:** [@Jose\_Moreno](https://forum.ansible.com/u/Jose_Moreno)\
**Replies:** 1\
**Last updated:** [December 14, 2016, 7:09pm UTC](https://forum.ansible.com/t/traceback-in-azure-rm-py-on-centos-7-3-with-azure-python-sdk-rc6/23250 "2016-12-14T19:09:44Z")

</div>

Hi there, I am trying to install Ansible on a clean, yum-updated CentOS 7.3 machine with the Azure modules, but azure\_rm.py refuses to work. I installed the Azure SDK version rc6, and I could not spot any error. I am us…

---

## [Ansible Tower 3.0.2 and Boto](https://forum.ansible.com/t/ansible-tower-3-0-2-and-boto/23246)

<div class="topic-metadata">

**Author:** [@Girish\_Khadke](https://forum.ansible.com/u/Girish_Khadke)\
**Replies:** 1\
**Last updated:** [December 14, 2016, 6:57pm UTC](https://forum.ansible.com/t/ansible-tower-3-0-2-and-boto/23246 "2016-12-14T18:57:01Z")

</div>

Hi, I am running following stack for ansible : Ansible Tower 3.0.2 Ansible 2.1.1.0 (that comes default on Tower 3.0.2) Below is the output of pip freeze on Ansible Tower CentOS 6.8 machine which shows any python pack…

---

## [Problem in passing JSON string in environment to shell module](https://forum.ansible.com/t/problem-in-passing-json-string-in-environment-to-shell-module/23256)

<div class="topic-metadata">

**Author:** [@Nirav\_Radia](https://forum.ansible.com/u/Nirav_Radia)\
**Replies:** 1\
**Last updated:** [December 14, 2016, 6:47pm UTC](https://forum.ansible.com/t/problem-in-passing-json-string-in-environment-to-shell-module/23256 "2016-12-14T18:47:39Z")

</div>

I am trying to pass JSON string in environment. \` name: Start {{service\_name}} shell: “\<\> --server.port={{service\_port}}"” environment: SPRING\_APPLICATION\_JSON: ‘{“test-host.1”:“{{test\_host\_1}}”,“test-host.2”:“{{tes…

---

## [How do I use Ansible facts in a custom module?](https://forum.ansible.com/t/how-do-i-use-ansible-facts-in-a-custom-module/23262)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 0\
**Last updated:** [December 14, 2016, 5:39pm UTC](https://forum.ansible.com/t/how-do-i-use-ansible-facts-in-a-custom-module/23262 "2016-12-14T17:39:29Z")

</div>

I’m trying to write my first Ansible module. How do I refer to the built-in facts that Ansible gathers during the setup phase? I just want to be able to do this inside my module, for example.I want to be able to do the “…

---

## [setup module command](https://forum.ansible.com/t/setup-module-command/23261)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 0\
**Last updated:** [December 14, 2016, 4:52pm UTC](https://forum.ansible.com/t/setup-module-command/23261 "2016-12-14T16:52:11Z")

</div>

Can you please provide me the setup module which will display all available options for setup, that way i can do with other modules also like ansible all -m setup ?

---

## [Unable to use ec2\_vpc\_route\_table to remove route tables.... anyone else?](https://forum.ansible.com/t/unable-to-use-ec2-vpc-route-table-to-remove-route-tables-anyone-else/23194)

<div class="topic-metadata">

**Author:** [@rc.loco](https://forum.ansible.com/u/rc.loco)\
**Replies:** 3\
**Last updated:** [December 14, 2016, 3:09pm UTC](https://forum.ansible.com/t/unable-to-use-ec2-vpc-route-table-to-remove-route-tables-anyone-else/23194 "2016-12-14T15:09:38Z")

</div>

Using version: ansible 2.2.1.0 (stable-2.2 acad2ba246) last updated 2016/12/07 11:28:43 (GMT -400) lib/ansible/modules/core: (detached HEAD 8139278530) last updated 2016/12/07 11:28:55 (GMT -400) lib/ansible/modules/e…

---

## [IAM Roles with Ansible](https://forum.ansible.com/t/iam-roles-with-ansible/23244)

<div class="topic-metadata">

**Author:** [@DG11](https://forum.ansible.com/u/DG11)\
**Replies:** 7\
**Last updated:** [December 13, 2016, 9:18pm UTC](https://forum.ansible.com/t/iam-roles-with-ansible/23244 "2016-12-13T21:18:21Z")

</div>

Example of role with custom trust policy for Lambda service

---

## [We would like to contributing ansible modules code, would you help us review these moduls before](https://forum.ansible.com/t/we-would-like-to-contributing-ansible-modules-code-would-you-help-us-review-these-moduls-before/23247)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 7:53pm UTC](https://forum.ansible.com/t/we-would-like-to-contributing-ansible-modules-code-would-you-help-us-review-these-moduls-before/23247 "2016-12-13T19:53:09Z")

</div>

We are HUAWEI data center CloudEngine switch(CISCO NEXUS switch similar) team。We have developed some Ansible modules to manage HUAWEI switch, and we are developing some other HUAWEI switch Ansible modules. This is our A…

---

## [Chose random host](https://forum.ansible.com/t/chose-random-host/12826)

<div class="topic-metadata">

**Author:** [@Curtis](https://forum.ansible.com/u/Curtis)\
**Replies:** 10\
**Last updated:** [December 13, 2016, 4:43pm UTC](https://forum.ansible.com/t/chose-random-host/12826 "2016-12-13T16:43:29Z")

</div>

Hi All, What I need to do is pick one of the ansible\_hosts group members randomly to run some cluster bootstrap code on it. I don’t care which one, but it can be only one. Any suggestions as to how to do that? Thanks, …

---

## [update of ansible seems to be inconsistent](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191)

<div class="topic-metadata">

**Author:** [@Sebastian\_S](https://forum.ansible.com/u/Sebastian_S)\
**Replies:** 7\
**Last updated:** [December 13, 2016, 3:17pm UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191 "2016-12-13T15:17:57Z")

</div>

Hello folks, we have a Ubuntu 14.04 box running Ansible and Ansible-Tower on it. The packages are updates regularly. The Ansible mirror is also listed in the sources.list, so it gets updates too. But there seem to be so…

---

## [Configuration files deployment](https://forum.ansible.com/t/configuration-files-deployment/23192)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 2:46pm UTC](https://forum.ansible.com/t/configuration-files-deployment/23192 "2016-12-13T14:46:54Z")

</div>

Make FS a list, then you can do this - name: Deploy configuration files template: src=config1.j2 dest={{ item }}/config1 with\_items: "{{ FS }}"

---

## [Ansible philosophy for those new to the list == keep it simple](https://forum.ansible.com/t/ansible-philosophy-for-those-new-to-the-list-keep-it-simple/12999)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 8\
**Last updated:** [December 13, 2016, 10:15am UTC](https://forum.ansible.com/t/ansible-philosophy-for-those-new-to-the-list-keep-it-simple/12999 "2016-12-13T10:15:47Z")

</div>

This is not meant to be anything as formal as the “Zen of Python”, but I figured I’d type it up since we’ve multiplied userland by 100x since we last talked about the design goals of the system. I tend to be detecting a…

---

## [Modify ansible default system facts](https://forum.ansible.com/t/modify-ansible-default-system-facts/23197)

<div class="topic-metadata">

**Author:** [@colynn.liu](https://forum.ansible.com/u/colynn.liu)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 6:46am UTC](https://forum.ansible.com/t/modify-ansible-default-system-facts/23197 "2016-12-13T06:46:34Z")

</div>

As titile, Could we redefined ansible default system facts. eg: default “ansible\_env.PWD” is “/root” But I want to change it to specific directory. shall I do ?

---

## [Tasks are not executed in the order defined in With\_dict](https://forum.ansible.com/t/tasks-are-not-executed-in-the-order-defined-in-with-dict/23237)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 4\
**Last updated:** [December 13, 2016, 6:37am UTC](https://forum.ansible.com/t/tasks-are-not-executed-in-the-order-defined-in-with-dict/23237 "2016-12-13T06:37:14Z")

</div>

Hi I have a dict where I need to install patches in the order patches: patch1: patch\_name: patch2: patch\_name: patch3: patch\_name: and so on patch8: patch\_name: name: install patches include: install\_patch.…

---

## [script module show job successed but the job is failed or not work](https://forum.ansible.com/t/script-module-show-job-successed-but-the-job-is-failed-or-not-work/23248)

<div class="topic-metadata">

**Author:** [@shaolongtan0886](https://forum.ansible.com/u/shaolongtan0886)\
**Replies:** 0\
**Last updated:** [December 13, 2016, 6:19am UTC](https://forum.ansible.com/t/script-module-show-job-successed-but-the-job-is-failed-or-not-work/23248 "2016-12-13T06:19:03Z")

</div>

Hi Everybody, I want to startup tomcat by script module . The running output show the script is successful at target machine but actually tomcat do not startup. I try same script by command module. I meet same issue. If…

---

## [Conditional skipped?](https://forum.ansible.com/t/conditional-skipped/23242)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 6:14am UTC](https://forum.ansible.com/t/conditional-skipped/23242 "2016-12-13T06:14:02Z")

</div>

My little playbook: hosts: all become: true become\_user: root become\_method: sudo tasks: name: Update McAfee virus definitions shell: /opt/McAfee/LinuxShield/bin/nails task --run 1 register: result name: Up…

---

## [trouble using sros modules to log in with a specific user](https://forum.ansible.com/t/trouble-using-sros-modules-to-log-in-with-a-specific-user/23131)

<div class="topic-metadata">

**Author:** [@Nick\_Keeling](https://forum.ansible.com/u/Nick_Keeling)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 2:32am UTC](https://forum.ansible.com/t/trouble-using-sros-modules-to-log-in-with-a-specific-user/23131 "2016-12-13T02:32:15Z")

</div>

First of all, I am still learning Ansible, so there is a very real possibility this is user error, but here is my issue: When I try to log in using the sros module, regardless of the username I am using in the yml file,…

---

## [Getting lost in nesting](https://forum.ansible.com/t/getting-lost-in-nesting/23243)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 1\
**Last updated:** [December 12, 2016, 10:40pm UTC](https://forum.ansible.com/t/getting-lost-in-nesting/23243 "2016-12-12T22:40:27Z")

</div>

I have a master playlist, global.yml, in which I specified hosts, become, and includes for different OSes That worked fine until I went to add handlers. In my included playbooks, I did something like: handlers name…

---

## [Conditional when any of several tasks has been done](https://forum.ansible.com/t/conditional-when-any-of-several-tasks-has-been-done/23241)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 4\
**Last updated:** [December 12, 2016, 9:12pm UTC](https://forum.ansible.com/t/conditional-when-any-of-several-tasks-has-been-done/23241 "2016-12-12T21:12:47Z")

</div>

Let’s say I have a playbook that looks for and changes lines in sshd\_config if necessary. Then I want the sshd service to be restarted only if at least one of those actions has taken place. Is there a way to evaluate for…

---

## [ansible wait\_for ssh for a specific user](https://forum.ansible.com/t/ansible-wait-for-ssh-for-a-specific-user/23234)

<div class="topic-metadata">

**Author:** [@zerros](https://forum.ansible.com/u/zerros)\
**Replies:** 6\
**Last updated:** [December 12, 2016, 7:19pm UTC](https://forum.ansible.com/t/ansible-wait-for-ssh-for-a-specific-user/23234 "2016-12-12T19:19:28Z")

</div>

Hi, forgive me for my bad english. I’m trying to find a way to test an ssh connection to a specific user on a new server. When I create a new virtual server, an ansible playbook is executed to finish the soft deploymen…

---

## [unarchive remote\_src not working, no effect](https://forum.ansible.com/t/unarchive-remote-src-not-working-no-effect/23239)

<div class="topic-metadata">

**Author:** [@Spike\_Robinson](https://forum.ansible.com/u/Spike_Robinson)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 5:50pm UTC](https://forum.ansible.com/t/unarchive-remote-src-not-working-no-effect/23239 "2016-12-12T17:50:56Z")

</div>

the copy option in the unarchive module is deprecated and we are advised to use remote\_src instead However, in an otherwise identical script, having staged the source file to the target machine successfully in a previou…

---

## [Manipulating EC2 instance storage](https://forum.ansible.com/t/manipulating-ec2-instance-storage/15480)

<div class="topic-metadata">

**Author:** [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Replies:** 4\
**Last updated:** [December 12, 2016, 5:19pm UTC](https://forum.ansible.com/t/manipulating-ec2-instance-storage/15480 "2016-12-12T17:19:35Z")

</div>

Hello everyone! Here goes my first post in the wonderful Ansible project :slight\_smile: Here’s the problem that I am facing: I am trying to launch an EC2 instance (c3.2xlarge) and, in the process, I want to resize the …

---

## [ansible ssh error Unreachable.](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229)

<div class="topic-metadata">

**Author:** [@Raj\_Reddy](https://forum.ansible.com/u/Raj_Reddy)\
**Replies:** 3\
**Last updated:** [December 12, 2016, 4:52pm UTC](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229 "2016-12-12T16:52:13Z")

</div>

ERROR: UNREACHABLE! =\> changed : false , msg:SSH error:data could not be sent to the remote host.Make sure this host can be reached over ssh", "unreachable": true Hosts: \[test\] xxxxxx.local ansible\_ssh\_user=myname ansi…

---

## [ansible container and requirements.yml](https://forum.ansible.com/t/ansible-container-and-requirements-yml/23222)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 1\
**Last updated:** [December 12, 2016, 4:29pm UTC](https://forum.ansible.com/t/ansible-container-and-requirements-yml/23222 "2016-12-12T16:29:53Z")

</div>

Hi list, I’m trying to use ansible-container to use a role that I have available via a gitlab installation that is run internally. When I run the main.yml file as part of “ansible-container build” I get this error ans…

---

## [SVN module: In check\_mode also check svn.has\_local\_mods()](https://forum.ansible.com/t/svn-module-in-check-mode-also-check-svn-has-local-mods/23238)

<div class="topic-metadata">

**Author:** [@vj.calvo](https://forum.ansible.com/u/vj.calvo)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 4:12pm UTC](https://forum.ansible.com/t/svn-module-in-check-mode-also-check-svn-has-local-mods/23238 "2016-12-12T16:12:48Z")

</div>

Hello, For our deployment purposes using Ansible and SVN we would need to test (check mode, dry-run) before run the deployment playbook. If there is some missing file in the destination it will pass the check-mode but n…

---

## [Creating Security Groups with EC2\_group mod](https://forum.ansible.com/t/creating-security-groups-with-ec2-group-mod/23218)

<div class="topic-metadata">

**Author:** [@DG11](https://forum.ansible.com/u/DG11)\
**Replies:** 3\
**Last updated:** [December 12, 2016, 3:56pm UTC](https://forum.ansible.com/t/creating-security-groups-with-ec2-group-mod/23218 "2016-12-12T15:56:21Z")

</div>

I’ve had great success in building out my security groups with this module, until today. The issue is that I cannot code in yaml a destination referencing a prefix-list. “pl-XXXXXX” Is this supported? Or planned in the…

---

## [when ... is defined not woring as expected?](https://forum.ansible.com/t/when-is-defined-not-woring-as-expected/23235)

<div class="topic-metadata">

**Author:** [@Kai1](https://forum.ansible.com/u/Kai1)\
**Replies:** 2\
**Last updated:** [December 12, 2016, 2:53pm UTC](https://forum.ansible.com/t/when-is-defined-not-woring-as-expected/23235 "2016-12-12T14:53:09Z")

</div>

Hi there! ansible-playbook (v. 2.2.0.0) throws an error message that I do not understand in my conext: "'pkg\_repo\_list' is undefined" The task reads:

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

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