# Archives

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

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

**Page:** 586

---

## [fetch stdout in ansible 2.0](https://forum.ansible.com/t/fetch-stdout-in-ansible-2-0/21622)

<div class="topic-metadata">

**Author:** [@Huan\_He](https://forum.ansible.com/u/Huan_He)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 1:16am UTC](https://forum.ansible.com/t/fetch-stdout-in-ansible-2-0/21622 "2016-06-01T01:16:52Z")

</div>

in ansible 1.x, we can do results = runner.run() to retrieve stdout. See https://github.com/networktocode/ntc-ansible/issues/108, I wonder it is possible in ansible 2.0 to do similar thing? I understand that it can be…

---

## [ansible unable to initiate SSH sessions to clients on OS X](https://forum.ansible.com/t/ansible-unable-to-initiate-ssh-sessions-to-clients-on-os-x/21619)

<div class="topic-metadata">

**Author:** [@Greg\_Chavez](https://forum.ansible.com/u/Greg_Chavez)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 9:23pm UTC](https://forum.ansible.com/t/ansible-unable-to-initiate-ssh-sessions-to-clients-on-os-x/21619 "2016-05-31T21:23:39Z")

</div>

Did you roughly follow the instructions here, particularly the part about installing Xcode: https://valdhaus.co/writings/ansible-mac-osx/

---

## [composer module | config command always returns changed](https://forum.ansible.com/t/composer-module-config-command-always-returns-changed/21616)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 7:41pm UTC](https://forum.ansible.com/t/composer-module-config-command-always-returns-changed/21616 "2016-05-31T19:41:21Z")

</div>

OS X 10.10.5 Python 2.7.11 Ansible 2.0.2.0 remote: Ubuntu 14.04.4 LTS remote: Python 2.7.6 remote: PHP 5.5.9 remote: Composer version 1.2-dev I notice in a play with the composer module that every invocation of c…

---

## [Ansible 1.8 ansible\_check\_mode](https://forum.ansible.com/t/ansible-1-8-ansible-check-mode/21614)

<div class="topic-metadata">

**Author:** [@anderson.goulart](https://forum.ansible.com/u/anderson.goulart)\
**Replies:** 2\
**Last updated:** [May 31, 2016, 7:40pm UTC](https://forum.ansible.com/t/ansible-1-8-ansible-check-mode/21614 "2016-05-31T19:40:47Z")

</div>

Hi, Some remote modules doesn’t support check\_mode, which means they break every time I use them on some role. I saw \[1\] that the variable ansible\_check\_mode is only available on ansible 1.9, but we are still using 1.8.…

---

## [check for FQDN](https://forum.ansible.com/t/check-for-fqdn/21615)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 7:34pm UTC](https://forum.ansible.com/t/check-for-fqdn/21615 "2016-05-31T19:34:01Z")

</div>

I need to ensure that the /etc/sysconfig/network file contains the FQDN on a good number of hosts. I think the lineinfile module would be helpful here. But I’m sure how to write the Ansible script to do so. Any advice? T…

---

## [How to loop through blockinfile?](https://forum.ansible.com/t/how-to-loop-through-blockinfile/21613)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 5:50pm UTC](https://forum.ansible.com/t/how-to-loop-through-blockinfile/21613 "2016-05-31T17:50:29Z")

</div>

I have the following task, which appears to execute successfully, but I end up with only one block (the last), while I actually want to have a block for each item entered into my file. How do I do that? task: name: co…

---

## [Prevent YAML errors with a linter](https://forum.ansible.com/t/prevent-yaml-errors-with-a-linter/21596)

<div class="topic-metadata">

**Author:** [@Adrien\_Verge](https://forum.ansible.com/u/Adrien_Verge)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 5:13pm UTC](https://forum.ansible.com/t/prevent-yaml-errors-with-a-linter/21596 "2016-05-31T17:13:07Z")

</div>

Hi all o/ Unlike Python, YAML source is not checked and some errors like key duplicates enter the code base. For example, \`wait\_timeout\` key is repeated twice at some places (with different values). I propose the use…

---

## [New Modules Report, 31-May-2016](https://forum.ansible.com/t/new-modules-report-31-may-2016/21612)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 4:41pm UTC](https://forum.ansible.com/t/new-modules-report-31-may-2016/21612 "2016-05-31T16:41:49Z")

</div>

189 modules are waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: add fleet\_facts module which gathers information about CoreOS clusters https://github.com/ansible/an…

---

## [Trouble connecting to Windows remote node via Kerberos](https://forum.ansible.com/t/trouble-connecting-to-windows-remote-node-via-kerberos/21587)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 3\
**Last updated:** [May 31, 2016, 4:01pm UTC](https://forum.ansible.com/t/trouble-connecting-to-windows-remote-node-via-kerberos/21587 "2016-05-31T16:01:22Z")

</div>

Control Node: CentOS 7 Ansible 2.1 pywinrm version from May 19th, 2016 Remote Node: Windows 7 Powershell 3 I’m able to connect to my Windows remote node just fine with the powershell setting winrm/co…

---

## [Stop tasks from executing if any task fails?](https://forum.ansible.com/t/stop-tasks-from-executing-if-any-task-fails/21608)

<div class="topic-metadata">

**Author:** [@Jahedh\_Mahmud](https://forum.ansible.com/u/Jahedh_Mahmud)\
**Replies:** 2\
**Last updated:** [May 31, 2016, 3:21pm UTC](https://forum.ansible.com/t/stop-tasks-from-executing-if-any-task-fails/21608 "2016-05-31T15:21:27Z")

</div>

Hello I’m new to Ansible and have been researching a way to stop a task from making a change if any of the tasks in the playbook fail. Is there a way to do this? my playbook has three tasks, if the install Django fails…

---

## [Ansible lost tmp dir when run script module](https://forum.ansible.com/t/ansible-lost-tmp-dir-when-run-script-module/21603)

<div class="topic-metadata">

**Author:** [@Andy3](https://forum.ansible.com/u/Andy3)\
**Replies:** 10\
**Last updated:** [May 31, 2016, 2:03pm UTC](https://forum.ansible.com/t/ansible-lost-tmp-dir-when-run-script-module/21603 "2016-05-31T14:03:24Z")

</div>

Hi experts, In our test environment, some test cases will failed due to ansible run script moudle, this is hard to reproduce, so I write a script to reproduce this issue, below is the detail a bout this bug: ANSIBLE VE…

---

## [ansible synchronize & vagrant](https://forum.ansible.com/t/ansible-synchronize-vagrant/21609)

<div class="topic-metadata">

**Author:** [@Bendt\_Alphonse](https://forum.ansible.com/u/Bendt_Alphonse)\
**Replies:** 0\
**Last updated:** [May 31, 2016, 12:52pm UTC](https://forum.ansible.com/t/ansible-synchronize-vagrant/21609 "2016-05-31T12:52:09Z")

</div>

Hi there, i am trying to ansible for provisioning of a vagrant box. It seems that the synchronize task does not work reliably. It seems that rsync targets the host machine instead of the vagrant target machine: Ansib…

---

## [Finding key in list of dicts in when](https://forum.ansible.com/t/finding-key-in-list-of-dicts-in-when/21579)

<div class="topic-metadata">

**Author:** [@Paul\_Totterman](https://forum.ansible.com/u/Paul_Totterman)\
**Replies:** 3\
**Last updated:** [May 31, 2016, 7:49am UTC](https://forum.ansible.com/t/finding-key-in-list-of-dicts-in-when/21579 "2016-05-31T07:49:51Z")

</div>

Hi, Related to the recent mount deprecation thread: command: mount /srv when: “‘/srv’ not in \[x\[‘mount’\] for x in ansible\_mounts\]” But it seems that when statement is too complex. Any ideas how to express that in a …

---

## [Keeping old Ansible PPA repo versions](https://forum.ansible.com/t/keeping-old-ansible-ppa-repo-versions/17850)

<div class="topic-metadata">

**Author:** [@Rob\_Zienert](https://forum.ansible.com/u/Rob_Zienert)\
**Replies:** 11\
**Last updated:** [May 31, 2016, 7:37am UTC](https://forum.ansible.com/t/keeping-old-ansible-ppa-repo-versions/17850 "2016-05-31T07:37:16Z")

</div>

With the regressions in 1.9.0 related to the s3 module\[0\], I think the Ansible package repos really need to keep more than the HEAD stable version in its versions list. When 1.9.0 was released yesterday, all of my compan…

---

## [Ansible vars like "Current Playbook" "Current Task"](https://forum.ansible.com/t/ansible-vars-like-current-playbook-current-task/21600)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [May 30, 2016, 6:02pm UTC](https://forum.ansible.com/t/ansible-vars-like-current-playbook-current-task/21600 "2016-05-30T18:02:15Z")

</div>

Does Ansible keep track of a “current playbook name” or “current task name” as a variable? I want to build a custom email role which playbooks/tasks can invoke. This email function would print out the playbook name lik…

---

## [How ansible handle ini config file](https://forum.ansible.com/t/how-ansible-handle-ini-config-file/21606)

<div class="topic-metadata">

**Author:** [@Gang\_Xu](https://forum.ansible.com/u/Gang_Xu)\
**Replies:** 0\
**Last updated:** [May 30, 2016, 1:32pm UTC](https://forum.ansible.com/t/how-ansible-handle-ini-config-file/21606 "2016-05-30T13:32:45Z")

</div>

I have many ini format config files, below is template \[DEFAULT\] bbb=bbbbb \[CONNECTION\] ddd=ddddd I have below ansible playbooks segment name: Setup ini config file ini\_file: dest=/etc/test.conf section={{ item.0 …

---

## [openSUSE Leap: Installing rsyslog with zypper module](https://forum.ansible.com/t/opensuse-leap-installing-rsyslog-with-zypper-module/21527)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 3\
**Last updated:** [May 30, 2016, 12:49pm UTC](https://forum.ansible.com/t/opensuse-leap-installing-rsyslog-with-zypper-module/21527 "2016-05-30T12:49:03Z")

</div>

Dear all, does the zypper module combine all calls made with with\_items into on single command like the yum module does? I guess not... Target Host is a VM with openSUSE Leap 42.1 I want to install rsyslog, which con…

---

## [role dependencies - path to parent role's templates folder](https://forum.ansible.com/t/role-dependencies-path-to-parent-roles-templates-folder/21565)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 3\
**Last updated:** [May 30, 2016, 12:38pm UTC](https://forum.ansible.com/t/role-dependencies-path-to-parent-roles-templates-folder/21565 "2016-05-30T12:38:10Z")

</div>

I am deploying multiple web applications that all have 4 tasks in common: \` name: copy nginx conf template: src=nginx.conf dest=/etc/nginx/{{ inventory\_hostname }}.conf enable nginx conf file: state=link … …

---

## [How to pass variables into modules in Ansible](https://forum.ansible.com/t/how-to-pass-variables-into-modules-in-ansible/21594)

<div class="topic-metadata">

**Author:** [@ZaVaZaVa](https://forum.ansible.com/u/ZaVaZaVa)\
**Replies:** 2\
**Last updated:** [May 30, 2016, 2:49am UTC](https://forum.ansible.com/t/how-to-pass-variables-into-modules-in-ansible/21594 "2016-05-30T02:49:48Z")

</div>

Hello I am new into ansible and I would appreciate some help here… I am working on a new Project to automatic our Infrastructure Network Deployment and Configuration. Question: How do I pass parameters to a YML file o…

---

## [Is there a way to register a variable with a hash key?](https://forum.ansible.com/t/is-there-a-way-to-register-a-variable-with-a-hash-key/21601)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 0\
**Last updated:** [May 29, 2016, 11:46pm UTC](https://forum.ansible.com/t/is-there-a-way-to-register-a-variable-with-a-hash-key/21601 "2016-05-29T23:46:44Z")

</div>

Hello, I run a command via looping in a “with\_items” and registering the output into a hash with the item as a key. However when I do this, I am having difficulty referencing the specific results when I try and key on …

---

## [Use "register" local to a playbook (or unset a variable)](https://forum.ansible.com/t/use-register-local-to-a-playbook-or-unset-a-variable/21597)

<div class="topic-metadata">

**Author:** [@Serdyn\_du\_Toit](https://forum.ansible.com/u/Serdyn_du_Toit)\
**Replies:** 1\
**Last updated:** [May 29, 2016, 9:05pm UTC](https://forum.ansible.com/t/use-register-local-to-a-playbook-or-unset-a-variable/21597 "2016-05-29T21:05:22Z")

</div>

Hi, How can I “register” a variable in a playbook - but in a way that it will no longer be set in subsequent playbooks that get executed. It seems that if I declare the variable at the top of the playbook, as in this e…

---

## [Assigning Groups Based on Dynamic Inventory Source](https://forum.ansible.com/t/assigning-groups-based-on-dynamic-inventory-source/21599)

<div class="topic-metadata">

**Author:** [@Daniel\_Rozeboom](https://forum.ansible.com/u/Daniel_Rozeboom)\
**Replies:** 0\
**Last updated:** [May 29, 2016, 8:37pm UTC](https://forum.ansible.com/t/assigning-groups-based-on-dynamic-inventory-source/21599 "2016-05-29T20:37:28Z")

</div>

Hi all, I’m new to Ansible, so please forgive me if this is a silly question. I’m working on loading inventory from multiple sources, one of which is dynamic using the DigitalOcean inventory script. I am able to success…

---

## [How to generate a group of ip list by referencing a variable in play books?](https://forum.ansible.com/t/how-to-generate-a-group-of-ip-list-by-referencing-a-variable-in-play-books/21519)

<div class="topic-metadata">

**Author:** [@Sicheng\_Tang](https://forum.ansible.com/u/Sicheng_Tang)\
**Replies:** 1\
**Last updated:** [May 29, 2016, 7:39pm UTC](https://forum.ansible.com/t/how-to-generate-a-group-of-ip-list-by-referencing-a-variable-in-play-books/21519 "2016-05-29T19:39:06Z")

</div>

Hi all: I have a group of host whose IPs are 10.129.51.158,10.129.50.235,10.129.50.232 and I will define them as variable, like this ip = 10.129.51.158,10.129.50.235,10.129.50.232 Is there any way to generate a play b…

---

## [AWS / RDS environment variables disagree in docs](https://forum.ansible.com/t/aws-rds-environment-variables-disagree-in-docs/21593)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 0\
**Last updated:** [May 28, 2016, 11:02pm UTC](https://forum.ansible.com/t/aws-rds-environment-variables-disagree-in-docs/21593 "2016-05-28T23:02:48Z")

</div>

From http://docs.ansible.com/ansible/guide\_aws.html: Authentication with the AWS-related modules is handled by either specifying your access and secret key as ENV variables or module arguments. For environment vari…

---

## [Grouping modules by purpose](https://forum.ansible.com/t/grouping-modules-by-purpose/21215)

<div class="topic-metadata">

**Author:** [@Azer\_Huseyin](https://forum.ansible.com/u/Azer_Huseyin)\
**Replies:** 1\
**Last updated:** [May 28, 2016, 12:00pm UTC](https://forum.ansible.com/t/grouping-modules-by-purpose/21215 "2016-05-28T12:00:18Z")

</div>

Hi , I am investigating ansible to automate our system configuration/management tasks currently performed using mostly shell scripts. We mostly definitely will have to write custom modules, but I noticed that ansible do…

---

## [rds module doesn't support/allow Boto config file?](https://forum.ansible.com/t/rds-module-doesnt-support-allow-boto-config-file/21591)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 1\
**Last updated:** [May 28, 2016, 6:14am UTC](https://forum.ansible.com/t/rds-module-doesnt-support-allow-boto-config-file/21591 "2016-05-28T06:14:41Z")

</div>

Attempting to provision an AWS RDS instance using http://docs.ansible.com/ansible/rds\_module.html. The module indicates that it requires boto, which itself can read configuration data from a number of paths including …

---

## [ansible-pull only does "git pull" on first run, then uses same revision forever](https://forum.ansible.com/t/ansible-pull-only-does-git-pull-on-first-run-then-uses-same-revision-forever/21589)

<div class="topic-metadata">

**Author:** [@david.stelter](https://forum.ansible.com/u/david.stelter)\
**Replies:** 0\
**Last updated:** [May 27, 2016, 10:48pm UTC](https://forum.ansible.com/t/ansible-pull-only-does-git-pull-on-first-run-then-uses-same-revision-forever/21589 "2016-05-27T22:48:42Z")

</div>

I’m finding that the first ansible-pull run works perfect, but if I run it again after the initial run to get updates it continues to use the same revision. I’m working around it by using the --purge flag, but I think th…

---

## [Best practices on deploying several java applications over several tomcat containers with haproxy load balancing and varnish cache](https://forum.ansible.com/t/best-practices-on-deploying-several-java-applications-over-several-tomcat-containers-with-haproxy-load-balancing-and-varnish-cache/21588)

<div class="topic-metadata">

**Author:** [@Raoni\_Castro](https://forum.ansible.com/u/Raoni_Castro)\
**Replies:** 0\
**Last updated:** [May 27, 2016, 10:03pm UTC](https://forum.ansible.com/t/best-practices-on-deploying-several-java-applications-over-several-tomcat-containers-with-haproxy-load-balancing-and-varnish-cache/21588 "2016-05-27T22:03:44Z")

</div>

Hi All, I’m new to this list and to ansible as well, so I’d like to apologize beforehand if the question is malformed or if it should be asked in another place. Any help is greatly appreciated. We use the following ar…

---

## [Rebooting and waiting](https://forum.ansible.com/t/rebooting-and-waiting/21583)

<div class="topic-metadata">

**Author:** [@Francisco\_Lopes](https://forum.ansible.com/u/Francisco_Lopes)\
**Replies:** 9\
**Last updated:** [May 27, 2016, 8:08pm UTC](https://forum.ansible.com/t/rebooting-and-waiting/21583 "2016-05-27T20:08:06Z")

</div>

Hello, How do I execute a reboot (if needed on Ubuntu) and wait for it to return instead of getting the unreachable error? I’m currently trying to do this based on past posts and links I found:

---

## [add\_host module not adding multiple hosts](https://forum.ansible.com/t/add-host-module-not-adding-multiple-hosts/21526)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 10\
**Last updated:** [May 27, 2016, 5:49pm UTC](https://forum.ansible.com/t/add-host-module-not-adding-multiple-hosts/21526 "2016-05-27T17:49:09Z")

</div>

ansible ver=2.0.2 When I’m trying to add more than one host to a group its only adding the first one in the list. Here is my task to add hosts: name: Add hosts group temporary inventory group add\_host: name={{ item.p…

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

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