# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=289

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

**Page:** 290

---

## [fill items from file](https://forum.ansible.com/t/fill-items-from-file/26424)

<div class="topic-metadata">

**Author:** [@Marek\_Bazant](https://forum.ansible.com/u/Marek_Bazant)\
**Replies:** 0\
**Last updated:** [January 5, 2018, 3:54pm UTC](https://forum.ansible.com/t/fill-items-from-file/26424 "2018-01-05T15:54:17Z")

</div>

Hello, i want to fill items from file. example below work nice, but if i tried items fill from separate file, then it doesnt work. postgresql\_user: db: “{{ item.db }}” name: “{{ item.name }}” password: “{{ item.pa…

---

## [Use role default argument if playbook argument is undefined.](https://forum.ansible.com/t/use-role-default-argument-if-playbook-argument-is-undefined/26423)

<div class="topic-metadata">

**Author:** [@Antony\_MECHIN](https://forum.ansible.com/u/Antony_MECHIN)\
**Replies:** 4\
**Last updated:** [January 5, 2018, 3:35pm UTC](https://forum.ansible.com/t/use-role-default-argument-if-playbook-argument-is-undefined/26423 "2018-01-05T15:35:57Z")

</div>

Hi. As mentioned in the title, I want Ansible to use the role default argument if a playbook argument is undefined. Here is my project: main.yml inventory.ini roles/ test/ defaults/ main.yml tasks/ main.yml I have a …

---

## [windows become runas without target user password?](https://forum.ansible.com/t/windows-become-runas-without-target-user-password/26399)

<div class="topic-metadata">

**Author:** [@Benjamin\_Schweizer](https://forum.ansible.com/u/Benjamin_Schweizer)\
**Replies:** 2\
**Last updated:** [January 5, 2018, 3:20pm UTC](https://forum.ansible.com/t/windows-become-runas-without-target-user-password/26399 "2018-01-05T15:20:43Z")

</div>

Hello, I’ve found that I need to become administrator for some chocolatey package installations, even when my domain user is member of local administrators group. To do so, I run: tasks: - win\_ping: name: become tes…

---

## [Using hostvars is painfully slow](https://forum.ansible.com/t/using-hostvars-is-painfully-slow/26117)

<div class="topic-metadata">

**Author:** [@Andrea\_Carpani](https://forum.ansible.com/u/Andrea_Carpani)\
**Replies:** 1\
**Last updated:** [January 5, 2018, 2:58pm UTC](https://forum.ansible.com/t/using-hostvars-is-painfully-slow/26117 "2018-01-05T14:58:15Z")

</div>

Version: Ansible 2.3.1.0 Hello, I’m using Ansible with a small/medium sized inventory and accessing hostvars is painfully slow. I think problems began when switching 2.1 → 2.3, but I have no easy way of verifying this. …

---

## [Delegate\_to is throwing error "Failed to connect to the host via ssh"](https://forum.ansible.com/t/delegate-to-is-throwing-error-failed-to-connect-to-the-host-via-ssh/26413)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 7\
**Last updated:** [January 5, 2018, 10:38am UTC](https://forum.ansible.com/t/delegate-to-is-throwing-error-failed-to-connect-to-the-host-via-ssh/26413 "2018-01-05T10:38:37Z")

</div>

Hi, My hosts file: \[ebs\] xx.xx.xx.xx \[source\] xx.xx.xx.xx playbook:

---

## [Error installing Tower](https://forum.ansible.com/t/error-installing-tower/26422)

<div class="topic-metadata">

**Author:** [@BERTRAND\_PINGDWENDE](https://forum.ansible.com/u/BERTRAND_PINGDWENDE)\
**Replies:** 0\
**Last updated:** [January 5, 2018, 9:15am UTC](https://forum.ansible.com/t/error-installing-tower/26422 "2018-01-05T09:15:48Z")

</div>

Hi, i have this error when tying to install tower with external Database (PostgreSQL). " “stdout”: “Operations to perform:\\n Synchronize unmigrated apps: solo, api, staticfiles, messages, channels, django\_extensions, u…

---

## [What does Ansible module do when communicating with AWS?](https://forum.ansible.com/t/what-does-ansible-module-do-when-communicating-with-aws/26421)

<div class="topic-metadata">

**Author:** [@Cherry](https://forum.ansible.com/u/Cherry)\
**Replies:** 0\
**Last updated:** [January 5, 2018, 7:44am UTC](https://forum.ansible.com/t/what-does-ansible-module-do-when-communicating-with-aws/26421 "2018-01-05T07:44:08Z")

</div>

I’m meeting a problem that: When using Ansible ec2\_elb\_facts module to gather ALL elb info in an aws account, it kept failed even if retry\_times=100+ However, when using Shell to call aws cli directly, it is fast. So,…

---

## [Sharing Idea about the Control Machine](https://forum.ansible.com/t/sharing-idea-about-the-control-machine/26418)

<div class="topic-metadata">

**Author:** [@Jamal\_B](https://forum.ansible.com/u/Jamal_B)\
**Replies:** 0\
**Last updated:** [January 5, 2018, 1:20am UTC](https://forum.ansible.com/t/sharing-idea-about-the-control-machine/26418 "2018-01-05T01:20:57Z")

</div>

Hello, and thank you for viewing. I had an issue not to long ago where I wanted to reuse a playbook that I wrote to provision resources in a new AWS account. The wrinkle was that I needed to run the playbook on a differ…

---

## [Connection to windows target host timeout](https://forum.ansible.com/t/connection-to-windows-target-host-timeout/26416)

<div class="topic-metadata">

**Author:** [@MA1](https://forum.ansible.com/u/MA1)\
**Replies:** 3\
**Last updated:** [January 5, 2018, 12:28am UTC](https://forum.ansible.com/t/connection-to-windows-target-host-timeout/26416 "2018-01-05T00:28:37Z")

</div>

I’m trying to win\_ping a windows host to verify a connection but I keep getting the timeout error bellow: windows1 | UNREACHABLE! =\> { “changed”: false, “msg”: “plaintext: HTTPConnectionPool(host=‘xx.xx.xx.xx’, port=3…

---

## [how to see only cifs mount on all server using ansible](https://forum.ansible.com/t/how-to-see-only-cifs-mount-on-all-server-using-ansible/26374)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 1\
**Last updated:** [January 4, 2018, 8:20pm UTC](https://forum.ansible.com/t/how-to-see-only-cifs-mount-on-all-server-using-ansible/26374 "2018-01-04T20:20:30Z")

</div>

how can we see all cifs mount on each server using ansible

---

## [potential Ansible os\_image module keystone v3 compatibility issue](https://forum.ansible.com/t/potential-ansible-os-image-module-keystone-v3-compatibility-issue/26355)

<div class="topic-metadata">

**Author:** [@Gu\_Hang](https://forum.ansible.com/u/Gu_Hang)\
**Replies:** 1\
**Last updated:** [January 4, 2018, 1:29am UTC](https://forum.ansible.com/t/potential-ansible-os-image-module-keystone-v3-compatibility-issue/26355 "2018-01-04T01:29:19Z")

</div>

Hi I am using ansible os\_image module to upload images to my openstack instance My yml looks like this: os\_image: auth: auth\_url: “{{auth\_url}}” username: “{{username}}” password: “{{password}}” project\_name: “{{…

---

## [ansible tries to include the wrong file](https://forum.ansible.com/t/ansible-tries-to-include-the-wrong-file/26407)

<div class="topic-metadata">

**Author:** [@Mike\_C1](https://forum.ansible.com/u/Mike_C1)\
**Replies:** 0\
**Last updated:** [January 3, 2018, 10:47am UTC](https://forum.ansible.com/t/ansible-tries-to-include-the-wrong-file/26407 "2018-01-03T10:47:22Z")

</div>

Hi, i’ve got this repo https://github.com/mhristof/shorty-hefty-exile and its failing with the following error \` fatal: \[localhost\]: FAILED! =\> {“reason”: “Unable to retrieve file contents\\nCould not find or access ‘/…

---

## [Ability to have survey questions bring up certain results](https://forum.ansible.com/t/ability-to-have-survey-questions-bring-up-certain-results/26347)

<div class="topic-metadata">

**Author:** [@Josh\_B](https://forum.ansible.com/u/Josh_B)\
**Replies:** 1\
**Last updated:** [January 3, 2018, 10:14am UTC](https://forum.ansible.com/t/ability-to-have-survey-questions-bring-up-certain-results/26347 "2018-01-03T10:14:26Z")

</div>

Hello, I am new to ansible and am in the middle of deploying Ansible tower. I have nailed down the basics of the survey questions. But am stuck on this part. Is there a way to prompt for a certain set of answers or ques…

---

## [Using ansible tower best practice to segregate data](https://forum.ansible.com/t/using-ansible-tower-best-practice-to-segregate-data/26396)

<div class="topic-metadata">

**Author:** [@D11](https://forum.ansible.com/u/D11)\
**Replies:** 1\
**Last updated:** [January 2, 2018, 11:00pm UTC](https://forum.ansible.com/t/using-ansible-tower-best-practice-to-segregate-data/26396 "2018-01-02T23:00:56Z")

</div>

Hello I am migrating from puppet to ansible and using tower, I have question on managing data as per the role of server (dmz/core) or as per different region or datacentre (similar to hiradata in puppet) whats best way…

---

## [Unable to ping Using Inventory](https://forum.ansible.com/t/unable-to-ping-using-inventory/26387)

<div class="topic-metadata">

**Author:** [@Shaikh\_MateenRehan\_M](https://forum.ansible.com/u/Shaikh_MateenRehan_M)\
**Replies:** 3\
**Last updated:** [January 2, 2018, 4:56pm UTC](https://forum.ansible.com/t/unable-to-ping-using-inventory/26387 "2018-01-02T16:56:31Z")

</div>

Hello All, I am new to ansible and I am am trying to ping different hosts using ansible. I though it was a bug so created an issue on github https://github.com/ansible/ansible/issues/34267, but they said to contact here…

---

## [Ansible Tower vault issues](https://forum.ansible.com/t/ansible-tower-vault-issues/26400)

<div class="topic-metadata">

**Author:** [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Replies:** 0\
**Last updated:** [January 2, 2018, 1:02pm UTC](https://forum.ansible.com/t/ansible-tower-vault-issues/26400 "2018-01-02T13:02:23Z")

</div>

Hi there, I’ve setup Ansible Tower and imported a ansible project from a Git repository. Credentials for localhost and vault (prompt) have been added. The playbook normally runs like this: \` ansible-playbook Playboo…

---

## [Your best practices to deal with multi tenancy](https://forum.ansible.com/t/your-best-practices-to-deal-with-multi-tenancy/26398)

<div class="topic-metadata">

**Author:** [@yves.vogl](https://forum.ansible.com/u/yves.vogl)\
**Replies:** 0\
**Last updated:** [January 1, 2018, 6:41pm UTC](https://forum.ansible.com/t/your-best-practices-to-deal-with-multi-tenancy/26398 "2018-01-01T18:41:00Z")

</div>

18 month later I’m still struggling withhttps://groups.google.com/forum/#!topic/ansible-project/VeQUdekccQ4 issue. I’d like to come up with another example to make clear what’s the problem I’m dealing with. Maybe ther…

---

## [running command from the prompt](https://forum.ansible.com/t/running-command-from-the-prompt/26392)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 1\
**Last updated:** [January 1, 2018, 7:45am UTC](https://forum.ansible.com/t/running-command-from-the-prompt/26392 "2018-01-01T07:45:16Z")

</div>

trying to automate few of the step in ansible for jboss …but not sure if this can be achieved in ansible… like running ./client -h localhost from the prompt takes it to the jboss console…and running few more command fro…

---

## [Stop displaying stdout when task fails](https://forum.ansible.com/t/stop-displaying-stdout-when-task-fails/26397)

<div class="topic-metadata">

**Author:** [@Adolphson](https://forum.ansible.com/u/Adolphson)\
**Replies:** 2\
**Last updated:** [December 31, 2017, 10:08pm UTC](https://forum.ansible.com/t/stop-displaying-stdout-when-task-fails/26397 "2017-12-31T22:08:15Z")

</div>

I have a task that sends a reboot command to a host, then pings every 10-seconds until a ping has failed. This indicates the hosts has begun the reboot and moves on the a ping every 60-seconds waiting for a ping success …

---

## [Help in developing custom plugin](https://forum.ansible.com/t/help-in-developing-custom-plugin/26395)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 2\
**Last updated:** [December 30, 2017, 10:41am UTC](https://forum.ansible.com/t/help-in-developing-custom-plugin/26395 "2017-12-30T10:41:16Z")

</div>

Hi All, Can someone please guide me to develop/enhance some plugin. Want to know how to add debug statement in current plugin and test in Ansible. Thanks in advance

---

## [Using loops and lookup](https://forum.ansible.com/t/using-loops-and-lookup/26389)

<div class="topic-metadata">

**Author:** [@thijn](https://forum.ansible.com/u/thijn)\
**Replies:** 2\
**Last updated:** [December 29, 2017, 9:48am UTC](https://forum.ansible.com/t/using-loops-and-lookup/26389 "2017-12-29T09:48:39Z")

</div>

Hi, Trying to create files based on sourcefile, and of course when this construction works… i will use it on lots of things. Version: ansible 2.4.2.0 I am trying to go through a source file ( in this case a …

---

## [Ansible for HPC workflows?](https://forum.ansible.com/t/ansible-for-hpc-workflows/26364)

<div class="topic-metadata">

**Author:** [@Roc](https://forum.ansible.com/u/Roc)\
**Replies:** 5\
**Last updated:** [December 28, 2017, 11:11am UTC](https://forum.ansible.com/t/ansible-for-hpc-workflows/26364 "2017-12-28T11:11:50Z")

</div>

I’m exploring Ansible for managing HPC workflows. The use case is that a user prepares a set of files on a central computer (e.g., a workstation or laptop), transfers them to a bunch of HPC machines, and submits a job …

---

## [Jinja2 Configuration Concern with {{ fqdn\_hostname }} and .conf file](https://forum.ansible.com/t/jinja2-configuration-concern-with-fqdn-hostname-and-conf-file/26388)

<div class="topic-metadata">

**Author:** [@Heather\_Luna](https://forum.ansible.com/u/Heather_Luna)\
**Replies:** 1\
**Last updated:** [December 28, 2017, 6:52am UTC](https://forum.ansible.com/t/jinja2-configuration-concern-with-fqdn-hostname-and-conf-file/26388 "2017-12-28T06:52:24Z")

</div>

Hello! I have a configuration (.conf) file that I’m attempting to manipulate by adding the {{ fdqn\_hostname }} ONLY for the serverName piece, the rest of the information like the SSL password is something that’s going t…

---

## [Repository for Ansible Tower](https://forum.ansible.com/t/repository-for-ansible-tower/26385)

<div class="topic-metadata">

**Author:** [@Sir\_Guan\_Na](https://forum.ansible.com/u/Sir_Guan_Na)\
**Replies:** 4\
**Last updated:** [December 28, 2017, 6:51am UTC](https://forum.ansible.com/t/repository-for-ansible-tower/26385 "2017-12-28T06:51:30Z")

</div>

Hi, while installation of Ansible tower, dependencies packages will come with tower bundle. Is there any online repository for Ansible Tower? As i can see the ansible-tower.repo consist of multiple repository locations. …

---

## [Attach/Remove IAM role](https://forum.ansible.com/t/attach-remove-iam-role/26386)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 0\
**Last updated:** [December 28, 2017, 1:18am UTC](https://forum.ansible.com/t/attach-remove-iam-role/26386 "2017-12-28T01:18:08Z")

</div>

Is there a way to attach or remove an IAM role from an existing EC2 instance at present? If not, would there be interest in having this role? I’d be willing to make it if so. Thanks for any insights.

---

## [Ansible 2.0 upgrade questions](https://forum.ansible.com/t/ansible-2-0-upgrade-questions/20187)

<div class="topic-metadata">

**Author:** [@Jacob\_Weber1](https://forum.ansible.com/u/Jacob_Weber1)\
**Replies:** 12\
**Last updated:** [December 27, 2017, 10:14am UTC](https://forum.ansible.com/t/ansible-2-0-upgrade-questions/20187 "2017-12-27T10:14:57Z")

</div>

I’m trying my playbooks with Ansible 2.0, and ran into a few minor issues: The Ansible upgrade guide says “Using variables for task parameters is unsafe and will be removed in a future version.” What does this mean ex…

---

## [Ansible-playbook running gce.py results in a very slow operation](https://forum.ansible.com/t/ansible-playbook-running-gce-py-results-in-a-very-slow-operation/26384)

<div class="topic-metadata">

**Author:** [@amir.sinay](https://forum.ansible.com/u/amir.sinay)\
**Replies:** 0\
**Last updated:** [December 26, 2017, 5:00pm UTC](https://forum.ansible.com/t/ansible-playbook-running-gce-py-results-in-a-very-slow-operation/26384 "2017-12-26T17:00:27Z")

</div>

Hi, I’m trying to use an ansible playbook to run my playbook which gets the “hosts” parameter as part of the ansible-playbook run, example: " ansible-playbook -v -i deploy/inventory/gcloud-${ENV} --flush-cache -e “host…

---

## [Ansible-container build on setting up nginx\_container is getting terminated with module error](https://forum.ansible.com/t/ansible-container-build-on-setting-up-nginx-container-is-getting-terminated-with-module-error/26382)

<div class="topic-metadata">

**Author:** [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Replies:** 0\
**Last updated:** [December 26, 2017, 12:58pm UTC](https://forum.ansible.com/t/ansible-container-build-on-setting-up-nginx-container-is-getting-terminated-with-module-error/26382 "2017-12-26T12:58:23Z")

</div>

ISSUE TYPE- Bug Report container.yml version: '2' settings: conductor: base: centos:7 services: ansible.nginx-container: from: "nginx:base" roles: - nginx\_container ports: - "80:3000" user…

---

## [Azure - VNET resource group is not under VM resource group](https://forum.ansible.com/t/azure-vnet-resource-group-is-not-under-vm-resource-group/26379)

<div class="topic-metadata">

**Author:** [@makawanabharathwhats](https://forum.ansible.com/u/makawanabharathwhats)\
**Replies:** 0\
**Last updated:** [December 26, 2017, 7:08am UTC](https://forum.ansible.com/t/azure-vnet-resource-group-is-not-under-vm-resource-group/26379 "2017-12-26T07:08:18Z")

</div>

Hi Team, I’m just trying to provision an vm in azure but I see the following hurdles. The current version of my ansible is ansible 2.3.1.0 The error which I undergo while creating an Vm is that " the network resource …

---

## [module (ModuleName) is missing interpreter line](https://forum.ansible.com/t/module-modulename-is-missing-interpreter-line/26378)

<div class="topic-metadata">

**Author:** [@K\_Seshadri\_Iyer](https://forum.ansible.com/u/K_Seshadri_Iyer)\
**Replies:** 0\
**Last updated:** [December 26, 2017, 6:32am UTC](https://forum.ansible.com/t/module-modulename-is-missing-interpreter-line/26378 "2017-12-26T06:32:41Z")

</div>

I am upgrading from 1.9 to 2.0 and am running into a problem. When I do an ansible run, it fails with the error above. Everything works fine on Ansible 1.9 Thanks ! Seshadri

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=288)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=290)
