# Latest

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

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

**Page:** 752

---

## [Ansible 2.1.1 RC1 is ready for testing](https://forum.ansible.com/t/ansible-2-1-1-rc1-is-ready-for-testing/21803)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [June 17, 2016, 8:35pm UTC](https://forum.ansible.com/t/ansible-2-1-1-rc1-is-ready-for-testing/21803 "2016-06-17T20:35:22Z")

</div>

Hi all, we’re happy to announce that RC1 for 2.1.1 is now available for testing. This release candidate fixes many bugs, including (but not limited to): Fixed some bugs in variable dependency resolution. These were ma…

---

## [Ansible “msg”: “Failed to find required executable pvs”](https://forum.ansible.com/t/ansible-msg-failed-to-find-required-executable-pvs/21798)

<div class="topic-metadata">

**Author:** [@Tim\_Daley](https://forum.ansible.com/u/Tim_Daley)\
**Replies:** 2\
**Last updated:** [June 17, 2016, 8:17pm UTC](https://forum.ansible.com/t/ansible-msg-failed-to-find-required-executable-pvs/21798 "2016-06-17T20:17:12Z")

</div>

I’m using the following in Ansible 2.1 on OSX and getting the subject message: lvg: vg=vgname pvs=pvname state=present Bug? or what am I doing wrong. This syntax was working OK with ansible 1.9.1

---

## [module\_set\_locale default changed for 2.2 -- module authors need to set environment variables when screenscraping output](https://forum.ansible.com/t/module-set-locale-default-changed-for-2-2-module-authors-need-to-set-environment-variables-when-screenscraping-output/21802)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 0\
**Last updated:** [June 17, 2016, 4:55pm UTC](https://forum.ansible.com/t/module-set-locale-default-changed-for-2-2-module-authors-need-to-set-environment-variables-when-screenscraping-output/21802 "2016-06-17T16:55:45Z")

</div>

Greetings all, For 2.2 we’re making a change to when Ansible sets the LC\_ALL and LANG environment variablesfor running modules. Here’s what that means for you: Executive summary for users: If you notice Ansible module…

---

## [vsphere\_guest module and how to configure static IP](https://forum.ansible.com/t/vsphere-guest-module-and-how-to-configure-static-ip/21758)

<div class="topic-metadata">

**Author:** [@Jeff\_Richards](https://forum.ansible.com/u/Jeff_Richards)\
**Replies:** 10\
**Last updated:** [June 17, 2016, 4:55pm UTC](https://forum.ansible.com/t/vsphere-guest-module-and-how-to-configure-static-ip/21758 "2016-06-17T16:55:07Z")

</div>

I want to use the vSphere\_guest module to stand up a bunch of VMware VMs. But I don’t see a way to configure static IP. There are a few ways of making this happen, all involving the writing of custom code. Is there real…

---

## [MODULE FAILURE - Error in unarchive module (don't unarchive if file already exists)](https://forum.ansible.com/t/module-failure-error-in-unarchive-module-dont-unarchive-if-file-already-exists/21801)

<div class="topic-metadata">

**Author:** [@Jason\_Bornhoft](https://forum.ansible.com/u/Jason_Bornhoft)\
**Replies:** 0\
**Last updated:** [June 17, 2016, 4:06pm UTC](https://forum.ansible.com/t/module-failure-error-in-unarchive-module-dont-unarchive-if-file-already-exists/21801 "2016-06-17T16:06:04Z")

</div>

I’m running the following with the intention of unarchiving a zip if the target file doesn’t exist while not running it if it does exist: name: Install Consul unarchive: creates=no copy=no src=/tmp/{{ consul…

---

## [Newbie and seeing error on running yaml file to create switch config](https://forum.ansible.com/t/newbie-and-seeing-error-on-running-yaml-file-to-create-switch-config/21744)

<div class="topic-metadata">

**Author:** [@ansnewbie2016](https://forum.ansible.com/u/ansnewbie2016)\
**Replies:** 5\
**Last updated:** [June 17, 2016, 2:17pm UTC](https://forum.ansible.com/t/newbie-and-seeing-error-on-running-yaml-file-to-create-switch-config/21744 "2016-06-17T14:17:33Z")

</div>

Hi , I am a newbie to the ansible world and struggling with some errors I am trying to create switch configs based on the following url: https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template.html Whenever, I am…

---

## [Running local play with winrm config](https://forum.ansible.com/t/running-local-play-with-winrm-config/21791)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 3\
**Last updated:** [June 17, 2016, 1:41pm UTC](https://forum.ansible.com/t/running-local-play-with-winrm-config/21791 "2016-06-17T13:41:20Z")

</div>

Hi I am having issues trying to create a play that will setup a Windows EC2 instance and then install software once it is up. For linux instances I do the following to create a new instance on the localhost and then run…

---

## [Ansible support for pmrun in become\_method](https://forum.ansible.com/t/ansible-support-for-pmrun-in-become-method/21497)

<div class="topic-metadata">

**Author:** [@Taeho\_Kgil](https://forum.ansible.com/u/Taeho_Kgil)\
**Replies:** 2\
**Last updated:** [June 17, 2016, 4:42am UTC](https://forum.ansible.com/t/ansible-support-for-pmrun-in-become-method/21497 "2016-06-17T04:42:46Z")

</div>

Hi, Is there a plan to support pmrun options in the become\_method for Ansible? Thanks

---

## [secrets and remote sites](https://forum.ansible.com/t/secrets-and-remote-sites/21794)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [June 16, 2016, 5:05pm UTC](https://forum.ansible.com/t/secrets-and-remote-sites/21794 "2016-06-16T17:05:29Z")

</div>

If you want to keep secrets, and work on a mostly remote site, it seems you have a couple options. encrypt the vault with gpg and run from your (hopefully) safe laptop and hope the connection is good run it in tmux at …

---

## [Having issues with Expect: module](https://forum.ansible.com/t/having-issues-with-expect-module/20308)

<div class="topic-metadata">

**Author:** [@Byron\_Kim](https://forum.ansible.com/u/Byron_Kim)\
**Replies:** 4\
**Last updated:** [June 16, 2016, 1:08pm UTC](https://forum.ansible.com/t/having-issues-with-expect-module/20308 "2016-06-16T13:08:09Z")

</div>

I can’t seem to find much documentation or uses of this module. I tried reading up on pexpect documentation however, i’m unable to find my answer. I’m having ansible run a script and then there are prompts that need to …

---

## [Tomcat service stops fine and fails to start. Ansible shows success for both.](https://forum.ansible.com/t/tomcat-service-stops-fine-and-fails-to-start-ansible-shows-success-for-both/21790)

<div class="topic-metadata">

**Author:** [@Kannan\_AnandaKrishna](https://forum.ansible.com/u/Kannan_AnandaKrishna)\
**Replies:** 0\
**Last updated:** [June 16, 2016, 11:15am UTC](https://forum.ansible.com/t/tomcat-service-stops-fine-and-fails-to-start-ansible-shows-success-for-both/21790 "2016-06-16T11:15:11Z")

</div>

Hello, I’m using Ansible in our environment to restart glassfish applications, services etc., Currently I’m facing curious issue on restarting tomcat service in our servers. Whenever I execute the stop script, the tom…

---

## [Nested varibbles and defined](https://forum.ansible.com/t/nested-varibbles-and-defined/21721)

<div class="topic-metadata">

**Author:** [@Pedro\_Barbosa](https://forum.ansible.com/u/Pedro_Barbosa)\
**Replies:** 1\
**Last updated:** [June 15, 2016, 11:29pm UTC](https://forum.ansible.com/t/nested-varibbles-and-defined/21721 "2016-06-15T23:29:30Z")

</div>

Hi. Right now defined only works with up-to-second-last defined variables. That is, if var1 exists as a map but var1.var2 doesn’t, this works and will print DEFAULTED: var1.var2 | default('DEFAULTED'). But for the same v…

---

## [Ansible 2.1 not logging commands](https://forum.ansible.com/t/ansible-2-1-not-logging-commands/21786)

<div class="topic-metadata">

**Author:** [@John\_G](https://forum.ansible.com/u/John_G)\
**Replies:** 0\
**Last updated:** [June 15, 2016, 5:58pm UTC](https://forum.ansible.com/t/ansible-2-1-not-logging-commands/21786 "2016-06-15T17:58:36Z")

</div>

Hi, With Ansible 2.1 the commands are not being logged to the ansible.log file. With ansible 1.9.4 the commands are logged. Is there a setting or a callback plugin to check? System with ansible 1.9.4, rpm ansible-1.9.4…

---

## [More Ansible Tower - create an inventory group](https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767)

<div class="topic-metadata">

**Author:** [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Replies:** 2\
**Last updated:** [June 15, 2016, 4:49pm UTC](https://forum.ansible.com/t/more-ansible-tower-create-an-inventory-group/21767 "2016-06-15T16:49:36Z")

</div>

Hello, Is there a way to create a new inventory group other than through the UI? thanks Peter

---

## [Ansible 2.1 failing on pam\_limits module](https://forum.ansible.com/t/ansible-2-1-failing-on-pam-limits-module/21706)

<div class="topic-metadata">

**Author:** [@Fong\_Yang](https://forum.ansible.com/u/Fong_Yang)\
**Replies:** 1\
**Last updated:** [June 15, 2016, 4:09pm UTC](https://forum.ansible.com/t/ansible-2-1-failing-on-pam-limits-module/21706 "2016-06-15T16:09:55Z")

</div>

I’m getting errors with pam\_limits on the latest Ansible 2.1: TASK \[system\_configs : pam\_limits\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[10.1.107.1\]: FAILED! =\> {“failed”: true, “msg”: “module (pam\_limit…

---

## [Conditional variables](https://forum.ansible.com/t/conditional-variables/21780)

<div class="topic-metadata">

**Author:** [@Pavel\_Stratil](https://forum.ansible.com/u/Pavel_Stratil)\
**Replies:** 1\
**Last updated:** [June 15, 2016, 4:05pm UTC](https://forum.ansible.com/t/conditional-variables/21780 "2016-06-15T16:05:11Z")

</div>

Hey all, i’m trying to write a task to manage ssh keys. depending on that the ansible\_user, i want teo work either in /root/.ssh or /home/$user/.ssh. So I naively googled how to do that and only ended confused with s…

---

## [Ansible collect & translate server data](https://forum.ansible.com/t/ansible-collect-translate-server-data/21783)

<div class="topic-metadata">

**Author:** [@Ansible\_User](https://forum.ansible.com/u/Ansible_User)\
**Replies:** 0\
**Last updated:** [June 15, 2016, 3:16pm UTC](https://forum.ansible.com/t/ansible-collect-translate-server-data/21783 "2016-06-15T15:16:53Z")

</div>

Ansible newbie here with a more general question. I have a large number of servers that need to be re-build from scratch (no option on this). Ideally I would (1) pull the install & config info from the servers, (2) trans…

---

## [Another variable within a variable for jinja templates](https://forum.ansible.com/t/another-variable-within-a-variable-for-jinja-templates/21735)

<div class="topic-metadata">

**Author:** [@Keith\_Poirier](https://forum.ansible.com/u/Keith_Poirier)\
**Replies:** 2\
**Last updated:** [June 15, 2016, 1:19pm UTC](https://forum.ansible.com/t/another-variable-within-a-variable-for-jinja-templates/21735 "2016-06-15T13:19:42Z")

</div>

What I’m trying to do is get a list of active NICs on a system and build a template using what I find. The playbook looks like:

---

## [How I can clone with ansible into specific directory without annoying git folder?](https://forum.ansible.com/t/how-i-can-clone-with-ansible-into-specific-directory-without-annoying-git-folder/21782)

<div class="topic-metadata">

**Author:** [@Andrey\_Vinogradov](https://forum.ansible.com/u/Andrey_Vinogradov)\
**Replies:** 0\
**Last updated:** [June 15, 2016, 12:51pm UTC](https://forum.ansible.com/t/how-i-can-clone-with-ansible-into-specific-directory-without-annoying-git-folder/21782 "2016-06-15T12:51:33Z")

</div>

Hi guys! I stuck on the cloning the git content without the folder itself. I am using the task like: git: repo=git@bitbucket.org:project/someRepo.git dest=/var/www accept\_hostkey=yes version=someVersion force=yes and …

---

## [Lineinfile append at EOF](https://forum.ansible.com/t/lineinfile-append-at-eof/21765)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 3\
**Last updated:** [June 15, 2016, 12:01pm UTC](https://forum.ansible.com/t/lineinfile-append-at-eof/21765 "2016-06-15T12:01:47Z")

</div>

Hi all, I am trying to use the lineinfile module to append some of the software details to a file. I don’t want to match to any regexp, but just insert every software details at the EOF. Below is the piece of code. …

---

## [Python script with Json output as inventory](https://forum.ansible.com/t/python-script-with-json-output-as-inventory/21779)

<div class="topic-metadata">

**Author:** [@Idan\_null](https://forum.ansible.com/u/Idan_null)\
**Replies:** 2\
**Last updated:** [June 15, 2016, 12:07am UTC](https://forum.ansible.com/t/python-script-with-json-output-as-inventory/21779 "2016-06-15T00:07:52Z")

</div>

Hello to everyone :slight\_smile: I’m quite new to Ansible. I have used the Python API for ansible to connect to a few servers I have, I want to get the inventory list for the python script from MySQL server, so as far…

---

## [need help in checking if a variable string is in an item string](https://forum.ansible.com/t/need-help-in-checking-if-a-variable-string-is-in-an-item-string/21757)

<div class="topic-metadata">

**Author:** [@jyanga](https://forum.ansible.com/u/jyanga)\
**Replies:** 5\
**Last updated:** [June 14, 2016, 10:12pm UTC](https://forum.ansible.com/t/need-help-in-checking-if-a-variable-string-is-in-an-item-string/21757 "2016-06-14T22:12:11Z")

</div>

Here is what I have. vars/main.yml host\_entries: { srv\_loc: ‘ca’, ip\_addr: ‘10.1.1.1’, host\_aliases: ‘ca-srv-01.example.com ca-srv-01’ } { srv\_loc: ‘ny’, ip\_addr: ‘10.2.1.1’, host\_aliases: ‘ny-srv-01.example.com ny-s…

---

## [win\_package uninstall example?](https://forum.ansible.com/t/win-package-uninstall-example/21708)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 9\
**Last updated:** [June 14, 2016, 9:09pm UTC](https://forum.ansible.com/t/win-package-uninstall-example/21708 "2016-06-14T21:09:58Z")

</div>

I’m trying to figure out how to use win\_package to uninstall software. The state=“absent” would do an uninstall? It would seem this module can be used only for package installation?

---

## [Serial: usage across multiple plays](https://forum.ansible.com/t/serial-usage-across-multiple-plays/21759)

<div class="topic-metadata">

**Author:** [@Jason3](https://forum.ansible.com/u/Jason3)\
**Replies:** 2\
**Last updated:** [June 14, 2016, 8:13pm UTC](https://forum.ansible.com/t/serial-usage-across-multiple-plays/21759 "2016-06-14T20:13:00Z")

</div>

I’m trying to write a rolling-update.yml playbook that calls other playbooks and makes use of the serial: attribute. It goes something like this: rolling-update.yml: hosts: nonprod-app-servers serial: “30%” pre\_ta…

---

## [Finding a string within an stdout\_lines array](https://forum.ansible.com/t/finding-a-string-within-an-stdout-lines-array/21777)

<div class="topic-metadata">

**Author:** [@jamesvader13](https://forum.ansible.com/u/jamesvader13)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 7:31pm UTC](https://forum.ansible.com/t/finding-a-string-within-an-stdout-lines-array/21777 "2016-06-14T19:31:43Z")

</div>

I am trying to find whether a certain letter exists in an stdout\_lines array. I want the role to run if there is a ‘P’ found in the stdout\_output. The stdout\_lines array looks like this “stdout”: “P\\r\\nA\\r\\nS\\r\\nI\\r\\n”…

---

## [Error while using ansible with aws](https://forum.ansible.com/t/error-while-using-ansible-with-aws/21776)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 0\
**Last updated:** [June 14, 2016, 5:25pm UTC](https://forum.ansible.com/t/error-while-using-ansible-with-aws/21776 "2016-06-14T17:25:14Z")

</div>

i am using ansible 2.1.0.0, when i execute a playbook against ec2 console i am finding this error Error: FAILED! =\> {“changed”: false, “failed”: true, “invocation”: {“module\_args”: {“assign\_public\_ip”: false, “aws\_acce…

---

## [Tighter integration with OS X preferences (aka defaults)](https://forum.ansible.com/t/tighter-integration-with-os-x-preferences-aka-defaults/21775)

<div class="topic-metadata">

**Author:** [@nordjc](https://forum.ansible.com/u/nordjc)\
**Replies:** 0\
**Last updated:** [June 14, 2016, 5:23pm UTC](https://forum.ansible.com/t/tighter-integration-with-os-x-preferences-aka-defaults/21775 "2016-06-14T17:23:46Z")

</div>

(Announcing here in case users who would care do not monitor the PRs closely) This new module should help those of us who have run into the limits of using the defaults command on OS X: https://github.com/ansible/ansib…

---

## ["TASK:" only showing "\[command\]"](https://forum.ansible.com/t/task-only-showing-command/21761)

<div class="topic-metadata">

**Author:** [@Dana\_Christo](https://forum.ansible.com/u/Dana_Christo)\
**Replies:** 3\
**Last updated:** [June 14, 2016, 5:20pm UTC](https://forum.ansible.com/t/task-only-showing-command/21761 "2016-06-14T17:20:39Z")

</div>

I’m trying to create a playbook to print “hello world”. Here is my playbook: \`

---

## [Trying to recreate an if statement inside a for loop with ansible](https://forum.ansible.com/t/trying-to-recreate-an-if-statement-inside-a-for-loop-with-ansible/21773)

<div class="topic-metadata">

**Author:** [@Chris\_Shelton](https://forum.ansible.com/u/Chris_Shelton)\
**Replies:** 0\
**Last updated:** [June 14, 2016, 3:15pm UTC](https://forum.ansible.com/t/trying-to-recreate-an-if-statement-inside-a-for-loop-with-ansible/21773 "2016-06-14T15:15:22Z")

</div>

So I have an on-line form in ansible tower that lets people pick a group to included in. I’m trying to set it up so they can pick multiple groups, but I’m having a tough time writing the logical checks I need. In any ot…

---

## [Default mode for apt\_repository module](https://forum.ansible.com/t/default-mode-for-apt-repository-module/21772)

<div class="topic-metadata">

**Author:** [@stevew.work](https://forum.ansible.com/u/stevew.work)\
**Replies:** 0\
**Last updated:** [June 14, 2016, 3:11pm UTC](https://forum.ansible.com/t/default-mode-for-apt-repository-module/21772 "2016-06-14T15:11:15Z")

</div>

I noticed today that the default mode is 420 for the apt\_repository module which seems a little odd to me. I would think 640 or 644 would be more appropriate. Does anyone know the reason for setting the default mode to 4…

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

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