# Latest

**URL:** https://forum.ansible.com/latest.md?page=617

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

**Page:** 618

---

## [Ask for service module state option reload-or-restart](https://forum.ansible.com/t/ask-for-service-module-state-option-reload-or-restart/25701)

<div class="topic-metadata">

**Author:** [@cesarjorgemartinez](https://forum.ansible.com/u/cesarjorgemartinez)\
**Replies:** 7\
**Last updated:** [October 9, 2017, 2:46pm UTC](https://forum.ansible.com/t/ask-for-service-module-state-option-reload-or-restart/25701 "2017-10-09T14:46:44Z")

</div>

Hi, Reading http://docs.ansible.com/ansible/latest/service\_module.html, in the options table: state | | | - started - stopped - restarted - reloaded | | - | - | - | Not found the systemd option reload-or-res…

---

## [Ansible playbook to install or update jenkins error.](https://forum.ansible.com/t/ansible-playbook-to-install-or-update-jenkins-error/25699)

<div class="topic-metadata">

**Author:** [@anoop\_vc](https://forum.ansible.com/u/anoop_vc)\
**Replies:** 1\
**Last updated:** [October 9, 2017, 1:45pm UTC](https://forum.ansible.com/t/ansible-playbook-to-install-or-update-jenkins-error/25699 "2017-10-09T13:45:22Z")

</div>

I am new to ansible and am trying to write a playbook to install / update jenkins. but am getting the below error. Do I need to install jenkins\_module separately?? Please help My playbook

---

## [Inventory group that consists of groups and hosts?](https://forum.ansible.com/t/inventory-group-that-consists-of-groups-and-hosts/25702)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [October 9, 2017, 11:07am UTC](https://forum.ansible.com/t/inventory-group-that-consists-of-groups-and-hosts/25702 "2017-10-09T11:07:47Z")

</div>

Hi I'd like to define a group in my inventory that will include hosts as well as some groups. For instance I have this in my inventory: \[squid\] proxy-prod proxy-uat proxy-test \[testgroup\] squid extrahost If I …

---

## [ansible roles create users](https://forum.ansible.com/t/ansible-roles-create-users/25700)

<div class="topic-metadata">

**Author:** [@amber\_mehra](https://forum.ansible.com/u/amber_mehra)\
**Replies:** 0\
**Last updated:** [October 9, 2017, 9:01am UTC](https://forum.ansible.com/t/ansible-roles-create-users/25700 "2017-10-09T09:01:26Z")

</div>

Hey guys!! I have some requirement where i need to create bunch of user and groups using ansible roles. can you help me what is best way to do this? 1 ) Create following group a) dev b) qa c) devops There is list …

---

## [Rackspace and AWX](https://forum.ansible.com/t/rackspace-and-awx/25632)

<div class="topic-metadata">

**Author:** [@larry.singer](https://forum.ansible.com/u/larry.singer)\
**Replies:** 17\
**Last updated:** [October 9, 2017, 1:59am UTC](https://forum.ansible.com/t/rackspace-and-awx/25632 "2017-10-09T01:59:45Z")

</div>

Hi, I am trying to get AWX going with our Rackspace cloud. I already have Ansible & Tower scripts running for our cloud. At the moment I have two issues: I cannot provision new VMs because pyrax is not installed. Thi…

---

## [Ansible playbook to spawn 2 VMs. The nginx on VM1 should be configured to access the endpoint on VM2 on a specific port.](https://forum.ansible.com/t/ansible-playbook-to-spawn-2-vms-the-nginx-on-vm1-should-be-configured-to-access-the-endpoint-on-vm2-on-a-specific-port/25676)

<div class="topic-metadata">

**Author:** [@Leviya\_bl](https://forum.ansible.com/u/Leviya_bl)\
**Replies:** 1\
**Last updated:** [October 8, 2017, 12:41pm UTC](https://forum.ansible.com/t/ansible-playbook-to-spawn-2-vms-the-nginx-on-vm1-should-be-configured-to-access-the-endpoint-on-vm2-on-a-specific-port/25676 "2017-10-08T12:41:27Z")

</div>

The script can spawn VMs that are just 2 virtual box instances (preferred) or 2 Amazon AMI instances. Ubuntu 14.04 should be the OS on both VM’s. On VM1, the script should install nginx. On VM2, the script should deploy …

---

## [installing packages into R](https://forum.ansible.com/t/installing-packages-into-r/25674)

<div class="topic-metadata">

**Author:** [@Vasanth](https://forum.ansible.com/u/Vasanth)\
**Replies:** 2\
**Last updated:** [October 7, 2017, 12:20pm UTC](https://forum.ansible.com/t/installing-packages-into-r/25674 "2017-10-07T12:20:00Z")

</div>

Hi, Running ansible scripts to install packages into R seems to be installed but couldn’t able to see the installed packages. -name: install r pkgs command: Rscript -e “install.packages(“path/pkgname”, repos=Null,type…

---

## [How to delegate set\_fact?](https://forum.ansible.com/t/how-to-delegate-set-fact/25595)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 7:55pm UTC](https://forum.ansible.com/t/how-to-delegate-set-fact/25595 "2017-10-06T19:55:57Z")

</div>

I have the following inventory: test1 ansible\_host=127.0.22.1 test2 ansible\_host=127.0.22.2 and the following playbook:

---

## [trying to find AWS Virtual Interfaces mgmt module...](https://forum.ansible.com/t/trying-to-find-aws-virtual-interfaces-mgmt-module/25696)

<div class="topic-metadata">

**Author:** [@paul.podb](https://forum.ansible.com/u/paul.podb)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 7:17pm UTC](https://forum.ansible.com/t/trying-to-find-aws-virtual-interfaces-mgmt-module/25696 "2017-10-06T19:17:38Z")

</div>

Looks like there is no module which allows us to manage AWS Virtual Interfaces over Direct Connect (e.g. new VIFs creation). Please, let me know if anyone saw anything with such func

---

## [filtering using gce\_labels](https://forum.ansible.com/t/filtering-using-gce-labels/25695)

<div class="topic-metadata">

**Author:** [@paulatkinson](https://forum.ansible.com/u/paulatkinson)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 3:02pm UTC](https://forum.ansible.com/t/filtering-using-gce-labels/25695 "2017-10-06T15:02:21Z")

</div>

Hi Does anyone know how to utilise gcloud labels within ansible playbook? IE Use Label to Identify Hosts within Google Cloud and then perform relevant actions against those hosts. We have created gce\_label using gclou…

---

## [SFTP fails with '\[user@server\]' when transferring templates](https://forum.ansible.com/t/sftp-fails-with-user-server-when-transferring-templates/25694)

<div class="topic-metadata">

**Author:** [@Phil\_Ayres](https://forum.ansible.com/u/Phil_Ayres)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 12:52pm UTC](https://forum.ansible.com/t/sftp-fails-with-user-server-when-transferring-templates/25694 "2017-10-06T12:52:53Z")

</div>

I just ran across the Github issue https://github.com/ansible/ansible/issues/16066 which is unfortunately closed. In short, SFTP of templates and files by Ansible places quoted square bracket around the hostname ‘\[…\]’. …

---

## [Have some way to merge the 'host' INI inventory and group\_vars/$service  to become a single $service.yml?](https://forum.ansible.com/t/have-some-way-to-merge-the-host-ini-inventory-and-group-vars-service-to-become-a-single-service-yml/25689)

<div class="topic-metadata">

**Author:** [@jpereira](https://forum.ansible.com/u/jpereira)\
**Replies:** 3\
**Last updated:** [October 6, 2017, 5:25am UTC](https://forum.ansible.com/t/have-some-way-to-merge-the-host-ini-inventory-and-group-vars-service-to-become-a-single-service-yml/25689 "2017-10-06T05:25:48Z")

</div>

Hi List, Today, we are using the approach as suggested by the official documentation (directory layout) http://docs.ansible.com/ansible/latest/playbooks\_best\_practices.html but, if you have a big number of regions/diff…

---

## [Iterate a dict over loop: different key value pair](https://forum.ansible.com/t/iterate-a-dict-over-loop-different-key-value-pair/25302)

<div class="topic-metadata">

**Author:** [@rahul\_raviz](https://forum.ansible.com/u/rahul_raviz)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 2:47am UTC](https://forum.ansible.com/t/iterate-a-dict-over-loop-different-key-value-pair/25302 "2017-10-06T02:47:04Z")

</div>

Is there any way to iterate over a dict with different key - value pair in ansible? Suppose I have a dict like below:

---

## [Register/Deregister instances in a AWS Application LoadBalancer (ALB)](https://forum.ansible.com/t/register-deregister-instances-in-a-aws-application-loadbalancer-alb/25693)

<div class="topic-metadata">

**Author:** [@cyril](https://forum.ansible.com/u/cyril)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 2:43am UTC](https://forum.ansible.com/t/register-deregister-instances-in-a-aws-application-loadbalancer-alb/25693 "2017-10-06T02:43:56Z")

</div>

Hi everyone, I’m trying to migrate from using AWS Classic ELB to ALB. In my playbook I’m using the elb\_instance module to de-register an instance from an ELB before upgrading the application version, then re-register t…

---

## [Upgrading from 1.9 to 2.x  -- what version of 2 should I pick?](https://forum.ansible.com/t/upgrading-from-1-9-to-2-x-what-version-of-2-should-i-pick/25682)

<div class="topic-metadata">

**Author:** [@Gary\_White](https://forum.ansible.com/u/Gary_White)\
**Replies:** 3\
**Last updated:** [October 6, 2017, 2:32am UTC](https://forum.ansible.com/t/upgrading-from-1-9-to-2-x-what-version-of-2-should-i-pick/25682 "2017-10-06T02:32:11Z")

</div>

I am planning to upgrade from Ansible 1.9.4 to a 2.x version of Ansible. I don’t necessarily have to go to the latest, what I’d like to do is go to the most compatible version. What 2.x version would you suggest that wi…

---

## [To get list of Amazon regions and availability zones](https://forum.ansible.com/t/to-get-list-of-amazon-regions-and-availability-zones/25677)

<div class="topic-metadata">

**Author:** [@sshobha379](https://forum.ansible.com/u/sshobha379)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 2:31am UTC](https://forum.ansible.com/t/to-get-list-of-amazon-regions-and-availability-zones/25677 "2017-10-06T02:31:14Z")

</div>

Hi team, I would like to get a list of Amazon regions and availability zones using ansible . Please let me know if this can be done using ansible Regards, Shobha

---

## [Ansible playbook xml module - error when using in task](https://forum.ansible.com/t/ansible-playbook-xml-module-error-when-using-in-task/25649)

<div class="topic-metadata">

**Author:** [@Sivakumar\_Lakshminar](https://forum.ansible.com/u/Sivakumar_Lakshminar)\
**Replies:** 4\
**Last updated:** [October 6, 2017, 1:06am UTC](https://forum.ansible.com/t/ansible-playbook-xml-module-error-when-using-in-task/25649 "2017-10-06T01:06:43Z")

</div>

Hello All, I am new to this group and ansible as well. I am learning ansible for my current project, till now all going good. Now I need to parse and update xml’s using path in remote windows machine. When trying ansi…

---

## [ipa-client-install using ansible-vault](https://forum.ansible.com/t/ipa-client-install-using-ansible-vault/25691)

<div class="topic-metadata">

**Author:** [@Ed\_Rice](https://forum.ansible.com/u/Ed_Rice)\
**Replies:** 0\
**Last updated:** [October 5, 2017, 5:33pm UTC](https://forum.ansible.com/t/ipa-client-install-using-ansible-vault/25691 "2017-10-05T17:33:57Z")

</div>

Ansible version is 2.3.1.0 / Python version is 2.7.5 I have created the following in one of my playbooks - name: Join IPA domain command: ipa-client-install --server=servername.domain --domain=private.domain --princi…

---

## [Excluding String in Jinja2 Template](https://forum.ansible.com/t/excluding-string-in-jinja2-template/25690)

<div class="topic-metadata">

**Author:** [@doug](https://forum.ansible.com/u/doug)\
**Replies:** 1\
**Last updated:** [October 5, 2017, 5:29pm UTC](https://forum.ansible.com/t/excluding-string-in-jinja2-template/25690 "2017-10-05T17:29:34Z")

</div>

Hi Over IRC Brian was very helpful last night resolving an issue. To summarize this now works: {% if inventory\_hostname in groups.lab %} Lab SSH Rules {% for host in groups.lab %} -A INPUT -s {{ lookup(‘dig’, host, …

---

## [Uanble to install couchdb using ansible.](https://forum.ansible.com/t/uanble-to-install-couchdb-using-ansible/25688)

<div class="topic-metadata">

**Author:** [@pete\_omolo](https://forum.ansible.com/u/pete_omolo)\
**Replies:** 0\
**Last updated:** [October 5, 2017, 4:10pm UTC](https://forum.ansible.com/t/uanble-to-install-couchdb-using-ansible/25688 "2017-10-05T16:10:54Z")

</div>

Hi all, I’m trying to install couchdb using ansible but it fails mid way. I get the below error TASK \[Stop CouchDB\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Passing long values to Ansible variable file (all.yml) without quotes](https://forum.ansible.com/t/passing-long-values-to-ansible-variable-file-all-yml-without-quotes/25686)

<div class="topic-metadata">

**Author:** [@Rohin\_Gupta](https://forum.ansible.com/u/Rohin_Gupta)\
**Replies:** 3\
**Last updated:** [October 5, 2017, 3:48pm UTC](https://forum.ansible.com/t/passing-long-values-to-ansible-variable-file-all-yml-without-quotes/25686 "2017-10-05T15:48:47Z")

</div>

ANSIBLE VERSION 2.7.5 SUMMARY I have the below list of variables defined in all.yml abc: 3V4L-CA6S-UHJ8 xyz: 06342107 MC\_INI\_VAR: " {{abc}} {{xyz}}" This has been invoked in playbook using the below rule name : Sta…

---

## [Managing open shift resources](https://forum.ansible.com/t/managing-open-shift-resources/25687)

<div class="topic-metadata">

**Author:** [@Sivakumar\_Lakshminar](https://forum.ansible.com/u/Sivakumar_Lakshminar)\
**Replies:** 0\
**Last updated:** [October 5, 2017, 3:36pm UTC](https://forum.ansible.com/t/managing-open-shift-resources/25687 "2017-10-05T15:36:29Z")

</div>

Hello All, I am trying to use ansible module oc for managing our project in openshit. But I don’t see much examples or documents anywhere. Till now not able to define the open shift host right :(. Can any one point an…

---

## [Playbook for windows updates.](https://forum.ansible.com/t/playbook-for-windows-updates/25588)

<div class="topic-metadata">

**Author:** [@Sunil\_Kumar](https://forum.ansible.com/u/Sunil_Kumar)\
**Replies:** 5\
**Last updated:** [October 5, 2017, 3:31pm UTC](https://forum.ansible.com/t/playbook-for-windows-updates/25588 "2017-10-05T15:31:51Z")

</div>

Hi Guys, I am very new to Ansible. We are trying to automate windows montly patches. But our playbook keep on fail when there is a update which requires a reboot. How to handle intellegent system reboot only if it requi…

---

## [Compare two hosts before/after copy](https://forum.ansible.com/t/compare-two-hosts-before-after-copy/25685)

<div class="topic-metadata">

**Author:** [@jasontapp](https://forum.ansible.com/u/jasontapp)\
**Replies:** 0\
**Last updated:** [October 5, 2017, 1:53pm UTC](https://forum.ansible.com/t/compare-two-hosts-before-after-copy/25685 "2017-10-05T13:53:51Z")

</div>

Does anyone know of a way to compare the configuration of two separate hosts before and/or after a deployment? Meaning, I want to conduct a diff on numerous files in a pre-deployment and then post-deployment state using …

---

## [Become\_user whose shell is /usr/sbin/nologin in Ansible 2.4](https://forum.ansible.com/t/become-user-whose-shell-is-usr-sbin-nologin-in-ansible-2-4/24983)

<div class="topic-metadata">

**Author:** [@Mathias\_Ettinger](https://forum.ansible.com/u/Mathias_Ettinger)\
**Replies:** 9\
**Last updated:** [October 5, 2017, 1:02pm UTC](https://forum.ansible.com/t/become-user-whose-shell-is-usr-sbin-nologin-in-ansible-2-4/24983 "2017-10-05T13:02:38Z")

</div>

I've been using become:yes and become\_user:logstash in a playbook to install extra plugins. It all works great with ansible 2.3.1.0. I mistakenly ran the playbook using the devel branch (2.4) and the shell module suddent…

---

## [add\_host in ansible](https://forum.ansible.com/t/add-host-in-ansible/25684)

<div class="topic-metadata">

**Author:** [@kumar\_kittu](https://forum.ansible.com/u/kumar_kittu)\
**Replies:** 1\
**Last updated:** [October 5, 2017, 11:36am UTC](https://forum.ansible.com/t/add-host-in-ansible/25684 "2017-10-05T11:36:34Z")

</div>

Hi All, I am very new to ansible. Just started learning about it.Got stuck in module “add\_host” . Went through docs but it didn’t helped me much.So ,i request anyone to help me with sample example. Thanks in advance.

---

## [install Oracle using Ansible playbook](https://forum.ansible.com/t/install-oracle-using-ansible-playbook/25603)

<div class="topic-metadata">

**Author:** [@Lap\_Nguyen](https://forum.ansible.com/u/Lap_Nguyen)\
**Replies:** 2\
**Last updated:** [October 5, 2017, 8:53am UTC](https://forum.ansible.com/t/install-oracle-using-ansible-playbook/25603 "2017-10-05T08:53:55Z")

</div>

does anyone have playbook to install Oracle? Thanks

---

## [Ansible 2.4.1 beta2 is ready for testing](https://forum.ansible.com/t/ansible-2-4-1-beta2-is-ready-for-testing/25683)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [October 5, 2017, 5:50am UTC](https://forum.ansible.com/t/ansible-2-4-1-beta2-is-ready-for-testing/25683 "2017-10-05T05:50:22Z")

</div>

Hi all, we're happy to announce that Beta 2 for 2.4.1 is now available for testing. How do you get it?

---

## [Prevent outdated roles/plays from running](https://forum.ansible.com/t/prevent-outdated-roles-plays-from-running/25681)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 2\
**Last updated:** [October 5, 2017, 2:05am UTC](https://forum.ansible.com/t/prevent-outdated-roles-plays-from-running/25681 "2017-10-05T02:05:50Z")

</div>

So now that we have a small team working on Ansible at our company, situations have arisen on multiple occasions where a change gets merged to master, run on all the servers, and then someone has a not-up-to-date branch …

---

## [Declare default variable values for two (or more) inventory groups using same role](https://forum.ansible.com/t/declare-default-variable-values-for-two-or-more-inventory-groups-using-same-role/25238)

<div class="topic-metadata">

**Author:** [@andrew.sumner](https://forum.ansible.com/u/andrew.sumner)\
**Replies:** 1\
**Last updated:** [October 5, 2017, 1:45am UTC](https://forum.ansible.com/t/declare-default-variable-values-for-two-or-more-inventory-groups-using-same-role/25238 "2017-10-05T01:45:40Z")

</div>

I’m having a bit of trouble figuring out the best structure for declaring a default variable value per inventory group that would be used by a role, that is over rideable per inventory. I’m aware that versions of this q…

[Previous page](https://forum.ansible.com/latest.md?page=616)

[Next page](https://forum.ansible.com/latest.md?page=618)
