# Archives

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

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

**Page:** 476

---

## [How to properly setup EC2 instance hostname?](https://forum.ansible.com/t/how-to-properly-setup-ec2-instance-hostname/24849)

<div class="topic-metadata">

**Author:** [@rene](https://forum.ansible.com/u/rene)\
**Replies:** 2\
**Last updated:** [June 29, 2017, 12:45pm UTC](https://forum.ansible.com/t/how-to-properly-setup-ec2-instance-hostname/24849 "2017-06-29T12:45:11Z")

</div>

Dear community, I have another issue I can’t wrap my head around. Possibly because I stared on the screen for too long, maybe because I’m to stupid. Anyways, I want to create an AWS EC2 instance (Debian Strecht → which…

---

## [Hi. I am new developer here.](https://forum.ansible.com/t/hi-i-am-new-developer-here/24845)

<div class="topic-metadata">

**Author:** [@Savan\_Patel](https://forum.ansible.com/u/Savan_Patel)\
**Replies:** 2\
**Last updated:** [June 29, 2017, 11:32am UTC](https://forum.ansible.com/t/hi-i-am-new-developer-here/24845 "2017-06-29T11:32:12Z")

</div>

Hi team. I had a chance to use ansible in my current internship and I love it. I wish to contribute to the project. I am new developer here. I would like to start with a bug fix if any one could guide me and hook me up t…

---

## [Adding New UCS Modules to Ansible](https://forum.ansible.com/t/adding-new-ucs-modules-to-ansible/23467)

<div class="topic-metadata">

**Author:** [@brian\_hopkins](https://forum.ansible.com/u/brian_hopkins)\
**Replies:** 7\
**Last updated:** [June 29, 2017, 9:11am UTC](https://forum.ansible.com/t/adding-new-ucs-modules-to-ansible/23467 "2017-06-29T09:11:49Z")

</div>

Hello Everyone, I recently started working on a project for UCS Manager in Ansible using the Python SDK for UCS. The code is https://github.com/btotharye/ansible-ucs. My question is that I would like to start getting th…

---

## [Idiot check on how register: is supposed to work?](https://forum.ansible.com/t/idiot-check-on-how-register-is-supposed-to-work/24826)

<div class="topic-metadata">

**Author:** [@bobby.kuzma](https://forum.ansible.com/u/bobby.kuzma)\
**Replies:** 4\
**Last updated:** [June 29, 2017, 8:54am UTC](https://forum.ansible.com/t/idiot-check-on-how-register-is-supposed-to-work/24826 "2017-06-29T08:54:18Z")

</div>

Hello all, I’m very new to ansible, and hope that this is something very simple that has escaped me. Here’s what I’m trying to accomplish: I’m doing a task on prior runs that shouldn’t be repeated, so I’m dropping a fl…

---

## [Can Ansible support offline files?](https://forum.ansible.com/t/can-ansible-support-offline-files/24817)

<div class="topic-metadata">

**Author:** [@Omer\_Shtivi](https://forum.ansible.com/u/Omer_Shtivi)\
**Replies:** 2\
**Last updated:** [June 29, 2017, 8:46am UTC](https://forum.ansible.com/t/can-ansible-support-offline-files/24817 "2017-06-29T08:46:34Z")

</div>

Hello, I’m new to Ansible. I got a task in work to check all the configuration of our switches if they are complaint. I can’t SSH to the devices to perform the checks. Can Ansible perform such tasks? running over con…

---

## [Error with ansible](https://forum.ansible.com/t/error-with-ansible/24827)

<div class="topic-metadata">

**Author:** [@Mehdi\_B](https://forum.ansible.com/u/Mehdi_B)\
**Replies:** 5\
**Last updated:** [June 29, 2017, 8:32am UTC](https://forum.ansible.com/t/error-with-ansible/24827 "2017-06-29T08:32:16Z")

</div>

Hi, Getting this error: ansible-playbook -i inventory.azur demo.yml PLAY \[localhost\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[Gatherin…

---

## [Lookup plugin returns failure](https://forum.ansible.com/t/lookup-plugin-returns-failure/24843)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 2\
**Last updated:** [June 28, 2017, 9:04pm UTC](https://forum.ansible.com/t/lookup-plugin-returns-failure/24843 "2017-06-28T21:04:36Z")

</div>

Peeps, Hey! I have an issue with the credstash plugin . . . if it can’t complete the lookup it simply vomits an AnsibleError, so it’s not possible to do something like: {{ lookup(‘credstash’, ‘blah’, ‘bling’) | default…

---

## [Modify Multiple EC2 Security Group Rules](https://forum.ansible.com/t/modify-multiple-ec2-security-group-rules/24844)

<div class="topic-metadata">

**Author:** [@wcloud7](https://forum.ansible.com/u/wcloud7)\
**Replies:** 0\
**Last updated:** [June 28, 2017, 7:59pm UTC](https://forum.ansible.com/t/modify-multiple-ec2-security-group-rules/24844 "2017-06-28T19:59:49Z")

</div>

I’m attempting to use Ansible ec2\_group to modify or append EC2 Security Group rules. I tried to populate variables in the playbook used for the names and descriptions of their corresponding security groups with either v…

---

## [Ansible Tower installation error](https://forum.ansible.com/t/ansible-tower-installation-error/24836)

<div class="topic-metadata">

**Author:** [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Replies:** 1\
**Last updated:** [June 28, 2017, 2:20pm UTC](https://forum.ansible.com/t/ansible-tower-installation-error/24836 "2017-06-28T14:20:31Z")

</div>

Hi, I am installing a fresh ansible tower on my localhost on ubuntu 16.04LTS. This is my first experience with the tower. When I run the setup.sh script, I get this error, It is on this task, \< TASK \[packages\_ubuntu …

---

## [Problems updating Junos configuration with new modules/versions](https://forum.ansible.com/t/problems-updating-junos-configuration-with-new-modules-versions/24834)

<div class="topic-metadata">

**Author:** [@Siegfried](https://forum.ansible.com/u/Siegfried)\
**Replies:** 2\
**Last updated:** [June 28, 2017, 12:45pm UTC](https://forum.ansible.com/t/problems-updating-junos-configuration-with-new-modules-versions/24834 "2017-06-28T12:45:16Z")

</div>

Hi, I had been using the Juniper.junos modules from Ansible Galaxy successfully for a while now, but had been asked to update my python environment to corporate standards through Conda, which included newer versions of …

---

## [import ansible.constants as C ImportError: No module named ansible.constants](https://forum.ansible.com/t/import-ansible-constants-as-c-importerror-no-module-named-ansible-constants/24839)

<div class="topic-metadata">

**Author:** [@tilak\_mishra](https://forum.ansible.com/u/tilak_mishra)\
**Replies:** 0\
**Last updated:** [June 28, 2017, 12:00pm UTC](https://forum.ansible.com/t/import-ansible-constants-as-c-importerror-no-module-named-ansible-constants/24839 "2017-06-28T12:00:35Z")

</div>

Hello Experts, Background : Installing Ansible on a Host which is not connected to Internet. It’s running on SUSE Linux Enterprise Server 11 SP4 Already Installed Python version: Python 2.6.9 Installed Python 2.7 …

---

## [AWS IAM role and policy assume\_role\_policy\_document not parsing json](https://forum.ansible.com/t/aws-iam-role-and-policy-assume-role-policy-document-not-parsing-json/24838)

<div class="topic-metadata">

**Author:** [@Darragh\_Grealish](https://forum.ansible.com/u/Darragh_Grealish)\
**Replies:** 0\
**Last updated:** [June 28, 2017, 9:52am UTC](https://forum.ansible.com/t/aws-iam-role-and-policy-assume-role-policy-document-not-parsing-json/24838 "2017-06-28T09:52:25Z")

</div>

Hi, I’ve been struggling to get IAM policy and IAM role working properly, These are the two modules with the issues: http://docs.ansible.com/ansible/iam\_policy\_module.html http://docs.ansible.com/ansible/iam\_role\_mod…

---

## [Passing to make additional nonvalue parameter (like make -e target) on module level](https://forum.ansible.com/t/passing-to-make-additional-nonvalue-parameter-like-make-e-target-on-module-level/24828)

<div class="topic-metadata">

**Author:** [@Kuba\_Nowak](https://forum.ansible.com/u/Kuba_Nowak)\
**Replies:** 1\
**Last updated:** [June 28, 2017, 9:07am UTC](https://forum.ansible.com/t/passing-to-make-additional-nonvalue-parameter-like-make-e-target-on-module-level/24828 "2017-06-28T09:07:28Z")

</div>

So I have working Makefile and want to run it via Ansible. https://docs.ansible.com/ansible/make\_module.html#options But make module does not seem to support flags, just key-values, any idea how to make this work other…

---

## [Ansible WinRM Connection 'Connection reset by peer' only when Windows Role ADFS/WAP is Installed and Post Configuration Finished](https://forum.ansible.com/t/ansible-winrm-connection-connection-reset-by-peer-only-when-windows-role-adfs-wap-is-installed-and-post-configuration-finished/24790)

<div class="topic-metadata">

**Author:** [@David\_Baumann](https://forum.ansible.com/u/David_Baumann)\
**Replies:** 4\
**Last updated:** [June 28, 2017, 8:24am UTC](https://forum.ansible.com/t/ansible-winrm-connection-connection-reset-by-peer-only-when-windows-role-adfs-wap-is-installed-and-post-configuration-finished/24790 "2017-06-28T08:24:07Z")

</div>

Hi i got a realy akward Problem with Ansible(devel) Got Multiple Servers and all works fine with WinRM and Kerberos on Ansible Side until i Install/Configure follow Windows Roles on hosts Active Directory Federation S…

---

## [Getting the hostname of the control machine](https://forum.ansible.com/t/getting-the-hostname-of-the-control-machine/24829)

<div class="topic-metadata">

**Author:** [@rambius](https://forum.ansible.com/u/rambius)\
**Replies:** 2\
**Last updated:** [June 27, 2017, 9:08pm UTC](https://forum.ansible.com/t/getting-the-hostname-of-the-control-machine/24829 "2017-06-27T21:08:58Z")

</div>

Hello, I have a mail task that sends some log files and I would like to make it more clear what process generated them: name: send logs mail: host: smpthost port: 25 body: “Please review the attached logs from the…

---

## [Ansible do-until loop in check mode](https://forum.ansible.com/t/ansible-do-until-loop-in-check-mode/24831)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://forum.ansible.com/u/Ryan_Groten)\
**Replies:** 7\
**Last updated:** [June 27, 2017, 7:37pm UTC](https://forum.ansible.com/t/ansible-do-until-loop-in-check-mode/24831 "2017-06-27T19:37:47Z")

</div>

Using a standard do-until loop like this: shell: /bin/true register: result until: result.rc == 0 retries: 5 delay: 10 Anytime I run the playbook in check mode this task will fail (because the result variable is…

---

## [unarchive module fails](https://forum.ansible.com/t/unarchive-module-fails/18930)

<div class="topic-metadata">

**Author:** [@Andy\_Brittingham](https://forum.ansible.com/u/Andy_Brittingham)\
**Replies:** 8\
**Last updated:** [June 27, 2017, 7:07pm UTC](https://forum.ansible.com/t/unarchive-module-fails/18930 "2017-06-27T19:07:01Z")

</div>

While using the module unarchive to upload a file.tar.gz from /tmp on my local machine I keep getting this error. msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed…

---

## [Variable namespacing](https://forum.ansible.com/t/variable-namespacing/24806)

<div class="topic-metadata">

**Author:** [@Ben\_Mildren](https://forum.ansible.com/u/Ben_Mildren)\
**Replies:** 1\
**Last updated:** [June 27, 2017, 6:32pm UTC](https://forum.ansible.com/t/variable-namespacing/24806 "2017-06-27T18:32:27Z")

</div>

When wanting to namespace variables in a role, is it typical to use a hash, or a prefix? Is there a best practice for this? e.g. role\_name\_var\_one: 1 role\_name\_var\_two: 2 role\_name\_var\_three: 3 or role\_name: var\_o…

---

## [Running commands as sudo](https://forum.ansible.com/t/running-commands-as-sudo/24832)

<div class="topic-metadata">

**Author:** [@lask001](https://forum.ansible.com/u/lask001)\
**Replies:** 0\
**Last updated:** [June 27, 2017, 5:28pm UTC](https://forum.ansible.com/t/running-commands-as-sudo/24832 "2017-06-27T17:28:06Z")

</div>

I haven’t been using ansible that long, but so far I’m really liking it. I’m running into an issue though that I’m hoping someone will be able to shed some light on. I have an account, foo on the server I want to run my…

---

## [Ansible tower email notifications](https://forum.ansible.com/t/ansible-tower-email-notifications/24809)

<div class="topic-metadata">

**Author:** [@DM1](https://forum.ansible.com/u/DM1)\
**Replies:** 1\
**Last updated:** [June 27, 2017, 3:34pm UTC](https://forum.ansible.com/t/ansible-tower-email-notifications/24809 "2017-06-27T15:34:14Z")

</div>

Hi! I was wondering is it possible to change Ansible Tower notification ( email ) subject and the message that will be send ? I have created the notification and I am using it in my job template and it is working. Only…

---

## [Filtering by arrays within arrays.](https://forum.ansible.com/t/filtering-by-arrays-within-arrays/24808)

<div class="topic-metadata">

**Author:** [@Phillip1](https://forum.ansible.com/u/Phillip1)\
**Replies:** 1\
**Last updated:** [June 27, 2017, 7:04am UTC](https://forum.ansible.com/t/filtering-by-arrays-within-arrays/24808 "2017-06-27T07:04:41Z")

</div>

I’ve run into a snag and feel like an idiot because I can’t seem to figure it out. you can filter through complex data by doing {{ var.sub.data }} this works great but what about when that data has it’s own array? A perf…

---

## [How to add an LXD container on another machine and copy Ansible's public keys to the container?](https://forum.ansible.com/t/how-to-add-an-lxd-container-on-another-machine-and-copy-ansibles-public-keys-to-the-container/24822)

<div class="topic-metadata">

**Author:** [@Greg\_K](https://forum.ansible.com/u/Greg_K)\
**Replies:** 1\
**Last updated:** [June 27, 2017, 3:07am UTC](https://forum.ansible.com/t/how-to-add-an-lxd-container-on-another-machine-and-copy-ansibles-public-keys-to-the-container/24822 "2017-06-27T03:07:13Z")

</div>

I am looking to use Ansible running on one machine to create a container on another machine and exchange ssh keys with it. I am new to Ansible and have been trying different things based off a playbook I found on github:…

---

## [Anyone have experiences with using lots of groups and group\_vars files?](https://forum.ansible.com/t/anyone-have-experiences-with-using-lots-of-groups-and-group-vars-files/24794)

<div class="topic-metadata">

**Author:** [@William\_Saxton](https://forum.ansible.com/u/William_Saxton)\
**Replies:** 3\
**Last updated:** [June 27, 2017, 1:19am UTC](https://forum.ansible.com/t/anyone-have-experiences-with-using-lots-of-groups-and-group-vars-files/24794 "2017-06-27T01:19:10Z")

</div>

New user here trying to figure out the best way to convert our current server provisioning system to Ansible. Our system uses approx. 5 different attributes to provision each server and we have about 1,000 servers. I’m w…

---

## [Why Ansible execution log is recorded four times ?](https://forum.ansible.com/t/why-ansible-execution-log-is-recorded-four-times/24818)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 2\
**Last updated:** [June 27, 2017, 12:20am UTC](https://forum.ansible.com/t/why-ansible-execution-log-is-recorded-four-times/24818 "2017-06-27T00:20:56Z")

</div>

I put log function into ansible code. and log is repeated four times. Are there anybody know about this happening ?

---

## [Flush fact cache from within playbook?](https://forum.ansible.com/t/flush-fact-cache-from-within-playbook/24816)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [June 26, 2017, 8:59pm UTC](https://forum.ansible.com/t/flush-fact-cache-from-within-playbook/24816 "2017-06-26T20:59:13Z")

</div>

Hi I'm using fact caching which works great. For a specific task in one of my playbooks I don't want to use cached facts but "fresh" ones. I'm aware of the --flush-cache command line option, but the playbook in ques…

---

## [\[noUsing ansible.cfg in working directory?](https://forum.ansible.com/t/nousing-ansible-cfg-in-working-directory/24823)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 1\
**Last updated:** [June 26, 2017, 8:10pm UTC](https://forum.ansible.com/t/nousing-ansible-cfg-in-working-directory/24823 "2017-06-26T20:10:58Z")

</div>

I’m setting up multiple teams to use one ansible host. The idea is that each team has an ansible “user” that has team playbooks, ansible.cfg file, and hosts files. The directory I’m working in is ~ansible/lang/ansible F…

---

## [Ansible module run on remote HP-UX 11.11 servers](https://forum.ansible.com/t/ansible-module-run-on-remote-hp-ux-11-11-servers/24824)

<div class="topic-metadata">

**Author:** [@Amy\_Ng](https://forum.ansible.com/u/Amy_Ng)\
**Replies:** 0\
**Last updated:** [June 26, 2017, 5:25pm UTC](https://forum.ansible.com/t/ansible-module-run-on-remote-hp-ux-11-11-servers/24824 "2017-06-26T17:25:01Z")

</div>

We are trying to get ansible modules to run on remote HP-UX 11.11 systems. We have installed Python 2.7.6 on these systems. It works for some modules (e.g. ping module). However, some of the ansible modules will return “…

---

## [Dynamic inventory - how to use group:children](https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 2\
**Last updated:** [June 26, 2017, 5:02pm UTC](https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815 "2017-06-26T17:02:29Z")

</div>

In “normal” inventory files, there’s the concept of “group children”, allowing the use of nested groups of hotsts. However, the documentation for the expected output of dynamic inventory systems does not include informa…

---

## [Is possible keep variable beetween roles?](https://forum.ansible.com/t/is-possible-keep-variable-beetween-roles/24821)

<div class="topic-metadata">

**Author:** [@Aitor\_Gomez](https://forum.ansible.com/u/Aitor_Gomez)\
**Replies:** 1\
**Last updated:** [June 26, 2017, 4:02pm UTC](https://forum.ansible.com/t/is-possible-keep-variable-beetween-roles/24821 "2017-06-26T16:02:26Z")

</div>

this is an example that i want… in this task i set in a pretask the variable INSTALL\_TIME: “{{ ansible\_date\_time }}” i whant to use this variable in other role (Check\_logs) how can i do that? name: ‘Deploy’ hosts: …

---

## [wait\_for\_connection: doesn't do the job (as expected)](https://forum.ansible.com/t/wait-for-connection-doesnt-do-the-job-as-expected/24810)

<div class="topic-metadata">

**Author:** [@Reiner\_Nippes](https://forum.ansible.com/u/Reiner_Nippes)\
**Replies:** 2\
**Last updated:** [June 26, 2017, 1:54pm UTC](https://forum.ansible.com/t/wait-for-connection-doesnt-do-the-job-as-expected/24810 "2017-06-26T13:54:26Z")

</div>

Hi, I’m starting two ec2 SLES12 instances with ansible. After they are up&running the same playbook should configure the machines. So I inculde name: Wait for connection to wait\_for\_connection: after the ec2: modul…

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

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