# Latest

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

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

**Page:** 753

---

## ["when" condition in handler is not honored](https://forum.ansible.com/t/when-condition-in-handler-is-not-honored/21771)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 0\
**Last updated:** [June 14, 2016, 2:41pm UTC](https://forum.ansible.com/t/when-condition-in-handler-is-not-honored/21771 "2016-06-14T14:41:55Z")

</div>

Hi! I have a "when: condition that works fine in “regular” tasks, but not in a handler . . . is that expected? So I’m using a notify, then at the end of the handler task I have a when condition. The notification works,…

---

## [Migrating to Ansible v2.0 API --\> What is this Options namedtuple?](https://forum.ansible.com/t/migrating-to-ansible-v2-0-api-what-is-this-options-namedtuple/21755)

<div class="topic-metadata">

**Author:** [@Fran\_Fitzpatrick](https://forum.ansible.com/u/Fran_Fitzpatrick)\
**Replies:** 4\
**Last updated:** [June 14, 2016, 2:11pm UTC](https://forum.ansible.com/t/migrating-to-ansible-v2-0-api-what-is-this-options-namedtuple/21755 "2016-06-14T14:11:29Z")

</div>

Hi all, We’re currently upgrading our system to the new Ansible v2.x API and while I understand that the API is not officially supported, I’m trying to understand how to use the options named tuple that appears to be po…

---

## [mail using ansible](https://forum.ansible.com/t/mail-using-ansible/21768)

<div class="topic-metadata">

**Author:** [@Abhishek\_Bandari](https://forum.ansible.com/u/Abhishek_Bandari)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 1:46pm UTC](https://forum.ansible.com/t/mail-using-ansible/21768 "2016-06-14T13:46:51Z")

</div>

email.yml

---

## [using pam\_limits module in Ansible 2.1 errors](https://forum.ansible.com/t/using-pam-limits-module-in-ansible-2-1-errors/21763)

<div class="topic-metadata">

**Author:** [@Fong\_Yang](https://forum.ansible.com/u/Fong_Yang)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 1:31pm UTC](https://forum.ansible.com/t/using-pam-limits-module-in-ansible-2-1-errors/21763 "2016-06-14T13:31:46Z")

</div>

I’m attempting to use the pam\_limits module as included in Ansible 2.1 but getting this error: TASK \[system\_configs : pam\_limits\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[10.0.107.1\]: FAILED! =\> {“failed”:…

---

## [Display username in a SUDO prompt](https://forum.ansible.com/t/display-username-in-a-sudo-prompt/21770)

<div class="topic-metadata">

**Author:** [@Anton\_Ovchinnikov](https://forum.ansible.com/u/Anton_Ovchinnikov)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 1:12pm UTC](https://forum.ansible.com/t/display-username-in-a-sudo-prompt/21770 "2016-06-14T13:12:50Z")

</div>

When asking for ‘become’ password, it would be convenient to display a username for which the password will be user later. Imagine you have several machines (or groups of machines), on each of those there might be diffe…

---

## [Question about using the expect module](https://forum.ansible.com/t/question-about-using-the-expect-module/21753)

<div class="topic-metadata">

**Author:** [@Sher\_Chowdhury](https://forum.ansible.com/u/Sher_Chowdhury)\
**Replies:** 2\
**Last updated:** [June 14, 2016, 10:13am UTC](https://forum.ansible.com/t/question-about-using-the-expect-module/21753 "2016-06-14T10:13:00Z")

</div>

I have an interactive command that prompts me enter a series of letters, b, d, and y. I was wondering if it is possible to run something like this: - expect: command: /path/to/custom/command responses: -…

---

## [Connecting to localhost and 127.0.0.1](https://forum.ansible.com/t/connecting-to-localhost-and-127-0-0-1/21762)

<div class="topic-metadata">

**Author:** [@Dana\_Christo](https://forum.ansible.com/u/Dana_Christo)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 5:33am UTC](https://forum.ansible.com/t/connecting-to-localhost-and-127-0-0-1/21762 "2016-06-14T05:33:35Z")

</div>

When trying to run a playbook without specifying -i “localhost,” -c local I get that the host is unreachable, even though I specify the localhost in my /etc/ansible/hosts file: Is there something I’m missing in the ho…

---

## [Ansible Tower - updating ansible](https://forum.ansible.com/t/ansible-tower-updating-ansible/21766)

<div class="topic-metadata">

**Author:** [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Replies:** 0\
**Last updated:** [June 14, 2016, 5:28am UTC](https://forum.ansible.com/t/ansible-tower-updating-ansible/21766 "2016-06-14T05:28:45Z")

</div>

Hello, I have a question, about Ansible Tower. Is it feasible to update Ansible from 2.0 to 2.1 on an Ansible Tower setup? thanks Peter

---

## [Restart Ansible playbook execution after updating from source code control system](https://forum.ansible.com/t/restart-ansible-playbook-execution-after-updating-from-source-code-control-system/21764)

<div class="topic-metadata">

**Author:** [@Fong\_Yang](https://forum.ansible.com/u/Fong_Yang)\
**Replies:** 0\
**Last updated:** [June 13, 2016, 11:57pm UTC](https://forum.ansible.com/t/restart-ansible-playbook-execution-after-updating-from-source-code-control-system/21764 "2016-06-13T23:57:07Z")

</div>

Does Ansible support tasks that updates the playbooks from another server or via source code control system then run those playbooks? Or do you have to do this outside of Ansible then run Ansible on those updated playboo…

---

## [Problem with zfs module on SmartOS?](https://forum.ansible.com/t/problem-with-zfs-module-on-smartos/21760)

<div class="topic-metadata">

**Author:** [@Don\_Jackson](https://forum.ansible.com/u/Don_Jackson)\
**Replies:** 1\
**Last updated:** [June 13, 2016, 8:15pm UTC](https://forum.ansible.com/t/problem-with-zfs-module-on-smartos/21760 "2016-06-13T20:15:05Z")

</div>

Over the past month or so, the following task has consistently failed for me, because the specified dataset already exists: name: Create zfs datasets zfs: name: zones/images state: present become: true The failure…

---

## [newbie nagios client deployment problem](https://forum.ansible.com/t/newbie-nagios-client-deployment-problem/21756)

<div class="topic-metadata">

**Author:** [@Thomas\_Steele](https://forum.ansible.com/u/Thomas_Steele)\
**Replies:** 2\
**Last updated:** [June 13, 2016, 6:54pm UTC](https://forum.ansible.com/t/newbie-nagios-client-deployment-problem/21756 "2016-06-13T18:54:48Z")

</div>

I’m trying to get a playbook that will download, untar, configure and make nagios client on a rhel7 server. So far the download and untar are working perfectly, but the configure and make commands are not running properl…

---

## [Ansible paybook not doing anything despite saying "succesful"](https://forum.ansible.com/t/ansible-paybook-not-doing-anything-despite-saying-succesful/21754)

<div class="topic-metadata">

**Author:** [@G\_Stewart](https://forum.ansible.com/u/G_Stewart)\
**Replies:** 1\
**Last updated:** [June 13, 2016, 5:59pm UTC](https://forum.ansible.com/t/ansible-paybook-not-doing-anything-despite-saying-succesful/21754 "2016-06-13T17:59:12Z")

</div>

I have been trying to create a playbook to modify system config files–in this case, postifx configs–and, to restart the postfix service when done. While I’ve gotten the script to run without errors (I think), despit the …

---

## [script module fails](https://forum.ansible.com/t/script-module-fails/21752)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 4\
**Last updated:** [June 13, 2016, 5:47pm UTC](https://forum.ansible.com/t/script-module-fails/21752 "2016-06-13T17:47:01Z")

</div>

Hi all, I have a role where the file “configure\_disks.ps1” is placed in folder “files”. From the role task I’m trying to run the “script” module using that file: name: Configure data disk storage pool script: free\_…

---

## [Conditional check failed](https://forum.ansible.com/t/conditional-check-failed/21749)

<div class="topic-metadata">

**Author:** [@plat00n](https://forum.ansible.com/u/plat00n)\
**Replies:** 2\
**Last updated:** [June 13, 2016, 3:06pm UTC](https://forum.ansible.com/t/conditional-check-failed/21749 "2016-06-13T15:06:42Z")

</div>

Hello, I’m posting here because bcoca told me do that ! ( I have already opened a ticket but bcoca has closed it \>\> LINK HERE \<\< ) I hope someone will help me :slight\_smile: Thanks ANSIBLE VERSION ansible 2.1.0.0 OS …

---

## [Is it possible to generate Inventory from CMDB (Configuration Management Database)](https://forum.ansible.com/t/is-it-possible-to-generate-inventory-from-cmdb-configuration-management-database/21751)

<div class="topic-metadata">

**Author:** [@Raghava\_Krishna](https://forum.ansible.com/u/Raghava_Krishna)\
**Replies:** 1\
**Last updated:** [June 13, 2016, 2:41pm UTC](https://forum.ansible.com/t/is-it-possible-to-generate-inventory-from-cmdb-configuration-management-database/21751 "2016-06-13T14:41:23Z")

</div>

I’am planning to generate dynamic inventory file from configuration management database system instead of writing in files. Is it possible to write a script,so that when i run ansible playbook it should pick up inven…

---

## [Need help copying file from specific host to all targets](https://forum.ansible.com/t/need-help-copying-file-from-specific-host-to-all-targets/21674)

<div class="topic-metadata">

**Author:** [@Gordon\_Cooke](https://forum.ansible.com/u/Gordon_Cooke)\
**Replies:** 9\
**Last updated:** [June 13, 2016, 1:53pm UTC](https://forum.ansible.com/t/need-help-copying-file-from-specific-host-to-all-targets/21674 "2016-06-13T13:53:41Z")

</div>

I am trying to figure out how to copy a cert file generated on a specific host (ca-server) to the list of hosts defined in the playbook. The scenario is something like this: using delegate\_to go to the ca-server and ge…

---

## [Ansible Tower: error running Apache Ant.exe command](https://forum.ansible.com/t/ansible-tower-error-running-apache-ant-exe-command/21661)

<div class="topic-metadata">

**Author:** [@JeffElep](https://forum.ansible.com/u/JeffElep)\
**Replies:** 5\
**Last updated:** [June 13, 2016, 1:06pm UTC](https://forum.ansible.com/t/ansible-tower-error-running-apache-ant-exe-command/21661 "2016-06-13T13:06:29Z")

</div>

we are currently running Ansible Tower 2.1 target is Windows Server 2012 with SP2 \\ running WinRM 3.0 in a playbook i have the following task name: string text togeter raw: cmd /c ant -buildfile deploy.xml stop-srvc…

---

## [Task execution for host within multiple host groups and different aliases](https://forum.ansible.com/t/task-execution-for-host-within-multiple-host-groups-and-different-aliases/21750)

<div class="topic-metadata">

**Author:** [@Thms\_Hmm](https://forum.ansible.com/u/Thms_Hmm)\
**Replies:** 0\
**Last updated:** [June 13, 2016, 8:13am UTC](https://forum.ansible.com/t/task-execution-for-host-within-multiple-host-groups-and-different-aliases/21750 "2016-06-13T08:13:54Z")

</div>

I’m struggling with hosts that belong to multiple host groups and have different aliases. The problem i’m facing is, that if i try to execute a task on group “all\_hosts” where each group belongs to, the task is executed …

---

## [creating users - how to filter a vars dict from within a given playbook per inventory class](https://forum.ansible.com/t/creating-users-how-to-filter-a-vars-dict-from-within-a-given-playbook-per-inventory-class/21748)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 2\
**Last updated:** [June 12, 2016, 10:45pm UTC](https://forum.ansible.com/t/creating-users-how-to-filter-a-vars-dict-from-within-a-given-playbook-per-inventory-class/21748 "2016-06-12T22:45:30Z")

</div>

Hi folks, I have a presumably typical setup - see end for the yaml files. - a generic role to create users - a vars file with all the users across my environment Which works fine if I want all users on every box. Ho…

---

## [ansible stdout](https://forum.ansible.com/t/ansible-stdout/21743)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [June 12, 2016, 6:18pm UTC](https://forum.ansible.com/t/ansible-stdout/21743 "2016-06-12T18:18:54Z")

</div>

Is there a way to extract stdout variables from Ansible? Here is my script: hosts: myhost sudo: yes tasks: name: output bash command: rpm -q bash register: result debug: msg=“{{ result.stderr }}” Here is…

---

## [Agentless architecture in Ansible](https://forum.ansible.com/t/agentless-architecture-in-ansible/21730)

<div class="topic-metadata">

**Author:** [@Kaushal\_Shriyan](https://forum.ansible.com/u/Kaushal_Shriyan)\
**Replies:** 4\
**Last updated:** [June 12, 2016, 4:05pm UTC](https://forum.ansible.com/t/agentless-architecture-in-ansible/21730 "2016-06-12T16:05:32Z")

</div>

Hi, I am new to Ansible. I am not sure what is agent less in Ansible and how is it advantageous over agent based? I also read the whitepaper https://www.ansible.com/benefits-of-agentless-architecture and still have not …

---

## [IPv6 filter broken in ansible 2.x - light at the end of the tunnel?](https://forum.ansible.com/t/ipv6-filter-broken-in-ansible-2-x-light-at-the-end-of-the-tunnel/21746)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [June 12, 2016, 1:11pm UTC](https://forum.ansible.com/t/ipv6-filter-broken-in-ansible-2-x-light-at-the-end-of-the-tunnel/21746 "2016-06-12T13:11:25Z")

</div>

Hi, a bit over 3 months ago I reported a regression in ansible 2.x \[1\] that prevents me from migrating my role \[2\] to ansible 2.x. On 2016-03-17 James Cammarata labeled the issue 'in progress', but since then nothing…

---

## [Ansible error when running yml file for network switch](https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745)

<div class="topic-metadata">

**Author:** [@ansnewbie2016](https://forum.ansible.com/u/ansnewbie2016)\
**Replies:** 0\
**Last updated:** [June 12, 2016, 4:40am UTC](https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745 "2016-06-12T04:40:52Z")

</div>

Hi, I am relatively new to Ansible and exploring the feature as best as I can. I am trying to build the Nexus 9000 series switch config based off the following website: https://pynet.twb-tech.com/blog/ansible/ansible-c…

---

## [urgent, please help: any way to get ansible to work over an unstable connection?](https://forum.ansible.com/t/urgent-please-help-any-way-to-get-ansible-to-work-over-an-unstable-connection/21359)

<div class="topic-metadata">

**Author:** [@nrser](https://forum.ansible.com/u/nrser)\
**Replies:** 7\
**Last updated:** [June 11, 2016, 11:37am UTC](https://forum.ansible.com/t/urgent-please-help-any-way-to-get-ansible-to-work-over-an-unstable-connection/21359 "2016-06-11T11:37:45Z")

</div>

this is preventing me from deploying so it’s kind of a serious and time-sensitive issue… i’m in China and the internet connection out of the country (to where our servers are) is unstable. i’ve been trying to run a pla…

---

## [which rpm version??](https://forum.ansible.com/t/which-rpm-version/21740)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [June 11, 2016, 8:17am UTC](https://forum.ansible.com/t/which-rpm-version/21740 "2016-06-11T08:17:32Z")

</div>

I’m trying to write an ansible script to tell me which version of bash RPM a host is running. Here is what I have so far: \[root@ansi playbooks\]$ more which\_bash.yml

---

## [New to Ansinble](https://forum.ansible.com/t/new-to-ansinble/21729)

<div class="topic-metadata">

**Author:** [@suneel\_mallela](https://forum.ansible.com/u/suneel_mallela)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 10:02pm UTC](https://forum.ansible.com/t/new-to-ansinble/21729 "2016-06-10T22:02:27Z")

</div>

Hello Ansibles, I am very much interested to learn Ansible and very new to auto configuration and management (CICD). Where can I start to understand and learn these tools (Automation tools). I have working experience i…

---

## [multiple env's + combine dynamic and static inventory + same group\_vars/host\_vars](https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739)

<div class="topic-metadata">

**Author:** [@Bert](https://forum.ansible.com/u/Bert)\
**Replies:** 0\
**Last updated:** [June 10, 2016, 9:58pm UTC](https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739 "2016-06-10T21:58:03Z")

</div>

Hi, I have the following inventory structure: inventory ├── development ├── group\_vars │ └── all │ └── group ├── host\_vars │ ├── host └── production ├── gce.py └── production # static hosts So the development…

---

## [Ansible-2.1.0 - "connection=local" does not work](https://forum.ansible.com/t/ansible-2-1-0-connection-local-does-not-work/21731)

<div class="topic-metadata">

**Author:** [@Cuong\_Nguyen](https://forum.ansible.com/u/Cuong_Nguyen)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 8:01pm UTC](https://forum.ansible.com/t/ansible-2-1-0-connection-local-does-not-work/21731 "2016-06-10T20:01:53Z")

</div>

Hi all, I am using Ansible 2.1.0 on Ubuntu. I’m trying to use “ios\_command” to execute command on Cisco router. In playbook, I set connection to local (connection=local). However, when run ansible-playbook, ansible sti…

---

## [Ansible Logs for Different Host/Client/Server](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711)

<div class="topic-metadata">

**Author:** [@Dominique\_Adam\_Igles](https://forum.ansible.com/u/Dominique_Adam_Igles)\
**Replies:** 1\
**Last updated:** [June 10, 2016, 7:40pm UTC](https://forum.ansible.com/t/ansible-logs-for-different-host-client-server/21711 "2016-06-10T19:40:11Z")

</div>

Hi. I would like to ask if there is a work around in ansible logs. What i want is that in every server that i manage with ansible, there is a separate log for each of server. Ex. Ansible Server , Server A, Server B a…

---

## [Jenkins-\>Ansible(Proxy)-\>Remote Ansible](https://forum.ansible.com/t/jenkins-ansible-proxy-remote-ansible/21738)

<div class="topic-metadata">

**Author:** [@mhh](https://forum.ansible.com/u/mhh)\
**Replies:** 0\
**Last updated:** [June 10, 2016, 7:08pm UTC](https://forum.ansible.com/t/jenkins-ansible-proxy-remote-ansible/21738 "2016-06-10T19:08:40Z")

</div>

Hello, I want to know if is possible to use Ansible as a Proxy. I have a deploy job (jenkins), which is triggered right after build job, but in this job i want to trigger ansible to run playbook. There are some security …

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

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