# Archives

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

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

**Page:** 558

---

## [Only execute task then certain URL is NOT reachable](https://forum.ansible.com/t/only-execute-task-then-certain-url-is-not-reachable/22432)

<div class="topic-metadata">

**Author:** [@guenther.grill](https://forum.ansible.com/u/guenther.grill)\
**Replies:** 1\
**Last updated:** [September 2, 2016, 11:50am UTC](https://forum.ansible.com/t/only-execute-task-then-certain-url-is-not-reachable/22432 "2016-09-02T11:50:14Z")

</div>

Hi, I have a setup with Apache Mesos and Marathon. I also deploy a Elasticsearch with JSON to the Mesos Cluster via Ansible. But this should only be done, when a certain endpont http://mesos…:8080/v2/apps/elasticserac…

---

## [Running ansible module from python (Cannot use remote\_user defined globally)](https://forum.ansible.com/t/running-ansible-module-from-python-cannot-use-remote-user-defined-globally/22465)

<div class="topic-metadata">

**Author:** [@Nirav\_Radia](https://forum.ansible.com/u/Nirav_Radia)\
**Replies:** 0\
**Last updated:** [September 2, 2016, 11:25am UTC](https://forum.ansible.com/t/running-ansible-module-from-python-cannot-use-remote-user-defined-globally/22465 "2016-09-02T11:25:13Z")

</div>

When I am trying to run an ansible module from Python API (AWS EC2 instances are my target machines), the private\_key\_file is read from /etc/ansible/ansible.cfg but I have to pass remote\_user in Options for running the m…

---

## [Reuse a role in different playbooks](https://forum.ansible.com/t/reuse-a-role-in-different-playbooks/22457)

<div class="topic-metadata">

**Author:** [@Alan\_Evangelista](https://forum.ansible.com/u/Alan_Evangelista)\
**Replies:** 1\
**Last updated:** [September 2, 2016, 11:12am UTC](https://forum.ansible.com/t/reuse-a-role-in-different-playbooks/22457 "2016-09-02T11:12:49Z")

</div>

I current have one playbook for each application in my infrastructure: one for Gerrit, one for Jenkins, etc. Current filesystem structure: playbooks ---- gerrit — roles ---- postfix ---- jenkins — master.yml —…

---

## [Ansible installed from yum is unable to connect to windows while Ansible installed via source file is working fine from the same host](https://forum.ansible.com/t/ansible-installed-from-yum-is-unable-to-connect-to-windows-while-ansible-installed-via-source-file-is-working-fine-from-the-same-host/22446)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [September 2, 2016, 10:29am UTC](https://forum.ansible.com/t/ansible-installed-from-yum-is-unable-to-connect-to-windows-while-ansible-installed-via-source-file-is-working-fine-from-the-same-host/22446 "2016-09-02T10:29:55Z")

</div>

I am making some centOS based docker containers to be used as Ansible host. Initially, i created a container and installed Ansible from source files. To connect to windows hosts, i installed some modules as and when requ…

---

## [Thoughts on role for creating multiple users](https://forum.ansible.com/t/thoughts-on-role-for-creating-multiple-users/22450)

<div class="topic-metadata">

**Author:** [@appeltabak](https://forum.ansible.com/u/appeltabak)\
**Replies:** 1\
**Last updated:** [September 2, 2016, 9:58am UTC](https://forum.ansible.com/t/thoughts-on-role-for-creating-multiple-users/22450 "2016-09-02T09:58:26Z")

</div>

Hi, Currently, I’m transforming my user role from creating one user to creating multiple users. In many examples I’ve seen this is done by adding with\_items to every tasks related to the creation of the user (create use…

---

## [Behavior change related to roles\_path config with relative include](https://forum.ansible.com/t/behavior-change-related-to-roles-path-config-with-relative-include/22272)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 3\
**Last updated:** [September 2, 2016, 9:26am UTC](https://forum.ansible.com/t/behavior-change-related-to-roles-path-config-with-relative-include/22272 "2016-09-02T09:26:31Z")

</div>

Hi list, I upgraded ansible with the latest epel-testing version ansible-2.1.1.0-1.el7.noarch and noticed a change with the roles\_path configuration. This is my roles\_path: \` roles\_path = /etc/ansible/roles:…/base/ro…

---

## [Logs move by using Ansible](https://forum.ansible.com/t/logs-move-by-using-ansible/22461)

<div class="topic-metadata">

**Author:** [@ramesh\_madarapu](https://forum.ansible.com/u/ramesh_madarapu)\
**Replies:** 0\
**Last updated:** [September 2, 2016, 5:49am UTC](https://forum.ansible.com/t/logs-move-by-using-ansible/22461 "2016-09-02T05:49:02Z")

</div>

By using Ansible how to move the logs(Linux server to remote Linux server) from current server to remote server by every nigt 2:30 EST

---

## [Stuck deploying templated configs for multiple users with with\_items](https://forum.ansible.com/t/stuck-deploying-templated-configs-for-multiple-users-with-with-items/22458)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [September 1, 2016, 11:29pm UTC](https://forum.ansible.com/t/stuck-deploying-templated-configs-for-multiple-users-with-with-items/22458 "2016-09-01T23:29:44Z")

</div>

Hi, I want to deploy a couple of OpenVPN configs to multiple users. It works for a single user but now I'm stuck trying to make it work for multiple users. Anyone have a suggestion how to make this work? Variables:

---

## [Generate number sequence for dynamic server inventory](https://forum.ansible.com/t/generate-number-sequence-for-dynamic-server-inventory/22456)

<div class="topic-metadata">

**Author:** [@titleistfour](https://forum.ansible.com/u/titleistfour)\
**Replies:** 0\
**Last updated:** [September 1, 2016, 6:41pm UTC](https://forum.ansible.com/t/generate-number-sequence-for-dynamic-server-inventory/22456 "2016-09-01T18:41:00Z")

</div>

Hello, I’m currently building some servers in AWS. A set of servers will need a sequence of keys generated for each server like so, with a template that get’s pushed out. server 1 9011 9012 9013 server 2 9021 9022 …

---

## [How to set a variable in vars/main.yml conditionally?](https://forum.ansible.com/t/how-to-set-a-variable-in-vars-main-yml-conditionally/22455)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 6\
**Last updated:** [September 1, 2016, 6:30pm UTC](https://forum.ansible.com/t/how-to-set-a-variable-in-vars-main-yml-conditionally/22455 "2016-09-01T18:30:21Z")

</div>

I’m writing a role to configure syslog, and of course the service is different between Linux instances. How do I do this in var/main.yml? \` pseudo-code in vars/main.yml if Redhat7.x syslog\_service: rsyslog else if Re…

---

## [Installation of .exe on windows remote node get hung](https://forum.ansible.com/t/installation-of-exe-on-windows-remote-node-get-hung/22442)

<div class="topic-metadata">

**Author:** [@srcr2801](https://forum.ansible.com/u/srcr2801)\
**Replies:** 1\
**Last updated:** [September 1, 2016, 4:37pm UTC](https://forum.ansible.com/t/installation-of-exe-on-windows-remote-node-get-hung/22442 "2016-09-01T16:37:25Z")

</div>

Hi, I’m trying to install a software(.exe file) using raw module in windows but failed to do. hosts : all remote\_user: administrator tasks: raw : xxx.exe /s Is there any other module to install software from .exe…

---

## [Unusual WinRM connection issue](https://forum.ansible.com/t/unusual-winrm-connection-issue/21582)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 18\
**Last updated:** [September 1, 2016, 3:55pm UTC](https://forum.ansible.com/t/unusual-winrm-connection-issue/21582 "2016-09-01T15:55:25Z")

</div>

I have a selected few workgroup Windows server 2012 R2 servers that give the following error: \<10.128.44.37\> ESTABLISH WINRM CONNECTION FOR USER: ansible\_user on PORT 5986 TO 10.128.44.37 server\_101 | UNREACHABLE! =\> { …

---

## [minimum pypy dependencies for use with ansible](https://forum.ansible.com/t/minimum-pypy-dependencies-for-use-with-ansible/22454)

<div class="topic-metadata">

**Author:** [@Armin\_Kunaschik](https://forum.ansible.com/u/Armin_Kunaschik)\
**Replies:** 0\
**Last updated:** [September 1, 2016, 3:54pm UTC](https://forum.ansible.com/t/minimum-pypy-dependencies-for-use-with-ansible/22454 "2016-09-01T15:54:27Z")

</div>

Hi there, I want to manage AIX machines with ansible, but there is no python installed. Since python is quite heavy I found the lightweight pypy. But even pypy has build dependencies, most of them are not present in my…

---

## [ansible requiring ansible\_ssh\_pass](https://forum.ansible.com/t/ansible-requiring-ansible-ssh-pass/22451)

<div class="topic-metadata">

**Author:** [@Graham\_O\_Regan](https://forum.ansible.com/u/Graham_O_Regan)\
**Replies:** 1\
**Last updated:** [September 1, 2016, 1:45pm UTC](https://forum.ansible.com/t/ansible-requiring-ansible-ssh-pass/22451 "2016-09-01T13:45:11Z")

</div>

I’m running Ansible 2.1.1.0 on OS X 10.11.6 and I’m having a problem that I haven’t had before. The issue the same as outlined in this SO question; https://stackoverflow.com/questions/37213551/ansible-ssh-connection-fai…

---

## [win\_user fails to change password, but password changes!](https://forum.ansible.com/t/win-user-fails-to-change-password-but-password-changes/22449)

<div class="topic-metadata">

**Author:** [@user21](https://forum.ansible.com/u/user21)\
**Replies:** 0\
**Last updated:** [September 1, 2016, 12:36pm UTC](https://forum.ansible.com/t/win-user-fails-to-change-password-but-password-changes/22449 "2016-09-01T12:36:39Z")

</div>

The whole test playbook is here; hosts: windows gather\_facts: false tasks: name: Change Administrator password win\_user: name=Administrator password=Quaiqu6I password\_never\_expires=yes Running with ansible 2.1.1.0,…

---

## [Location of host and group configuration](https://forum.ansible.com/t/location-of-host-and-group-configuration/22444)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 3\
**Last updated:** [September 1, 2016, 11:25am UTC](https://forum.ansible.com/t/location-of-host-and-group-configuration/22444 "2016-09-01T11:25:54Z")

</div>

Hi all, I'm currently struggling with how to tell Ansible where it can find host\_vars and group\_vars folders. Is there an environmet variable for it? Does it have to be inside the same folder as the playbook? Regards, …

---

## [with\_nested and empty lists](https://forum.ansible.com/t/with-nested-and-empty-lists/22448)

<div class="topic-metadata">

**Author:** [@Pim\_Rupert](https://forum.ansible.com/u/Pim_Rupert)\
**Replies:** 0\
**Last updated:** [September 1, 2016, 11:10am UTC](https://forum.ansible.com/t/with-nested-and-empty-lists/22448 "2016-09-01T11:10:59Z")

</div>

I have the following task which uses with\_nested with variables that could be empty. name: Authorize SSH keys for all website users. authorized\_key: user=“{{ item.0.user | default(websites\_default\_user) }}” key=“{{…

---

## [Running ansible from python](https://forum.ansible.com/t/running-ansible-from-python/22447)

<div class="topic-metadata">

**Author:** [@ankur.cool](https://forum.ansible.com/u/ankur.cool)\
**Replies:** 0\
**Last updated:** [September 1, 2016, 10:26am UTC](https://forum.ansible.com/t/running-ansible-from-python/22447 "2016-09-01T10:26:39Z")

</div>

Hi I have a need to call ansible from python. I was looking at http://docs.ansible.com/ansible/developing\_api.html#python-api-2-0 but doc doesn’t seem to be very clear. I need to execute a module or a playbook which ev…

---

## [unable to evaluate conditional](https://forum.ansible.com/t/unable-to-evaluate-conditional/22427)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [September 1, 2016, 8:55am UTC](https://forum.ansible.com/t/unable-to-evaluate-conditional/22427 "2016-09-01T08:55:26Z")

</div>

Hello, I don’t understand where I am doing wrong in this simple tasks: name: Search for bin directory stat: path: /{{ Directoryname }}/{{ item }}/bin register: previous with\_items: “{{ shr4you\_inst.stdout\_lines }…

---

## [ansible 2.2.0 - ios\_facts module](https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409)

<div class="topic-metadata">

**Author:** [@Rukka\_Pal](https://forum.ansible.com/u/Rukka_Pal)\
**Replies:** 2\
**Last updated:** [September 1, 2016, 7:51am UTC](https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409 "2016-09-01T07:51:14Z")

</div>

I am a newbie and would like to use Ansible to automate network operation tasks, right now I am only interested in fact collection. I have been using the “raw” module which is not very flexible, hence I decided to instal…

---

## [EC2 dynamic inventory: SSH rules](https://forum.ansible.com/t/ec2-dynamic-inventory-ssh-rules/22416)

<div class="topic-metadata">

**Author:** [@Soren\_Olegnowicz](https://forum.ansible.com/u/Soren_Olegnowicz)\
**Replies:** 5\
**Last updated:** [September 1, 2016, 6:30am UTC](https://forum.ansible.com/t/ec2-dynamic-inventory-ssh-rules/22416 "2016-09-01T06:30:31Z")

</div>

Hey guys I need to connect to my ec2 instances in various ways using the ec2.ini provided. Right now my I can only get my ec2.ini to connect to my instances via their private or public IP alone, but I need to connect to …

---

## [Updating existing AWS cloud modules to boto3](https://forum.ansible.com/t/updating-existing-aws-cloud-modules-to-boto3/22441)

<div class="topic-metadata">

**Author:** [@Nick\_Aslanidis](https://forum.ansible.com/u/Nick_Aslanidis)\
**Replies:** 2\
**Last updated:** [September 1, 2016, 3:12am UTC](https://forum.ansible.com/t/updating-existing-aws-cloud-modules-to-boto3/22441 "2016-09-01T03:12:30Z")

</div>

Hi, I’m currently using a lot of extras and core AWS modules and have written a few myself. I’m wondering what is the etiquette for getting older modules using the older API’s (API’s that are no longer developed or supp…

---

## [Missing something with host directory/file paths](https://forum.ansible.com/t/missing-something-with-host-directory-file-paths/22440)

<div class="topic-metadata">

**Author:** [@Jon\_Langemak](https://forum.ansible.com/u/Jon_Langemak)\
**Replies:** 3\
**Last updated:** [September 1, 2016, 1:54am UTC](https://forum.ansible.com/t/missing-something-with-host-directory-file-paths/22440 "2016-09-01T01:54:07Z")

</div>

It’s been awhile since I played with Ansible and right now Im tearing my hair out on this copy problem. Im trying to copy a directory on a Linux host to a new location. In ad-hoc ansible, it looks like this… ansible -m …

---

## [Iterating through a list of names to create EC2 instances](https://forum.ansible.com/t/iterating-through-a-list-of-names-to-create-ec2-instances/13959)

<div class="topic-metadata">

**Author:** [@Renaud\_Guerin](https://forum.ansible.com/u/Renaud_Guerin)\
**Replies:** 14\
**Last updated:** [September 1, 2016, 12:03am UTC](https://forum.ansible.com/t/iterating-through-a-list-of-names-to-create-ec2-instances/13959 "2016-09-01T00:03:32Z")

</div>

Hello, The EC2 module’s docs show how to create several instances at once using the “count” variable, and register the results into another variable (“ec2”). You can then iterate on the created instances and do stuff (…

---

## [How do I pass a password as an argument?](https://forum.ansible.com/t/how-do-i-pass-a-password-as-an-argument/20714)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 8\
**Last updated:** [August 31, 2016, 11:03pm UTC](https://forum.ansible.com/t/how-do-i-pass-a-password-as-an-argument/20714 "2016-08-31T23:03:41Z")

</div>

I have a playbook that installs the appropriate packages for Active Directory Authentication. When it gets to the “join” portion, Ansible just sits there because the join process is asking the user for the password of th…

---

## [yum module not updating package when installing from local file](https://forum.ansible.com/t/yum-module-not-updating-package-when-installing-from-local-file/21689)

<div class="topic-metadata">

**Author:** [@Shay\_Rybak](https://forum.ansible.com/u/Shay_Rybak)\
**Replies:** 6\
**Last updated:** [August 31, 2016, 9:16pm UTC](https://forum.ansible.com/t/yum-module-not-updating-package-when-installing-from-local-file/21689 "2016-08-31T21:16:25Z")

</div>

Hi, I’m trying to build new versions of my code into rpm’s then pushing them and install with ansible. All stages up to the yum install work and I have my new version rpm in the local directory. However when I run the…

---

## [become:yes for local connection: when and how often is sudo called?](https://forum.ansible.com/t/become-yes-for-local-connection-when-and-how-often-is-sudo-called/22438)

<div class="topic-metadata">

**Author:** [@David\_Resnick](https://forum.ansible.com/u/David_Resnick)\
**Replies:** 0\
**Last updated:** [August 31, 2016, 7:11pm UTC](https://forum.ansible.com/t/become-yes-for-local-connection-when-and-how-often-is-sudo-called/22438 "2016-08-31T19:11:44Z")

</div>

Hi, I’m trying to understand when ansible uses sudo in a scenario where a playbook with become:yes is running with a local connection. I have a playbook where I need to change the default execution PATH in sudoers for …

---

## [Can I define my inventory in my playbook directory?](https://forum.ansible.com/t/can-i-define-my-inventory-in-my-playbook-directory/22370)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 5\
**Last updated:** [August 31, 2016, 6:42pm UTC](https://forum.ansible.com/t/can-i-define-my-inventory-in-my-playbook-directory/22370 "2016-08-31T18:42:02Z")

</div>

Management Node: CentOs 6 Ansible 2.1 Remote Node: Windows 7 Powershell 3.0 My playbooks are all saved in /home/username/playbooks. My inventory file is saved as /etc/ansible/hosts. And I also use the…

---

## [Unable to install Ansible on Redhat 6.6 (RHEL) - missing dependency python-six](https://forum.ansible.com/t/unable-to-install-ansible-on-redhat-6-6-rhel-missing-dependency-python-six/22428)

<div class="topic-metadata">

**Author:** [@rbooth](https://forum.ansible.com/u/rbooth)\
**Replies:** 1\
**Last updated:** [August 31, 2016, 5:27pm UTC](https://forum.ansible.com/t/unable-to-install-ansible-on-redhat-6-6-rhel-missing-dependency-python-six/22428 "2016-08-31T17:27:24Z")

</div>

I am unable to install Ansible on Redhat 6.6 (RHEL) due to a missing dependency for python-six. When I try to install python-six, I get this response. “No package python-six available.” These are the steps I use to repli…

---

## [How to automate post deployment activity in Ansible](https://forum.ansible.com/t/how-to-automate-post-deployment-activity-in-ansible/22430)

<div class="topic-metadata">

**Author:** [@vinod\_kumar1](https://forum.ansible.com/u/vinod_kumar1)\
**Replies:** 1\
**Last updated:** [August 31, 2016, 4:49pm UTC](https://forum.ansible.com/t/how-to-automate-post-deployment-activity-in-ansible/22430 "2016-08-31T16:49:40Z")

</div>

Dear All, How to automate post deployment activity in Ansible? We have module URI but only for limited call http://docs.ansible.com/ansible/uri\_module.html. In more details: Want to login into gmail 1.1 Open the htt…

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

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