# Archives

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

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

**Page:** 531

---

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

---

## [How to handle passwords with the vault](https://forum.ansible.com/t/how-to-handle-passwords-with-the-vault/23211)

<div class="topic-metadata">

**Author:** [@Dave\_B](https://forum.ansible.com/u/Dave_B)\
**Replies:** 1\
**Last updated:** [December 12, 2016, 1:46pm UTC](https://forum.ansible.com/t/how-to-handle-passwords-with-the-vault/23211 "2016-12-12T13:46:32Z")

</div>

I’m using Ansible to orchestrate a bunch of VM, as expected. I want to run commands as root, so I have the root password in a file in group\_vars, so /etc/ansible/group\_vars/vault, which I’ve encrypted with ansible-vault. …

---

## [Need help with accessing created instance](https://forum.ansible.com/t/need-help-with-accessing-created-instance/23233)

<div class="topic-metadata">

**Author:** [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 6:46am UTC](https://forum.ansible.com/t/need-help-with-accessing-created-instance/23233 "2016-12-12T06:46:33Z")

</div>

Hi, I have created an ec2 Instance in AWS using Ansible, I need help to access and configure few things in that instance. I have created, configured and associated a security-group, VPC, Gateway, attached a key-pair as …

---

## [ansible\_ssh\_host points to wrong ip](https://forum.ansible.com/t/ansible-ssh-host-points-to-wrong-ip/23232)

<div class="topic-metadata">

**Author:** [@Mathias\_Aldrin](https://forum.ansible.com/u/Mathias_Aldrin)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 6:33am UTC](https://forum.ansible.com/t/ansible-ssh-host-points-to-wrong-ip/23232 "2016-12-12T06:33:52Z")

</div>

Hi, I have created a vm with 3 network interfaces using a heat template in an openstack cloud environment. One of the interfaces are reachable from the outside the cloud and the other two interfaces are private network…

---

## [\[help\]Shared connection is closed](https://forum.ansible.com/t/help-shared-connection-is-closed/23231)

<div class="topic-metadata">

**Author:** [@Margin\_Hu](https://forum.ansible.com/u/Margin_Hu)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 4:22am UTC](https://forum.ansible.com/t/help-shared-connection-is-closed/23231 "2016-12-12T04:22:16Z")

</div>

Hi Guys, I met a strange issue “shared connection closed”, googled but don’t find any solution or workaround. when the issue happened , the network is ok , why ssh connection closed ? My verion is as following. \[root…

---

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

<div class="topic-metadata">

**Author:** [@Raj\_Reddy](https://forum.ansible.com/u/Raj_Reddy)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 1:34am UTC](https://forum.ansible.com/t/ansible-ssh-unreachable/23230 "2016-12-12T01:34:31Z")

</div>

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 ansible.cfg \[…

---

## [Possible to have --list-tasks be aware of variable names?](https://forum.ansible.com/t/possible-to-have-list-tasks-be-aware-of-variable-names/16287)

<div class="topic-metadata">

**Author:** [@Marc\_Abramowitz](https://forum.ansible.com/u/Marc_Abramowitz)\
**Replies:** 2\
**Last updated:** [December 12, 2016, 1:20am UTC](https://forum.ansible.com/t/possible-to-have-list-tasks-be-aware-of-variable-names/16287 "2016-12-12T01:20:02Z")

</div>

I have this playbook:

---

## ["validate\_certs" arg with ansible 2.2 and vmware module not skipping cert validation](https://forum.ansible.com/t/validate-certs-arg-with-ansible-2-2-and-vmware-module-not-skipping-cert-validation/23227)

<div class="topic-metadata">

**Author:** [@broncomz1](https://forum.ansible.com/u/broncomz1)\
**Replies:** 0\
**Last updated:** [December 11, 2016, 10:33pm UTC](https://forum.ansible.com/t/validate-certs-arg-with-ansible-2-2-and-vmware-module-not-skipping-cert-validation/23227 "2016-12-11T22:33:15Z")

</div>

I’ve see several discussions where the “validate\_certs” arg should work (was fixed, https://github.com/ansible/ansible-modules-extras/issues/2757 for example) in order to use self-signed certificates and skip cert valida…

---

## [Question about "debug = xxx.stdout" / xxx.stdout\_lines / xxx.stdout\_lines\[0\]](https://forum.ansible.com/t/question-about-debug-xxx-stdout-xxx-stdout-lines-xxx-stdout-lines-0/23226)

<div class="topic-metadata">

**Author:** [@Leon\_Lai](https://forum.ansible.com/u/Leon_Lai)\
**Replies:** 0\
**Last updated:** [December 11, 2016, 8:49am UTC](https://forum.ansible.com/t/question-about-debug-xxx-stdout-xxx-stdout-lines-xxx-stdout-lines-0/23226 "2016-12-11T08:49:14Z")

</div>

Hi there, I am new to Ansible and I am learning this toolkit. When I am dealing w/ the output, I find there are various ways to handle the variables. Some examples shows “debug = xxx.stdout”, Some examples mention “xxx.…

---

## [auto-mux: Trying existing master](https://forum.ansible.com/t/auto-mux-trying-existing-master/23225)

<div class="topic-metadata">

**Author:** [@Margin\_Hu](https://forum.ansible.com/u/Margin_Hu)\
**Replies:** 0\
**Last updated:** [December 11, 2016, 5:50am UTC](https://forum.ansible.com/t/auto-mux-trying-existing-master/23225 "2016-12-11T05:50:20Z")

</div>

I met a issue when run a playbook. what caused that symtom ? \[root@director restart-service-overcloud\]# vim site.yml \[root@director restart-service-overcloud\]# ansible-playbook site.yml PLAY \[controllers\] \*\*\*\*\*\*\*\*\*\*\*\*…

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

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