# Archives

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

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

**Page:** 542

---

## [too many unfinished roles on ansible galaxy](https://forum.ansible.com/t/too-many-unfinished-roles-on-ansible-galaxy/22921)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [October 30, 2016, 3:04am UTC](https://forum.ansible.com/t/too-many-unfinished-roles-on-ansible-galaxy/22921 "2016-10-30T03:04:53Z")

</div>

there are many unfinished roles on galaxy. role authors, can you please wait until your role is functional and ready before posting it on galaxy?

---

## [Best practices to configure roles](https://forum.ansible.com/t/best-practices-to-configure-roles/22920)

<div class="topic-metadata">

**Author:** [@Adrian\_Wallaschek](https://forum.ansible.com/u/Adrian_Wallaschek)\
**Replies:** 0\
**Last updated:** [October 29, 2016, 9:28pm UTC](https://forum.ansible.com/t/best-practices-to-configure-roles/22920 "2016-10-29T21:28:54Z")

</div>

Hi, I try to build a playbook that kind of leaves the trivial ranges usually handled in books. Consequentially I did not find anything suitable in the books I have and my development skills do not help me further. Assu…

---

## [I cant't change master with mysql\_replication](https://forum.ansible.com/t/i-cantt-change-master-with-mysql-replication/22919)

<div class="topic-metadata">

**Author:** [@rarirure\_luis](https://forum.ansible.com/u/rarirure_luis)\
**Replies:** 0\
**Last updated:** [October 29, 2016, 2:27pm UTC](https://forum.ansible.com/t/i-cantt-change-master-with-mysql-replication/22919 "2016-10-29T14:27:25Z")

</div>

Hi. I’m afraid my expressions may be rude or hard to read, because I’m not so good at English. I want to change master with mysql\_replication but error. \` TASK \[dbtier : Semi-synchronous - Change master\] \*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [How-to Variable in Variable](https://forum.ansible.com/t/how-to-variable-in-variable/22912)

<div class="topic-metadata">

**Author:** [@bonheur.sorn](https://forum.ansible.com/u/bonheur.sorn)\
**Replies:** 5\
**Last updated:** [October 29, 2016, 12:23pm UTC](https://forum.ansible.com/t/how-to-variable-in-variable/22912 "2016-10-29T12:23:27Z")

</div>

Hi everyone I’m new to Ansible and I’m trying to automate the generation of Cisco router configuration files. For the same config template, I will have several hardware models and I’d like to keep the code simple. \` #…

---

## [Change user while executing ansible script.](https://forum.ansible.com/t/change-user-while-executing-ansible-script/22916)

<div class="topic-metadata">

**Author:** [@Nitin\_Mathur](https://forum.ansible.com/u/Nitin_Mathur)\
**Replies:** 3\
**Last updated:** [October 29, 2016, 1:29am UTC](https://forum.ansible.com/t/change-user-while-executing-ansible-script/22916 "2016-10-29T01:29:17Z")

</div>

Hi, I am trying to figure out, if the below scenario is possible and if so, how I can achieve it. My target machine and ansible host is the same machine. There are 2 users, user-1(non-sudo privilege), user-2 (sudo priv…

---

## [Ansible vsphere\_guest: "pysphere module required" - but it's installed](https://forum.ansible.com/t/ansible-vsphere-guest-pysphere-module-required-but-its-installed/22918)

<div class="topic-metadata">

**Author:** [@Jeff\_Richards](https://forum.ansible.com/u/Jeff_Richards)\
**Replies:** 0\
**Last updated:** [October 28, 2016, 11:30pm UTC](https://forum.ansible.com/t/ansible-vsphere-guest-pysphere-module-required-but-its-installed/22918 "2016-10-28T23:30:36Z")

</div>

Hi, I’m trying to kick off a VMware deployment, using the vsphere\_guest module, but it’s failing with “pysphere module required”. So pip confirms it’s installed: $ pip list | grep sphere pysphere (0.1.7) And I can a…

---

## [Create user in mongodb with ansible playbook](https://forum.ansible.com/t/create-user-in-mongodb-with-ansible-playbook/22917)

<div class="topic-metadata">

**Author:** [@Rayees\_Namathponnan](https://forum.ansible.com/u/Rayees_Namathponnan)\
**Replies:** 0\
**Last updated:** [October 28, 2016, 11:09pm UTC](https://forum.ansible.com/t/create-user-in-mongodb-with-ansible-playbook/22917 "2016-10-28T23:09:21Z")

</div>

Hi All, I am using below ansible script to create admin user in mongoDB, \` name: Enable at boot and start mongodb service: name=mongod.service enabled=yes state=started name: Add the admin user to the replicaset …

---

## [Tower: setup.sh fails trying to find yum on Ubuntu](https://forum.ansible.com/t/tower-setup-sh-fails-trying-to-find-yum-on-ubuntu/22086)

<div class="topic-metadata">

**Author:** [@Vasily\_Kirichenko](https://forum.ansible.com/u/Vasily_Kirichenko)\
**Replies:** 3\
**Last updated:** [October 28, 2016, 8:20pm UTC](https://forum.ansible.com/t/tower-setup-sh-fails-trying-to-find-yum-on-ubuntu/22086 "2016-10-28T20:20:50Z")

</div>

Ubuntu 14.04.2 \` TASK: \[preflight | Preflight check - Verify yum is recent enough on OL6\] \*\*\*\*\*\* fatal: \[localhost\] =\> error while evaluating conditional: ansible\_distribution == ‘OracleLinux’ and ansible\_distribution…

---

## [passing parameters to roles](https://forum.ansible.com/t/passing-parameters-to-roles/22914)

<div class="topic-metadata">

**Author:** [@Neil\_Watson](https://forum.ansible.com/u/Neil_Watson)\
**Replies:** 3\
**Last updated:** [October 28, 2016, 8:08pm UTC](https://forum.ansible.com/t/passing-parameters-to-roles/22914 "2016-10-28T20:08:48Z")

</div>

Greetings, I’m trying to pass a data structure to a role, but it’s not working out. What have I done wrong? main.yml:

---

## [Getting hostvars from an intersection of groups](https://forum.ansible.com/t/getting-hostvars-from-an-intersection-of-groups/19592)

<div class="topic-metadata">

**Author:** [@Mehul\_Ved](https://forum.ansible.com/u/Mehul_Ved)\
**Replies:** 10\
**Last updated:** [October 28, 2016, 6:41pm UTC](https://forum.ansible.com/t/getting-hostvars-from-an-intersection-of-groups/19592 "2016-10-28T18:41:59Z")

</div>

I have 4 machines on rackspace - two sets of machines, for production and beta. Each set has a web server and db server. Here’s what the metadata for each machine would look like metadata: { group: web, set: producti…

---

## [How can I debug my inventory? I need something like: ansible-playbook -i staging/ --list-vars](https://forum.ansible.com/t/how-can-i-debug-my-inventory-i-need-something-like-ansible-playbook-i-staging-list-vars/22911)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 1\
**Last updated:** [October 28, 2016, 2:22pm UTC](https://forum.ansible.com/t/how-can-i-debug-my-inventory-i-need-something-like-ansible-playbook-i-staging-list-vars/22911 "2016-10-28T14:22:52Z")

</div>

Hi, I try to refactor my inventory files, how can I test / debug / check my inventory? I need something like: ansible-playbook -i staging/ --list-vars Best regards, Stéphane

---

## [roles configuring other roles?](https://forum.ansible.com/t/roles-configuring-other-roles/22903)

<div class="topic-metadata">

**Author:** [@lesh](https://forum.ansible.com/u/lesh)\
**Replies:** 1\
**Last updated:** [October 28, 2016, 1:20pm UTC](https://forum.ansible.com/t/roles-configuring-other-roles/22903 "2016-10-28T13:20:03Z")

</div>

Hi, I’d like for roles I assign to a host to append some data to this hosts configuration, facts, or something else, readable by other roles. To be concrete, a web server role should specify config for local\_firewall, …

---

## [Ansible cron module creates jobs for the wrong user](https://forum.ansible.com/t/ansible-cron-module-creates-jobs-for-the-wrong-user/22735)

<div class="topic-metadata">

**Author:** [@Jay\_LaCroix](https://forum.ansible.com/u/Jay_LaCroix)\
**Replies:** 1\
**Last updated:** [October 28, 2016, 11:40am UTC](https://forum.ansible.com/t/ansible-cron-module-creates-jobs-for-the-wrong-user/22735 "2016-10-28T11:40:12Z")

</div>

I have noticed, since upgrading to 2.1.2.0 from 2.1.1.0, that the cron module is now creating cron jobs for the root user, in addition to the user specified. For example: name: install cron job (ansible run) cron: use…

---

## [Copying whole directory from amazon S3 using ansible](https://forum.ansible.com/t/copying-whole-directory-from-amazon-s3-using-ansible/14189)

<div class="topic-metadata">

**Author:** [@Rohan\_Deshpande](https://forum.ansible.com/u/Rohan_Deshpande)\
**Replies:** 2\
**Last updated:** [October 28, 2016, 11:06am UTC](https://forum.ansible.com/t/copying-whole-directory-from-amazon-s3-using-ansible/14189 "2016-10-28T11:06:03Z")

</div>

I have a script that downloads stuff from amazon S3 Downloading file works perfectly but in one scenario i want to download whole directory from the bucket. Ansible seems to require file name in object and destination …

---

## [How to get ansible sequence number of running](https://forum.ansible.com/t/how-to-get-ansible-sequence-number-of-running/22910)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [October 28, 2016, 7:35am UTC](https://forum.ansible.com/t/how-to-get-ansible-sequence-number-of-running/22910 "2016-10-28T07:35:39Z")

</div>

Here is run.yml and rozofs.yml, I want to get the sequence number of each running. there is 4 IP address, 90,91,92,93, I want to know where I can get 1,2,3,4 from each running. I am use "echo " to put each IP address, I…

---

## [host\_add uniqueness:  name, ansible\_host & ansible\_ssh\_extra\_args ?](https://forum.ansible.com/t/host-add-uniqueness-name-ansible-host-ansible-ssh-extra-args/22908)

<div class="topic-metadata">

**Author:** [@alexandre](https://forum.ansible.com/u/alexandre)\
**Replies:** 2\
**Last updated:** [October 28, 2016, 5:07am UTC](https://forum.ansible.com/t/host-add-uniqueness-name-ansible-host-ansible-ssh-extra-args/22908 "2016-10-28T05:07:07Z")

</div>

Hi, I use docker to run (network namespaced) VPN… I have to use a custom ProxyCommand, per VPN, to access the other side with Ansible, so far so good… So I’m using Ansible to find the right container and then add\_host…

---

## [Ansible 2.2.0 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-2-0-rc3-is-ready-for-testing/22882)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [October 27, 2016, 11:06pm UTC](https://forum.ansible.com/t/ansible-2-2-0-rc3-is-ready-for-testing/22882 "2016-10-27T23:06:55Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.2.0 is now available for testing. This release candidate addresses the following bugs: Fixed a bug where a custom module could overwrite connection-based variables. Fixed…

---

## [how to get the ansible virt module to wait for a machine to finish shutting down](https://forum.ansible.com/t/how-to-get-the-ansible-virt-module-to-wait-for-a-machine-to-finish-shutting-down/21047)

<div class="topic-metadata">

**Author:** [@Rob\_Verduijn](https://forum.ansible.com/u/Rob_Verduijn)\
**Replies:** 3\
**Last updated:** [October 27, 2016, 9:50pm UTC](https://forum.ansible.com/t/how-to-get-the-ansible-virt-module-to-wait-for-a-machine-to-finish-shutting-down/21047 "2016-10-27T21:50:58Z")

</div>

Hello, When shutting down a kvm guest using the task name: shut down kvm guest virt: name=kvm-guest state=shutdown Ansible will continue when the virsh shutdown kvm-guest command is finished. However I want it to w…

---

## [Ansible 2.2.0 RC4 is ready for testing](https://forum.ansible.com/t/ansible-2-2-0-rc4-is-ready-for-testing/22907)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 7:01pm UTC](https://forum.ansible.com/t/ansible-2-2-0-rc4-is-ready-for-testing/22907 "2016-10-27T19:01:32Z")

</div>

Hi all, we’re happy to announce that RC4 for 2.2.0 is now available for testing. This release candidate addresses the following bugs: Fixed a bug related to the calculation of the max number of forks to use, which was…

---

## [Multiple Sub Elements Iteration](https://forum.ansible.com/t/multiple-sub-elements-iteration/22904)

<div class="topic-metadata">

**Author:** [@Yasin\_Amadmia](https://forum.ansible.com/u/Yasin_Amadmia)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 4:31pm UTC](https://forum.ansible.com/t/multiple-sub-elements-iteration/22904 "2016-10-27T16:31:45Z")

</div>

Given a variable v1 head : first x : \[ ‘a’ , ‘b’, ‘c’ \] y : \[ ‘d’, ‘e’ \] z : \[ ‘f’, ‘g’, ‘h’ \] head: second x : \[ ‘a2’ , ‘b2’, ‘c2’ \] y : \[ ‘d2’, ‘e2’ \] z : \[ ‘f2’, ‘g2’, ‘h2’ \] I want to iterate over x,y…

---

## [Linux aliases in shell...](https://forum.ansible.com/t/linux-aliases-in-shell/22875)

<div class="topic-metadata">

**Author:** [@Sonny\_Chee](https://forum.ansible.com/u/Sonny_Chee)\
**Replies:** 3\
**Last updated:** [October 27, 2016, 2:44pm UTC](https://forum.ansible.com/t/linux-aliases-in-shell/22875 "2016-10-27T14:44:00Z")

</div>

Hey Guys, Is there a way to make aliases available in a shell? I tried sourcing a file with aliases before invoking my alias with no luck… ie: shell: . ~/.bash\_aliases && my\_command args Any help would be appreciated. …

---

## [Playbook datastructure when using the Python API](https://forum.ansible.com/t/playbook-datastructure-when-using-the-python-api/22902)

<div class="topic-metadata">

**Author:** [@Francesco\_Albanese](https://forum.ansible.com/u/Francesco_Albanese)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 1:26pm UTC](https://forum.ansible.com/t/playbook-datastructure-when-using-the-python-api/22902 "2016-10-27T13:26:46Z")

</div>

Hello, In order to harmonize several in-house operations, I wrote some self-contained Python command line tools built upon the Ansible core. As it is not desirable to be dependent on several external files, my code emb…

---

## [Modules for community review](https://forum.ansible.com/t/modules-for-community-review/22900)

<div class="topic-metadata">

**Author:** [@Adam\_Hamsik](https://forum.ansible.com/u/Adam_Hamsik)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 10:41am UTC](https://forum.ansible.com/t/modules-for-community-review/22900 "2016-10-27T10:41:21Z")

</div>

Hi, I have couple PRs waiting in modules-extras and I would love to get some community review on them so we can ship them if possible. I regularly use and test all of them. Would it be possible to get someone from commu…

---

## [Question about organizing roles and playbooks](https://forum.ansible.com/t/question-about-organizing-roles-and-playbooks/22892)

<div class="topic-metadata">

**Author:** [@thokari81](https://forum.ansible.com/u/thokari81)\
**Replies:** 4\
**Last updated:** [October 27, 2016, 9:57am UTC](https://forum.ansible.com/t/question-about-organizing-roles-and-playbooks/22892 "2016-10-27T09:57:55Z")

</div>

Hello, How to best model the following scenario: I have a set of hosts in one playbook. \[qa-machines\] HostA HostB HostC I have a subset of these hosts that should receive additional roles. \[jenkins-slaves\] HostC …

---

## [Playbook can't connect to EC2 instance, but SSH works fine?](https://forum.ansible.com/t/playbook-cant-connect-to-ec2-instance-but-ssh-works-fine/22876)

<div class="topic-metadata">

**Author:** [@Eric\_Campusano](https://forum.ansible.com/u/Eric_Campusano)\
**Replies:** 1\
**Last updated:** [October 27, 2016, 7:58am UTC](https://forum.ansible.com/t/playbook-cant-connect-to-ec2-instance-but-ssh-works-fine/22876 "2016-10-27T07:58:20Z")

</div>

New to Ansible but I’m really enjoying working with it so far. I’ve started writing a playbook that creates an EC2 instance and then attempts to connect to it and configure it. For some reason it’s failing to connect, ev…

---

## [group\_vars and ansible's patterns - suggestions please!](https://forum.ansible.com/t/group-vars-and-ansibles-patterns-suggestions-please/22895)

<div class="topic-metadata">

**Author:** [@Dan\_Rough](https://forum.ansible.com/u/Dan_Rough)\
**Replies:** 5\
**Last updated:** [October 27, 2016, 6:12am UTC](https://forum.ansible.com/t/group-vars-and-ansibles-patterns-suggestions-please/22895 "2016-10-27T06:12:53Z")

</div>

Hi, I’d like to know how others are dealing with keeping their group\_vars files granular. Ours have become a little unwieldily and we’re considering approaches to breaking them apart. When we provision a server, we ass…

---

## [ansible-playbook -i inventory/ bidder\_c4.yml](https://forum.ansible.com/t/ansible-playbook-i-inventory-bidder-c4-yml/22898)

<div class="topic-metadata">

**Author:** [@quentin](https://forum.ansible.com/u/quentin)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 5:00am UTC](https://forum.ansible.com/t/ansible-playbook-i-inventory-bidder-c4-yml/22898 "2016-10-27T05:00:33Z")

</div>

ERROR! The file inventory/gce.py is marked as executable, but failed to execute correctly. If this is not supposed to be an executable script, correct this with chmod -x inventory/gce.py. Inventory script (inventory/gce…

---

## [Execute Ansible-playbook Question](https://forum.ansible.com/t/execute-ansible-playbook-question/22897)

<div class="topic-metadata">

**Author:** [@sspeng2016](https://forum.ansible.com/u/sspeng2016)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 4:37am UTC](https://forum.ansible.com/t/execute-ansible-playbook-question/22897 "2016-10-27T04:37:29Z")

</div>

Hi Sir/Miss: I try to use ansible-playbook,the implementation of the TASK \[setup\] steps, Managed Node system when the dead, so the request for assistance.

---

## [Execute Ansible-playbook Question](https://forum.ansible.com/t/execute-ansible-playbook-question/22896)

<div class="topic-metadata">

**Author:** [@sspeng2016](https://forum.ansible.com/u/sspeng2016)\
**Replies:** 0\
**Last updated:** [October 27, 2016, 3:31am UTC](https://forum.ansible.com/t/execute-ansible-playbook-question/22896 "2016-10-27T03:31:43Z")

</div>

Hi Sir/Miss: I try to use ansible-playbook, the implementation of the TASK \[setup\] steps, Managed Node system when the dead, so the request for assistance. System Environment: Control Manage: CentOS 6.5 + Python 2.6.6…

---

## [modifying members of local groups in windows](https://forum.ansible.com/t/modifying-members-of-local-groups-in-windows/22894)

<div class="topic-metadata">

**Author:** [@Mike\_Devlin](https://forum.ansible.com/u/Mike_Devlin)\
**Replies:** 2\
**Last updated:** [October 27, 2016, 2:08am UTC](https://forum.ansible.com/t/modifying-members-of-local-groups-in-windows/22894 "2016-10-27T02:08:32Z")

</div>

the win\_group module looks like it only lets you create or remove a group, and win\_user is for add/modify/removing local users. Is there a way to add an active directory group as a member of a local group that I am not s…

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

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