# Ansible Project

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

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

**Page:** 309

---

## [Best practice for running inline playbook from parent with different host group](https://forum.ansible.com/t/best-practice-for-running-inline-playbook-from-parent-with-different-host-group/25675)

<div class="topic-metadata">

**Author:** [@David\_Binney](https://forum.ansible.com/u/David_Binney)\
**Replies:** 0\
**Last updated:** [October 4, 2017, 2:03am UTC](https://forum.ansible.com/t/best-practice-for-running-inline-playbook-from-parent-with-different-host-group/25675 "2017-10-04T02:03:56Z")

</div>

I am trying to work out the best practice for linking two playbooks(or whatever they should be) in order to tell the sub task to run against different, but related hosts. The overview is that I am wanting to do a deploym…

---

## [Cannot define a role dependency with source control repository url](https://forum.ansible.com/t/cannot-define-a-role-dependency-with-source-control-repository-url/16268)

<div class="topic-metadata">

**Author:** [@Vincent\_Jestin](https://forum.ansible.com/u/Vincent_Jestin)\
**Replies:** 5\
**Last updated:** [October 3, 2017, 6:09pm UTC](https://forum.ansible.com/t/cannot-define-a-role-dependency-with-source-control-repository-url/16268 "2017-10-03T18:09:30Z")

</div>

Hello, This might be a dummy question but I’m stuck with role dependency definition in ansible. I’d like to use a role defined in a git repository as a dependency for another role. In the doc I can see that: Role dep…

---

## [Ansible Include with tags issue](https://forum.ansible.com/t/ansible-include-with-tags-issue/25672)

<div class="topic-metadata">

**Author:** [@Bapi](https://forum.ansible.com/u/Bapi)\
**Replies:** 0\
**Last updated:** [October 3, 2017, 5:52pm UTC](https://forum.ansible.com/t/ansible-include-with-tags-issue/25672 "2017-10-03T17:52:10Z")

</div>

Hello, My playbook looks like:: hosts: foo include: tags.yml tags: \[“tag1”, “tag2”, “tag3”, “tag4”\] while i run the playbook like::ansible-playbook tags.yml --tags “tag1,tag2” Expected result:: should run onl…

---

## [Can Ansible work on an Intranet setup?](https://forum.ansible.com/t/can-ansible-work-on-an-intranet-setup/25669)

<div class="topic-metadata">

**Author:** [@Luke\_Watts](https://forum.ansible.com/u/Luke_Watts)\
**Replies:** 2\
**Last updated:** [October 3, 2017, 5:22pm UTC](https://forum.ansible.com/t/can-ansible-work-on-an-intranet-setup/25669 "2017-10-03T17:22:02Z")

</div>

I work for a company that runs a large complex web app on an intranet for the employees to do a wide array of jobs. I'm trying to get them to move to Linux so we can manage it with ansible. Is it possible without a publi…

---

## [Trying to use wait\_for to sequence a set of reboots](https://forum.ansible.com/t/trying-to-use-wait-for-to-sequence-a-set-of-reboots/25671)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 4\
**Last updated:** [October 3, 2017, 4:48pm UTC](https://forum.ansible.com/t/trying-to-use-wait-for-to-sequence-a-set-of-reboots/25671 "2017-10-03T16:48:27Z")

</div>

Not doing well. It starts here: https://github.com/LeamHall/Ansible\_Test/blob/master/playbooks/reboot\_nodes.yml hosts: b2532\_vms become: True vars: hosts: genesis ex…

---

## [log\_plays call back plugin](https://forum.ansible.com/t/log-plays-call-back-plugin/25668)

<div class="topic-metadata">

**Author:** [@sanjeev\_ganjihal](https://forum.ansible.com/u/sanjeev_ganjihal)\
**Replies:** 1\
**Last updated:** [October 3, 2017, 1:28pm UTC](https://forum.ansible.com/t/log-plays-call-back-plugin/25668 "2017-10-03T13:28:34Z")

</div>

I have a question with the callback plugin log\_plays.py. Under requirements I see whitelist. Whitelist in configuration: Can you elaborate on what I should add there? In ansible.cfg I uncommented callback\_whitelist = t…

---

## [Is there a way to provide default values to a set of tasks?](https://forum.ansible.com/t/is-there-a-way-to-provide-default-values-to-a-set-of-tasks/25653)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 4\
**Last updated:** [October 3, 2017, 11:54am UTC](https://forum.ansible.com/t/is-there-a-way-to-provide-default-values-to-a-set-of-tasks/25653 "2017-10-03T11:54:39Z")

</div>

Hi, I am writing a role that contains a dozen of tasks that invoke REST APIs. All tasks have a set of common and identical configurations: - name: Task 1 uri: validate\_certs: False method: POST user: "{{ …

---

## [Moving to a role based environment - where to place "Provider" -- IOS Modules](https://forum.ansible.com/t/moving-to-a-role-based-environment-where-to-place-provider-ios-modules/25670)

<div class="topic-metadata">

**Author:** [@OZmedia\_Mike](https://forum.ansible.com/u/OZmedia_Mike)\
**Replies:** 0\
**Last updated:** [October 3, 2017, 7:02am UTC](https://forum.ansible.com/t/moving-to-a-role-based-environment-where-to-place-provider-ios-modules/25670 "2017-10-03T07:02:40Z")

</div>

Hi I’m Moving to a role based environment using a cisco IOS playbook What is the best location for the SSH login parameters? (used to be in provider set\_fact task in standard ‘flat hierarchy’ playbook) regards, Mike

---

## [Able to change execution order of with\_items?](https://forum.ansible.com/t/able-to-change-execution-order-of-with-items/25666)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [October 2, 2017, 10:50pm UTC](https://forum.ansible.com/t/able-to-change-execution-order-of-with-items/25666 "2017-10-02T22:50:41Z")

</div>

I have the following in my playbook, and when it writes the contents it writes in this format: ServerA: sudoers ServerB: sudoers ServerA: other\_users ServerB: other\_users. I would like the following format if po…

---

## [Execute one email/command per play, no matter how many servers](https://forum.ansible.com/t/execute-one-email-command-per-play-no-matter-how-many-servers/25665)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 9:48pm UTC](https://forum.ansible.com/t/execute-one-email-command-per-play-no-matter-how-many-servers/25665 "2017-10-02T21:48:19Z")

</div>

I have a play that is setup to email me once complete with some of the results…the problem is that I get an email for every server I run the play against. For instance, against 1 server I get 1 email. Against 3 servers I…

---

## [How to set current directory in ansible.cfg?](https://forum.ansible.com/t/how-to-set-current-directory-in-ansible-cfg/25661)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 5\
**Last updated:** [October 2, 2017, 7:21pm UTC](https://forum.ansible.com/t/how-to-set-current-directory-in-ansible-cfg/25661 "2017-10-02T19:21:20Z")

</div>

I want to set a roles\_path = ${curr\_dir}/roles, but how do I set curr\_dir to my current directory where I run ansible-playbook command in my ansible.cfg file?

---

## [filter\_plugins cannot be used inside role defaults](https://forum.ansible.com/t/filter-plugins-cannot-be-used-inside-role-defaults/25660)

<div class="topic-metadata">

**Author:** [@Deniz\_Acay](https://forum.ansible.com/u/Deniz_Acay)\
**Replies:** 0\
**Last updated:** [October 2, 2017, 6:34pm UTC](https://forum.ansible.com/t/filter-plugins-cannot-be-used-inside-role-defaults/25660 "2017-10-02T18:34:19Z")

</div>

Hi, We recently migrated to Ansible v2.4 and having issues related to using our role-specific custom filter plugins in role defaults. In previous version, this worked: - myrole - defaults - filter\_plugins …

---

## [newline characters in shell commands](https://forum.ansible.com/t/newline-characters-in-shell-commands/25659)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [October 2, 2017, 6:05pm UTC](https://forum.ansible.com/t/newline-characters-in-shell-commands/25659 "2017-10-02T18:05:51Z")

</div>

I can't confirm this behavior against Kubuntu, in my test I get to lines in the file. In Ansible shell is using /bin/sh, on Kubuntu /bin/sh is a link to dash. Since echo is a builtin on most shells if not all shell, the…

---

## [Out of scope variable in jinja2 template started throwing error after i updated to jinja2 2.9](https://forum.ansible.com/t/out-of-scope-variable-in-jinja2-template-started-throwing-error-after-i-updated-to-jinja2-2-9/25656)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 5:57pm UTC](https://forum.ansible.com/t/out-of-scope-variable-in-jinja2-template-started-throwing-error-after-i-updated-to-jinja2-2-9/25656 "2017-10-02T17:57:39Z")

</div>

My previously running playbooks starting giving me error after i updated my python modules. After a lot of debugging, i identified the problem. The problem was that following code snippet was working fine until i updated…

---

## [ansible\_user undefined when used in become\_user:](https://forum.ansible.com/t/ansible-user-undefined-when-used-in-become-user/25648)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 3\
**Last updated:** [October 2, 2017, 5:52pm UTC](https://forum.ansible.com/t/ansible-user-undefined-when-used-in-become-user/25648 "2017-10-02T17:52:00Z")

</div>

Hello, I thought that when ansible-playbook was used with the “-u” option, then ansible\_user was always defined as the “-u” user. when running the following playbook, hosts: mybox gather\_facts: no tasks: name: Echo…

---

## [Identify if host being processed is the first in any the groups being processed](https://forum.ansible.com/t/identify-if-host-being-processed-is-the-first-in-any-the-groups-being-processed/25655)

<div class="topic-metadata">

**Author:** [@Marc\_L](https://forum.ansible.com/u/Marc_L)\
**Replies:** 4\
**Last updated:** [October 2, 2017, 5:47pm UTC](https://forum.ansible.com/t/identify-if-host-being-processed-is-the-first-in-any-the-groups-being-processed/25655 "2017-10-02T17:47:29Z")

</div>

I have some tasks that should only be processed if the host (inventory\_hostname) is the first in the group of servers it’s defined in. For example, here is my hosts file. Note that the group names are not fixed - the Ro…

---

## [Managing Thunderbird and Firefox using Ansible](https://forum.ansible.com/t/managing-thunderbird-and-firefox-using-ansible/25651)

<div class="topic-metadata">

**Author:** [@Pietro\_Leone](https://forum.ansible.com/u/Pietro_Leone)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 5:24pm UTC](https://forum.ansible.com/t/managing-thunderbird-and-firefox-using-ansible/25651 "2017-10-02T17:24:56Z")

</div>

Hi, I have to manage some Thunderbird and Firefox (installation and configuration), is there any ansible module that allow me to do this? I want to standardize the installation (no more random string for directory names…

---

## [vmware\_guest module: Customization of the guest operating system 'centos64Guest' is not supported in this configuration](https://forum.ansible.com/t/vmware-guest-module-customization-of-the-guest-operating-system-centos64guest-is-not-supported-in-this-configuration/25639)

<div class="topic-metadata">

**Author:** [@DK1](https://forum.ansible.com/u/DK1)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 4:31pm UTC](https://forum.ansible.com/t/vmware-guest-module-customization-of-the-guest-operating-system-centos64guest-is-not-supported-in-this-configuration/25639 "2017-10-02T16:31:18Z")

</div>

Hi, I’m using VMware vCenter Server, 6.0.0, 2776511 I’m trying to use the Ansible vmware\_guest module to create a new VM from a CentOS Atomic 7 template. Customization of the guest operating system ‘centos64Guest’ is …

---

## [Ansible 2.3.3 RC1 is available for testing!](https://forum.ansible.com/t/ansible-2-3-3-rc1-is-available-for-testing/25658)

<div class="topic-metadata">

**Author:** [@jimi](https://forum.ansible.com/u/jimi)\
**Replies:** 0\
**Last updated:** [October 2, 2017, 3:52pm UTC](https://forum.ansible.com/t/ansible-2-3-3-rc1-is-available-for-testing/25658 "2017-10-02T15:52:44Z")

</div>

Hi all, we’re happy to announce that RC1 for 2.3.3 is now available for testing. How do you get it?

---

## [Nested loop.  Write var to file before moving on to next {{item}}](https://forum.ansible.com/t/nested-loop-write-var-to-file-before-moving-on-to-next-item/25645)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [October 2, 2017, 3:33pm UTC](https://forum.ansible.com/t/nested-loop-write-var-to-file-before-moving-on-to-next-item/25645 "2017-10-02T15:33:06Z")

</div>

The following playbook is close to what I need, but I need to write the content of sudoers.stdout\_lines to a file (append) before moving on to the next item. Is it possible to nest these two pieces? or rewrite it to do w…

---

## [Ansible Bug: skipping no hosts matched](https://forum.ansible.com/t/ansible-bug-skipping-no-hosts-matched/25657)

<div class="topic-metadata">

**Author:** [@Colm\_Mcnabola](https://forum.ansible.com/u/Colm_Mcnabola)\
**Replies:** 0\
**Last updated:** [October 2, 2017, 3:10pm UTC](https://forum.ansible.com/t/ansible-bug-skipping-no-hosts-matched/25657 "2017-10-02T15:10:52Z")

</div>

Hi All I am having an issue with ansbible. I have created an inventory folder and declared a hostgroup for different nodes for example, in inventory file \[NodeGroup1\] node1@node.node \[NodeGroup2\] node2@node.node n…

---

## [Ansible: vmware\_module does not work and flashes the error "Failed to find a matching datastore"](https://forum.ansible.com/t/ansible-vmware-module-does-not-work-and-flashes-the-error-failed-to-find-a-matching-datastore/25618)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 3\
**Last updated:** [October 2, 2017, 2:55pm UTC](https://forum.ansible.com/t/ansible-vmware-module-does-not-work-and-flashes-the-error-failed-to-find-a-matching-datastore/25618 "2017-10-02T14:55:59Z")

</div>

Hi , I have upgraded to ansible 2.4 and using vmware\_guest module to create a VM. I am getting “Failed to find a matching datastore”. same code works fine in ansiblke 2.3. is this a known issue or am i missing somethi…

---

## [windows ansible powershell in 2.3.1](https://forum.ansible.com/t/windows-ansible-powershell-in-2-3-1/25646)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 2\
**Last updated:** [October 2, 2017, 1:26pm UTC](https://forum.ansible.com/t/windows-ansible-powershell-in-2-3-1/25646 "2017-10-02T13:26:17Z")

</div>

Hello Folks I am seeing issues when try to run powershell script from ansible after upgrade from 2.2.1 to 2.3.1, any ideas, suggestions are appreciated? \[root@marx4150 playbooks\]# ansible-playbook -i inventory AdIntRhe…

---

## [Suggestion: telnet transport for network devices?](https://forum.ansible.com/t/suggestion-telnet-transport-for-network-devices/25212)

<div class="topic-metadata">

**Author:** [@Steve\_Kersley](https://forum.ansible.com/u/Steve_Kersley)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 12:53pm UTC](https://forum.ansible.com/t/suggestion-telnet-transport-for-network-devices/25212 "2017-10-02T12:53:45Z")

</div>

Would there be any mileage in having some way to connect to network devices over telnet in addition to SSH? I know that telnet is insecure, but many network devices (Cisco certainly) ship with SSH disabled and only teln…

---

## [Ansible option to playbook](https://forum.ansible.com/t/ansible-option-to-playbook/25638)

<div class="topic-metadata">

**Author:** [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Replies:** 7\
**Last updated:** [October 2, 2017, 6:32am UTC](https://forum.ansible.com/t/ansible-option-to-playbook/25638 "2017-10-02T06:32:22Z")

</div>

Hi, Anybody know how to use options in playbooks. The following command works fine: ansible test -m setup --tree /home/user/ansible/facts How do I use this in a playbook:

---

## [ec2\_win\_password unable to parse key file](https://forum.ansible.com/t/ec2-win-password-unable-to-parse-key-file/25560)

<div class="topic-metadata">

**Author:** [@Ryan\_Howe](https://forum.ansible.com/u/Ryan_Howe)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 3:00am UTC](https://forum.ansible.com/t/ec2-win-password-unable-to-parse-key-file/25560 "2017-10-02T03:00:41Z")

</div>

Hello, I’m trying to use the ec2\_win\_password module to retrieve the default Administrator password for an EC2 instance. I had a play working and then upgraded to Ansible 2.4. I added the cryptography module as the note…

---

## [Calling URI task to 10 servers in parallel](https://forum.ansible.com/t/calling-uri-task-to-10-servers-in-parallel/25650)

<div class="topic-metadata">

**Author:** [@Marc\_L](https://forum.ansible.com/u/Marc_L)\
**Replies:** 2\
**Last updated:** [October 1, 2017, 3:34pm UTC](https://forum.ansible.com/t/calling-uri-task-to-10-servers-in-parallel/25650 "2017-10-01T15:34:18Z")

</div>

Ansible newbie… We run a large enterprise web app load balanced over 10 servers in a customer environment (windows servers)The app exposes a set of Webservices to manage config, such as applying new binaries, exporting …

---

## [Git Module: Is it a "Pull on Remote" or "Pull on Local and Push to remote"](https://forum.ansible.com/t/git-module-is-it-a-pull-on-remote-or-pull-on-local-and-push-to-remote/25644)

<div class="topic-metadata">

**Author:** [@indraj\_joglekar](https://forum.ansible.com/u/indraj_joglekar)\
**Replies:** 3\
**Last updated:** [September 30, 2017, 10:37pm UTC](https://forum.ansible.com/t/git-module-is-it-a-pull-on-remote-or-pull-on-local-and-push-to-remote/25644 "2017-09-30T22:37:49Z")

</div>

How does the git module work? a) Does it do a pull on the remote server? b) Does it first do a pull on the local admin server and then rsync copy the repo to the remote server? If not, is it possible to do this in som…

---

## [Trirpwire Installation](https://forum.ansible.com/t/trirpwire-installation/25647)

<div class="topic-metadata">

**Author:** [@mark\_funcion](https://forum.ansible.com/u/mark_funcion)\
**Replies:** 1\
**Last updated:** [September 30, 2017, 8:14pm UTC](https://forum.ansible.com/t/trirpwire-installation/25647 "2017-09-30T20:14:58Z")

</div>

Hi Peeps, Need your insight on this. I am trying to install tripwire on our nodes. Install files are coming from a local repo and we fetch it via WGET in .tgz extension. Individual steps in a host are like this. cd /…

---

## [How To:  Query servers, write output to file](https://forum.ansible.com/t/how-to-query-servers-write-output-to-file/25642)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [September 29, 2017, 8:25pm UTC](https://forum.ansible.com/t/how-to-query-servers-write-output-to-file/25642 "2017-09-29T20:25:51Z")

</div>

I know I can script this, but I am wondering if there is a way via ansible to basically grab the contents of a file on a remote server, format it, and write it to a local file? For example, I want to gather all users/gro…

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

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