# Latest

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

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

**Page:** 676

---

## [Conditional role "include\_role:" doesn't work (with "when:"), neither with "with\_items".](https://forum.ansible.com/t/conditional-role-include-role-doesnt-work-with-when-neither-with-with-items/23070)

<div class="topic-metadata">

**Author:** [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Replies:** 3\
**Last updated:** [March 18, 2017, 7:54pm UTC](https://forum.ansible.com/t/conditional-role-include-role-doesnt-work-with-when-neither-with-with-items/23070 "2017-03-18T19:54:15Z")

</div>

Guys, I’m trying to create a top-level playbook, based on “include\_role:”, instead of “roles:”, however, the “when:” condition isn’t working properly, I think. Easy to reproduce (the content of “roles/hello-world-X/tas…

---

## [Ansible CLI Error](https://forum.ansible.com/t/ansible-cli-error/24006)

<div class="topic-metadata">

**Author:** [@Taseer\_Ahmed](https://forum.ansible.com/u/Taseer_Ahmed)\
**Replies:** 0\
**Last updated:** [March 18, 2017, 5:34pm UTC](https://forum.ansible.com/t/ansible-cli-error/24006 "2017-03-18T17:34:41Z")

</div>

Hi, I am making a command line interface using Python Click, that would be used to execute the ansible playbooks as specified by the user. I have done all the necessary things to launch the playbook, but it fails with t…

---

## [ios\_config IP assignment issues](https://forum.ansible.com/t/ios-config-ip-assignment-issues/24005)

<div class="topic-metadata">

**Author:** [@David\_Coulson](https://forum.ansible.com/u/David_Coulson)\
**Replies:** 0\
**Last updated:** [March 18, 2017, 1:06pm UTC](https://forum.ansible.com/t/ios-config-ip-assignment-issues/24005 "2017-03-18T13:06:57Z")

</div>

Hi- I have two different issues, although they are both related to IP address assignment via ios\_config. Issue 1 - Does not generate error when IP address inconsistent with netmask: e.g. name: Create port-channel in…

---

## [provisioning multiple ec2 instances to multiple subnets and dealing with unmatching numbers](https://forum.ansible.com/t/provisioning-multiple-ec2-instances-to-multiple-subnets-and-dealing-with-unmatching-numbers/24004)

<div class="topic-metadata">

**Author:** [@yoash\_ben\_tulila](https://forum.ansible.com/u/yoash_ben_tulila)\
**Replies:** 0\
**Last updated:** [March 18, 2017, 12:37am UTC](https://forum.ansible.com/t/provisioning-multiple-ec2-instances-to-multiple-subnets-and-dealing-with-unmatching-numbers/24004 "2017-03-18T00:37:06Z")

</div>

Hello, I am building a provisioning system that will be receiving parameters from a jenkins job. I want to have a single playbook from where I can create new ec2 instances for both ec2-classic and vpc, though I can l…

---

## [variable\_start\_string not working](https://forum.ansible.com/t/variable-start-string-not-working/24002)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 7\
**Last updated:** [March 17, 2017, 8:49pm UTC](https://forum.ansible.com/t/variable-start-string-not-working/24002 "2017-03-17T20:49:48Z")

</div>

In the docs, there is reference to variable\_start\_string: http://docs.ansible.com/ansible/template\_module.html Also, you can override jinja2 settings by adding a special header to template file. i.e. #jinja2:variable\_…

---

## [Ansible integration with OpenStack  gave 400 error.](https://forum.ansible.com/t/ansible-integration-with-openstack-gave-400-error/23925)

<div class="topic-metadata">

**Author:** [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Replies:** 1\
**Last updated:** [March 17, 2017, 8:01pm UTC](https://forum.ansible.com/t/ansible-integration-with-openstack-gave-400-error/23925 "2017-03-17T20:01:14Z")

</div>

Hello Team, I got 400 error. While integrating Ansible with OpenStack. I could not understand what the error is. Please help me and correct my Playbook to rectify the error. Error: fatal: \[localhost\]: FAILED! =\> {“cha…

---

## [Ansible Tower Dashboard](https://forum.ansible.com/t/ansible-tower-dashboard/24001)

<div class="topic-metadata">

**Author:** [@dylan.klomparens](https://forum.ansible.com/u/dylan.klomparens)\
**Replies:** 1\
**Last updated:** [March 17, 2017, 7:03pm UTC](https://forum.ansible.com/t/ansible-tower-dashboard/24001 "2017-03-17T19:03:16Z")

</div>

I am in the process of setting up Ansible and Ansible Tower for some infrastructure, and have found Tower’s organization to be straightforward and intuitive. Projects, Inventories, Job Templates, all make sense, and prov…

---

## [logging actual user instead of effective user in ansible logging](https://forum.ansible.com/t/logging-actual-user-instead-of-effective-user-in-ansible-logging/24003)

<div class="topic-metadata">

**Author:** [@Arthur\_Reyes](https://forum.ansible.com/u/Arthur_Reyes)\
**Replies:** 0\
**Last updated:** [March 17, 2017, 6:47pm UTC](https://forum.ansible.com/t/logging-actual-user-instead-of-effective-user-in-ansible-logging/24003 "2017-03-17T18:47:19Z")

</div>

Is there an existing toggle to change the logged uid from the effective user (whoami) to the actual user? (who am i). 2017-03-17 12:53:13,960 p=27204 u=ansible | PLAY \[all\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Command module and quotes](https://forum.ansible.com/t/command-module-and-quotes/23999)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 1\
**Last updated:** [March 17, 2017, 4:36pm UTC](https://forum.ansible.com/t/command-module-and-quotes/23999 "2017-03-17T16:36:52Z")

</div>

Hello everyone - I have a simply quotation question that I can’t seem to find an answer to online for some reason. What is the proper way to wrap this command module task, such that the embedded quotes and variables sti…

---

## [Trying to copy ntp.conf from source sever to destination server failing](https://forum.ansible.com/t/trying-to-copy-ntp-conf-from-source-sever-to-destination-server-failing/23998)

<div class="topic-metadata">

**Author:** [@Mike\_Potvin](https://forum.ansible.com/u/Mike_Potvin)\
**Replies:** 1\
**Last updated:** [March 17, 2017, 2:07pm UTC](https://forum.ansible.com/t/trying-to-copy-ntp-conf-from-source-sever-to-destination-server-failing/23998 "2017-03-17T14:07:06Z")

</div>

I’m able to run an ad-hoc command that can send the ntp,conf file from source to destination server /tmp directory as my normal user id. However when I try to copy to /etc/ I get permission denied. I do have sudo rights …

---

## [Request for a detailed documentation on using Ansible to manage Docker containers](https://forum.ansible.com/t/request-for-a-detailed-documentation-on-using-ansible-to-manage-docker-containers/23997)

<div class="topic-metadata">

**Author:** [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Replies:** 0\
**Last updated:** [March 17, 2017, 12:16pm UTC](https://forum.ansible.com/t/request-for-a-detailed-documentation-on-using-ansible-to-manage-docker-containers/23997 "2017-03-17T12:16:17Z")

</div>

Hi, I am in great need of a good documentation (video, PDF, repository)link that explains all necessary steps of how ansible can be used to create, modify, start/stop, pull and remove a container. I have been assigned t…

---

## ['force\_kill: true' option in docker\_container is unable to kill the container while killing it via the docker daemon (-f option) works fine](https://forum.ansible.com/t/force-kill-true-option-in-docker-container-is-unable-to-kill-the-container-while-killing-it-via-the-docker-daemon-f-option-works-fine/23995)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [March 17, 2017, 10:25am UTC](https://forum.ansible.com/t/force-kill-true-option-in-docker-container-is-unable-to-kill-the-container-while-killing-it-via-the-docker-daemon-f-option-works-fine/23995 "2017-03-17T10:25:29Z")

</div>

I am having problems removing containers after introducing cadvisor - https://github.com/google/cadvisor/issues/771 All my scripts that removes containers using Ansible docker\_container module (ansible 2.2.1.0) are now …

---

## [Openstack module: Unable to create a router from specific users](https://forum.ansible.com/t/openstack-module-unable-to-create-a-router-from-specific-users/23983)

<div class="topic-metadata">

**Author:** [@Robson\_Ramos\_Barreto](https://forum.ansible.com/u/Robson_Ramos_Barreto)\
**Replies:** 1\
**Last updated:** [March 16, 2017, 7:18pm UTC](https://forum.ansible.com/t/openstack-module-unable-to-create-a-router-from-specific-users/23983 "2017-03-16T19:18:21Z")

</div>

Hi, I’m trying create a router from specfic user using auth instead of cloud option and I’m getting the following message error: \` TASK \[os\_router : create a virtual router\]

---

## [Proxy for Cloning Git Repo](https://forum.ansible.com/t/proxy-for-cloning-git-repo/23987)

<div class="topic-metadata">

**Author:** [@Taseer\_Ahmed](https://forum.ansible.com/u/Taseer_Ahmed)\
**Replies:** 1\
**Last updated:** [March 16, 2017, 6:00pm UTC](https://forum.ansible.com/t/proxy-for-cloning-git-repo/23987 "2017-03-16T18:00:15Z")

</div>

Hi all, I wanted to know if there is any way to pull git repos via a proxy when using Ansible. My setup does not have direct connection to the internet. Any help would be greatly appreciated. Thank you Best Regards, …

---

## [become\_user with sudo adds a -u flag](https://forum.ansible.com/t/become-user-with-sudo-adds-a-u-flag/23984)

<div class="topic-metadata">

**Author:** [@Justin\_Bleach](https://forum.ansible.com/u/Justin_Bleach)\
**Replies:** 4\
**Last updated:** [March 16, 2017, 2:55pm UTC](https://forum.ansible.com/t/become-user-with-sudo-adds-a-u-flag/23984 "2017-03-16T14:55:05Z")

</div>

I am getting an error trying to run my ansible playbook and I have tracked it down to the ‘-u’ flag being added by Ansible when it attempts to sudo. Here is the error I get: fatal: \[server\]: FAILED! =\> {“changed”: fals…

---

## [Ansible Tower -failure in playbook during package installation](https://forum.ansible.com/t/ansible-tower-failure-in-playbook-during-package-installation/23991)

<div class="topic-metadata">

**Author:** [@Reji](https://forum.ansible.com/u/Reji)\
**Replies:** 0\
**Last updated:** [March 16, 2017, 2:06pm UTC](https://forum.ansible.com/t/ansible-tower-failure-in-playbook-during-package-installation/23991 "2017-03-16T14:06:51Z")

</div>

All, I am running a playbook through Ansible Tower \[ver 3.0.3\]. The playbook installs java. It fails during the installation of the java package. We use yum for installing packages. Please note the error: TASK \[java : …

---

## [fail a play if a hosts: value is incorrect?](https://forum.ansible.com/t/fail-a-play-if-a-hosts-value-is-incorrect/23990)

<div class="topic-metadata">

**Author:** [@zlemini](https://forum.ansible.com/u/zlemini)\
**Replies:** 1\
**Last updated:** [March 16, 2017, 1:48pm UTC](https://forum.ansible.com/t/fail-a-play-if-a-hosts-value-is-incorrect/23990 "2017-03-16T13:48:35Z")

</div>

Is it possible to configure Ansible to fail early if a hosts: value is incorrect, i.e. doesn’t match a target machine in the inventory? If the hosts: value is undefined like this: \` name: Test module(s) hosts: \` T…

---

## [syntax error... where there is no syntax error...](https://forum.ansible.com/t/syntax-error-where-there-is-no-syntax-error/23969)

<div class="topic-metadata">

**Author:** [@Joost\_Ringoot](https://forum.ansible.com/u/Joost_Ringoot)\
**Replies:** 3\
**Last updated:** [March 16, 2017, 7:47am UTC](https://forum.ansible.com/t/syntax-error-where-there-is-no-syntax-error/23969 "2017-03-16T07:47:57Z")

</div>

But Hello, I have this playbook,… that used to work in a previous version of ansible, I swear it did: cat ansible/playbooks/apt/sssdconfig.yml \`

---

## [Ansible 2.0.2 sts\_asume\_role error - Region does not seem to be available for aws module boto.sts](https://forum.ansible.com/t/ansible-2-0-2-sts-asume-role-error-region-does-not-seem-to-be-available-for-aws-module-boto-sts/23986)

<div class="topic-metadata">

**Author:** [@igorc](https://forum.ansible.com/u/igorc)\
**Replies:** 0\
**Last updated:** [March 16, 2017, 4:53am UTC](https://forum.ansible.com/t/ansible-2-0-2-sts-asume-role-error-region-does-not-seem-to-be-available-for-aws-module-boto-sts/23986 "2017-03-16T04:53:40Z")

</div>

Hi, When I run the following playbook on an EC2 instance with IAM instance role:

---

## [Issue when trying to ping a windows host using Ansible](https://forum.ansible.com/t/issue-when-trying-to-ping-a-windows-host-using-ansible/23948)

<div class="topic-metadata">

**Author:** [@Alstar\_Films](https://forum.ansible.com/u/Alstar_Films)\
**Replies:** 6\
**Last updated:** [March 16, 2017, 1:12am UTC](https://forum.ansible.com/t/issue-when-trying-to-ping-a-windows-host-using-ansible/23948 "2017-03-16T01:12:25Z")

</div>

Hi Guys, This is literally my first day using Ansible and I am trying to connect to one of my windows 2012 host and using win\_ping. I have a control server using Centos. I encountered a number of issues before I got to …

---

## [Ansible 2.3.0 RC1 is available for testing](https://forum.ansible.com/t/ansible-2-3-0-rc1-is-available-for-testing/23985)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [March 15, 2017, 11:12pm UTC](https://forum.ansible.com/t/ansible-2-3-0-rc1-is-available-for-testing/23985 "2017-03-15T23:12:13Z")

</div>

(now with a subject…) We are happy to announce the availability of Ansible 2.3.0 RC1! There are many new things to try out with this release: Shared code for modules can now be placed in “module\_utils” directories lo…

---

## [Multiple SCSI Adapters - vmware\_guest or vsphere\_guest](https://forum.ansible.com/t/multiple-scsi-adapters-vmware-guest-or-vsphere-guest/23982)

<div class="topic-metadata">

**Author:** [@Adam\_Kile](https://forum.ansible.com/u/Adam_Kile)\
**Replies:** 0\
**Last updated:** [March 15, 2017, 6:22pm UTC](https://forum.ansible.com/t/multiple-scsi-adapters-vmware-guest-or-vsphere-guest/23982 "2017-03-15T18:22:37Z")

</div>

We’ve started using Ansible to automate some VM builds within some of our environments. For one of our builds, we have a VM which has about 20 disks. When using vmware\_guest, if we add all 20 disks, the task bombs with: …

---

## [Dynamic Inventory Scaling](https://forum.ansible.com/t/dynamic-inventory-scaling/23981)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 0\
**Last updated:** [March 15, 2017, 4:55pm UTC](https://forum.ansible.com/t/dynamic-inventory-scaling/23981 "2017-03-15T16:55:03Z")

</div>

We are building dynamic inventory scripts that pull both host/group info as well as variable data from our CMDB. We are in the initial phases so that data set is relatively small at the moment, but I’m worried about how …

---

## [ansible docker\_container python error](https://forum.ansible.com/t/ansible-docker-container-python-error/23980)

<div class="topic-metadata">

**Author:** [@Franck1](https://forum.ansible.com/u/Franck1)\
**Replies:** 0\
**Last updated:** [March 15, 2017, 4:29pm UTC](https://forum.ansible.com/t/ansible-docker-container-python-error/23980 "2017-03-15T16:29:29Z")

</div>

Hi, With Ansible 2.2.1.0, Python 2.7.12 i deployed docker and containers without pb for weeks using playbooks with docker\_container module now after ansible upgrade and docker engine new version i receive an error whe…

---

## [Is there a reboot module or role for RHEL 7, like win\_reboot?](https://forum.ansible.com/t/is-there-a-reboot-module-or-role-for-rhel-7-like-win-reboot/23971)

<div class="topic-metadata">

**Author:** [@Don\_Hunt](https://forum.ansible.com/u/Don_Hunt)\
**Replies:** 1\
**Last updated:** [March 15, 2017, 4:06pm UTC](https://forum.ansible.com/t/is-there-a-reboot-module-or-role-for-rhel-7-like-win-reboot/23971 "2017-03-15T16:06:42Z")

</div>

I’ve been searching, without satisfaction, for an Ansible module or role to handle a RHEL 7 reboot gracefully. I’ll begin playing with the command or shell modules to do this, but it seems that it should already exist. …

---

## [File name of the current playbook](https://forum.ansible.com/t/file-name-of-the-current-playbook/23977)

<div class="topic-metadata">

**Author:** [@aliok](https://forum.ansible.com/u/aliok)\
**Replies:** 1\
**Last updated:** [March 15, 2017, 3:57pm UTC](https://forum.ansible.com/t/file-name-of-the-current-playbook/23977 "2017-03-15T15:57:14Z")

</div>

Hello, I was looking for a way to get the file name of the current playbook. Found an old thread, but no workarounds or solutions there. https://groups.google.com/forum/#!searchin/ansible-project/playbook\_dir|sort:rel…

---

## [Ansible script relaoed the full system demaons](https://forum.ansible.com/t/ansible-script-relaoed-the-full-system-demaons/23976)

<div class="topic-metadata">

**Author:** [@Prasanth\_G](https://forum.ansible.com/u/Prasanth_G)\
**Replies:** 1\
**Last updated:** [March 15, 2017, 3:35pm UTC](https://forum.ansible.com/t/ansible-script-relaoed-the-full-system-demaons/23976 "2017-03-15T15:35:14Z")

</div>

Dear Team, there was a change happened in our environment for updating the /etc/rsyslog.conf we executed the same via ansible playbook ( the playbook will do only 2 things , it will copy the template -new updated the rs…

---

## [filters; documenting expected input and output types?](https://forum.ansible.com/t/filters-documenting-expected-input-and-output-types/23979)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 0\
**Last updated:** [March 15, 2017, 2:43pm UTC](https://forum.ansible.com/t/filters-documenting-expected-input-and-output-types/23979 "2017-03-15T14:43:54Z")

</div>

I’ve been using a lot of filters recently and wondered if anyone would find it useful if the documentation for filters showed what data types they expect and emit? I’m happy to have a go at a PR. For example, something…

---

## [Using Win-regedit module to change ie hardening](https://forum.ansible.com/t/using-win-regedit-module-to-change-ie-hardening/23754)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 3\
**Last updated:** [March 15, 2017, 2:37pm UTC](https://forum.ansible.com/t/using-win-regedit-module-to-change-ie-hardening/23754 "2017-03-15T14:37:36Z")

</div>

currently i am using power shell Set-ItemProperty 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap' -Name ‘IEHarden’ -Value ‘0’ so , i am trying this: win\_regedit: path: 'HKLM:\\SOFTWARE\\Mic…

---

## [F5 bigip\_pool\_member Module bigsuds not found](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320)

<div class="topic-metadata">

**Author:** [@Jason3](https://forum.ansible.com/u/Jason3)\
**Replies:** 5\
**Last updated:** [March 15, 2017, 2:27pm UTC](https://forum.ansible.com/t/f5-bigip-pool-member-module-bigsuds-not-found/20320 "2017-03-15T14:27:53Z")

</div>

Hello Ansible Community, Wondering if anyone familiar with this module could lend a hand. I’m attempting to use the bigip\_pool\_member module to force a node offline in an F5 LTM pool. However i’m getting the error “the …

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

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