# Latest

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

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

**Page:** 944

---

## [cfgmgmtcamp 2015](https://forum.ansible.com/t/cfgmgmtcamp-2015/16009)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 2\
**Last updated:** [August 25, 2014, 6:48am UTC](https://forum.ansible.com/t/cfgmgmtcamp-2015/16009 "2014-08-25T06:48:14Z")

</div>

Hi all, Just like this year, a cfgmgmtcamp will be organized in 2015 ( https://twitter.com/cfgmgmtcamp/status/502447776727592961 ). Last time we were able to gather some (mostly local) people to present some talks in…

---

## [Command warnings - new feature in 1.8 - thoughts welcome!](https://forum.ansible.com/t/command-warnings-new-feature-in-1-8-thoughts-welcome/16020)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 6\
**Last updated:** [August 24, 2014, 2:24pm UTC](https://forum.ansible.com/t/command-warnings-new-feature-in-1-8-thoughts-welcome/16020 "2014-08-24T14:24:34Z")

</div>

I just merged in another Will Thames patch that’s been in queue for a while that reports when certain apparently trivial usage of shell/command could be better represented by using other modules. For instance when runni…

---

## [changed\_when and $?](https://forum.ansible.com/t/changed-when-and/16024)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 2\
**Last updated:** [August 24, 2014, 1:59pm UTC](https://forum.ansible.com/t/changed-when-and/16024 "2014-08-24T13:59:30Z")

</div>

Hello! Is there a similar functionality to $? in many script languages in ansible? I'd like to do something like this without having to register a variable after all commandS: - shell: \<do something\> changed\_when:…

---

## [vsphere\_guest adding snapshot ability](https://forum.ansible.com/t/vsphere-guest-adding-snapshot-ability/16022)

<div class="topic-metadata">

**Author:** [@Dann\_Bohn](https://forum.ansible.com/u/Dann_Bohn)\
**Replies:** 1\
**Last updated:** [August 24, 2014, 1:55pm UTC](https://forum.ansible.com/t/vsphere-guest-adding-snapshot-ability/16022 "2014-08-24T13:55:36Z")

</div>

I was tasked with starting a discussion regarding adding snapshot capability to vsphere\_guest, or perhaps splitting it into a separate module. I started this work here: https://github.com/ansible/ansible/pull/7690 Dann …

---

## [Ansible - Advanced shell command execution syntax](https://forum.ansible.com/t/ansible-advanced-shell-command-execution-syntax/16006)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 12\
**Last updated:** [August 24, 2014, 8:52am UTC](https://forum.ansible.com/t/ansible-advanced-shell-command-execution-syntax/16006 "2014-08-24T08:52:16Z")

</div>

I have 3 variables named IPOctet, ServerIPRange and epcrange. If I perform the following operation in my terminal, it works perfectly IPOctet=$(echo "$ServerIPRange/$epcrange+$IPOctet" | bc) How to I do something simil…

---

## [How to add a newline inside a string ?](https://forum.ansible.com/t/how-to-add-a-newline-inside-a-string/15998)

<div class="topic-metadata">

**Author:** [@Javier\_Barroso](https://forum.ansible.com/u/Javier_Barroso)\
**Replies:** 1\
**Last updated:** [August 23, 2014, 8:13am UTC](https://forum.ansible.com/t/how-to-add-a-newline-inside-a-string/15998 "2014-08-23T08:13:05Z")

</div>

Hello, How can I add a new line to a parameter, for example: fail: msg=“Error:\\n {myoutput.stdout}” … \\n is not working there and not clue in doc / internet search Thank you for ansible !

---

## [Proposal for two fact modules, thoughts?](https://forum.ansible.com/t/proposal-for-two-fact-modules-thoughts/16018)

<div class="topic-metadata">

**Author:** [@J\_Dav](https://forum.ansible.com/u/J_Dav)\
**Replies:** 3\
**Last updated:** [August 22, 2014, 11:05pm UTC](https://forum.ansible.com/t/proposal-for-two-fact-modules-thoughts/16018 "2014-08-22T23:05:27Z")

</div>

Internally, a requirement has been brought forth to be able to pull a list of all software installed on a given server, be it Windows or Linux. I’ll be developing a custom fact module that essentially returns a ‘fact’ f…

---

## [Thanks to the devs and the community](https://forum.ansible.com/t/thanks-to-the-devs-and-the-community/16021)

<div class="topic-metadata">

**Author:** [@Mark\_McCoy](https://forum.ansible.com/u/Mark_McCoy)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 9:09pm UTC](https://forum.ansible.com/t/thanks-to-the-devs-and-the-community/16021 "2014-08-22T21:09:56Z")

</div>

Just wanted to say thanks to all of the Ansible developers and the community of users, and to share my success story with Ansible. I stumbled upon Ansible a couple of months ago, and it was the perfect solution for a pa…

---

## [name 'module' is not defined with s3 module](https://forum.ansible.com/t/name-module-is-not-defined-with-s3-module/15985)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 11\
**Last updated:** [August 22, 2014, 8:40pm UTC](https://forum.ansible.com/t/name-module-is-not-defined-with-s3-module/15985 "2014-08-22T20:40:15Z")

</div>

When trying to run: ansible --inventory /opt/wp/app/hegemon/ansible/hosts.prod --user mozart --private-key /root/.ssh/keys/prod p-backup01 -m s3 I get the error: p-backup01 | FAILED \>\> { "failed": true, "msg": "Traceb…

---

## [Workflow and distribution when developing modules](https://forum.ansible.com/t/workflow-and-distribution-when-developing-modules/16017)

<div class="topic-metadata">

**Author:** [@Ryan\_VanGundy](https://forum.ansible.com/u/Ryan_VanGundy)\
**Replies:** 3\
**Last updated:** [August 22, 2014, 5:55pm UTC](https://forum.ansible.com/t/workflow-and-distribution-when-developing-modules/16017 "2014-08-22T17:55:57Z")

</div>

I’m curious as to how best to develop and distribute a 3rd-party module. Currently I’m working in an Ansible development branch. My module is in the library folder, and I’m running tests using hacking/test-module. This h…

---

## [Ansible organization](https://forum.ansible.com/t/ansible-organization/16014)

<div class="topic-metadata">

**Author:** [@zorggy01](https://forum.ansible.com/u/zorggy01)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 4:56pm UTC](https://forum.ansible.com/t/ansible-organization/16014 "2014-08-22T16:56:36Z")

</div>

Hello Ansible people, How is it possible to set specific data while applying a role (or a playbook) to a host? Or another way to say, may I apply a general role or play on several hosts but with special data for each? T…

---

## [Get rid of "previous known host file not found"](https://forum.ansible.com/t/get-rid-of-previous-known-host-file-not-found/14427)

<div class="topic-metadata">

**Author:** [@Ilya](https://forum.ansible.com/u/Ilya)\
**Replies:** 25\
**Last updated:** [August 22, 2014, 4:37pm UTC](https://forum.ansible.com/t/get-rid-of-previous-known-host-file-not-found/14427 "2014-08-22T16:37:09Z")

</div>

I get 2-4 “previous known host file not found” warning on each task execution. Like TASK: \[configure .bashrc for me\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* previous known host file not found previous known host…

---

## [ansible api syntax](https://forum.ansible.com/t/ansible-api-syntax/16015)

<div class="topic-metadata">

**Author:** [@kevin\_hansen](https://forum.ansible.com/u/kevin_hansen)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 3:58pm UTC](https://forum.ansible.com/t/ansible-api-syntax/16015 "2014-08-22T15:58:27Z")

</div>

Trying to use the api to copy a file and I’d like a diff of the changes. I’m trying : results = ansible.runner.Runner(pattern=argument\[‘’\] ,check=True,diff=True,module\_name=‘copy’, module\_args=‘src=/tmp/x.txt dest=/tmp…

---

## [Ansible Galaxy (galaxy.ansible.com) no longer "beta"](https://forum.ansible.com/t/ansible-galaxy-galaxy-ansible-com-no-longer-beta/16013)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 22, 2014, 1:47pm UTC](https://forum.ansible.com/t/ansible-galaxy-galaxy-ansible-com-no-longer-beta/16013 "2014-08-22T13:47:54Z")

</div>

Previously I had heard from someone who didn’t want to use our Galaxy site because of the “beta” sticker and thoughts APIs would change. This is not the case, of course – APIs have been stable since inception, though we…

---

## [weird output stuff when doing --syntax check on latest devel](https://forum.ansible.com/t/weird-output-stuff-when-doing-syntax-check-on-latest-devel/16012)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 0\
**Last updated:** [August 22, 2014, 1:30pm UTC](https://forum.ansible.com/t/weird-output-stuff-when-doing-syntax-check-on-latest-devel/16012 "2014-08-22T13:30:58Z")

</div>

With latest devel, doing a syntax check, I suddenly get playbook: plays/cumuli.yml 0=cumuli/admin 0=cumuli/admin 0=cumuli/mon 0=cumuli/mon 0=cumuli/osd 0=cumuli/osd 0=cumuli/msd 0=cumuli/msd 0=cumuli/blades 0=…

---

## [Power of 2 loop](https://forum.ansible.com/t/power-of-2-loop/16011)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 1:17pm UTC](https://forum.ansible.com/t/power-of-2-loop/16011 "2014-08-22T13:17:54Z")

</div>

\- name: Do some mathematics divide multiply #insert logic here register: my\_content # save logic in register with\_sequence: count={{loopvar}} #I need a loop sequence here

---

## [last task](https://forum.ansible.com/t/last-task/16000)

<div class="topic-metadata">

**Author:** [@Frank3](https://forum.ansible.com/u/Frank3)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 12:09pm UTC](https://forum.ansible.com/t/last-task/16000 "2014-08-22T12:09:51Z")

</div>

Hi, I am writing a role to setup ‘things’ on amazon ami (redhat based I suppose). I have a yum upgrade step on it like so: name: upgrade all base packages yum: name=\* state=latest then ‘other stuff gets done’ like …

---

## [Azure inventory: Hosts vs Cloud Services](https://forum.ansible.com/t/azure-inventory-hosts-vs-cloud-services/16010)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 0\
**Last updated:** [August 22, 2014, 10:45am UTC](https://forum.ansible.com/t/azure-inventory-hosts-vs-cloud-services/16010 "2014-08-22T10:45:45Z")

</div>

I just tested the Azure Inventory (thru Ansible Tower 2.0, but I guess the inventory script itself comes from Ansible core) I noticed that Ansible lists each cloud service as a “host”.In azure speak, a cloud service is …

---

## [\[Ansible connecting to windows\] IndexError: tuple index out of range](https://forum.ansible.com/t/ansible-connecting-to-windows-indexerror-tuple-index-out-of-range/16007)

<div class="topic-metadata">

**Author:** [@Zhenkai\_Jiang](https://forum.ansible.com/u/Zhenkai_Jiang)\
**Replies:** 0\
**Last updated:** [August 22, 2014, 6:18am UTC](https://forum.ansible.com/t/ansible-connecting-to-windows-indexerror-tuple-index-out-of-range/16007 "2014-08-22T06:18:53Z")

</div>

Hi, I am a newbie to ansible I have followed every steps on http://docs.ansible.com/intro\_windows.html to config an ansible workstation which can operate on Windows. Below is what I got \[root@ansible-test-1 ~\]# ansib…

---

## [Reading data from a file?](https://forum.ansible.com/t/reading-data-from-a-file/15999)

<div class="topic-metadata">

**Author:** [@jimbobpalmer](https://forum.ansible.com/u/jimbobpalmer)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 2:58am UTC](https://forum.ansible.com/t/reading-data-from-a-file/15999 "2014-08-22T02:58:32Z")

</div>

Hi. I’m quite new to ansible. I have an iptables module that takes an array of ip addresses and generates iptables rules using a template. It works well. It’s called like this: { role: iptables, whitelisted\_ips: \[ ‘…

---

## [What is correct syntax for user module?](https://forum.ansible.com/t/what-is-correct-syntax-for-user-module/16004)

<div class="topic-metadata">

**Author:** [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Replies:** 1\
**Last updated:** [August 22, 2014, 12:06am UTC](https://forum.ansible.com/t/what-is-correct-syntax-for-user-module/16004 "2014-08-22T00:06:08Z")

</div>

Hello! Beginner here. My goal is to use a simple play book to create a new user. I found this example in the modules pages at ansible.com # Add the user 'johnd' with a specific uid and a primary group of 'admin' - user…

---

## [Does apt module upgrade works with package pinned?](https://forum.ansible.com/t/does-apt-module-upgrade-works-with-package-pinned/15996)

<div class="topic-metadata">

**Author:** [@J\_Soetanto](https://forum.ansible.com/u/J_Soetanto)\
**Replies:** 2\
**Last updated:** [August 21, 2014, 9:36pm UTC](https://forum.ansible.com/t/does-apt-module-upgrade-works-with-package-pinned/15996 "2014-08-21T21:36:45Z")

</div>

Hi, I would like to know if ansible apt module upgrade works with package pinned. So far my test shows even though a package had been marked as hold (https://help.ubuntu.com/community/PinningHowto), apt upgrade will ke…

---

## [San Francisco East Bay Meetup (Wednesday, 8/27): Advanced Ansible with Action Plugins](https://forum.ansible.com/t/san-francisco-east-bay-meetup-wednesday-8-27-advanced-ansible-with-action-plugins/16003)

<div class="topic-metadata">

**Author:** [@Scott\_M](https://forum.ansible.com/u/Scott_M)\
**Replies:** 0\
**Last updated:** [August 21, 2014, 8:25pm UTC](https://forum.ansible.com/t/san-francisco-east-bay-meetup-wednesday-8-27-advanced-ansible-with-action-plugins/16003 "2014-08-21T20:25:14Z")

</div>

My company, Location Labs, will be hosting an East Bay Ops & DevOps Meetup to discuss some of the challenges we’ve faced as we’ve adopted Ansible, as well as one of the powerful, less-known features of Ansible that we’ve…

---

## [Expose more verbose out for specific tasks and/or modules?](https://forum.ansible.com/t/expose-more-verbose-out-for-specific-tasks-and-or-modules/15923)

<div class="topic-metadata">

**Author:** [@Dan\_Bohea](https://forum.ansible.com/u/Dan_Bohea)\
**Replies:** 2\
**Last updated:** [August 21, 2014, 5:30pm UTC](https://forum.ansible.com/t/expose-more-verbose-out-for-specific-tasks-and-or-modules/15923 "2014-08-21T17:30:41Z")

</div>

I know I can set Ansible’s overall verbosity when running a playbook (-v, -vv, -vv etc) but does anyone know if it’s possible to increase verbosity for specific tasks and/or modules from within the playbook? I’d like to…

---

## [Mac provisioning: running PlistBuddy or sqlite3 from a playbook doesn't work](https://forum.ansible.com/t/mac-provisioning-running-plistbuddy-or-sqlite3-from-a-playbook-doesnt-work/15983)

<div class="topic-metadata">

**Author:** [@Dan\_Bohea](https://forum.ansible.com/u/Dan_Bohea)\
**Replies:** 18\
**Last updated:** [August 21, 2014, 2:41pm UTC](https://forum.ansible.com/t/mac-provisioning-running-plistbuddy-or-sqlite3-from-a-playbook-doesnt-work/15983 "2014-08-21T14:41:26Z")

</div>

I’m writing a Mac setup playbook and am borrowing heavily from various “dotfiles” around the web to help with configuring certain aspects of OS X. Here’s my current dotfile which is effectively just a bash script: http…

---

## ["Ansible and Drupal" BOF session @ DrupalCon Amsterdam this September](https://forum.ansible.com/t/ansible-and-drupal-bof-session-drupalcon-amsterdam-this-september/15997)

<div class="topic-metadata">

**Author:** [@Dan\_Bohea](https://forum.ansible.com/u/Dan_Bohea)\
**Replies:** 1\
**Last updated:** [August 21, 2014, 2:07pm UTC](https://forum.ansible.com/t/ansible-and-drupal-bof-session-drupalcon-amsterdam-this-september/15997 "2014-08-21T14:07:07Z")

</div>

Heads up for any Drupal people in this group: In case you’re attending DrupalCon Amsterdam in September, I’d like to draw your attention to the BOF session on Ansible and Drupal. This will likely feature a fair amount …

---

## [skip a task with\_subelements if its dictionary is undefined](https://forum.ansible.com/t/skip-a-task-with-subelements-if-its-dictionary-is-undefined/15990)

<div class="topic-metadata">

**Author:** [@Nakai\_Tooru](https://forum.ansible.com/u/Nakai_Tooru)\
**Replies:** 4\
**Last updated:** [August 21, 2014, 2:41am UTC](https://forum.ansible.com/t/skip-a-task-with-subelements-if-its-dictionary-is-undefined/15990 "2014-08-21T02:41:00Z")

</div>

Hello, Is it possible to skip a task with\_subelements if its dictionary is undefined? For example, authorized\_key: “user={{ item.0.name }} key=‘{{ lookup(‘file’, item.1)}}’” with\_subelements: users authorized when:…

---

## [virtualbox wrapper](https://forum.ansible.com/t/virtualbox-wrapper/15995)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 0\
**Last updated:** [August 20, 2014, 8:50pm UTC](https://forum.ansible.com/t/virtualbox-wrapper/15995 "2014-08-20T20:50:44Z")

</div>

Hi, For those interested, I'd be too by your opinions on the matter. Just to know if I am on the right track or that I can go and get lost in the woods. :slight\_smile: Thanks, PS: Sorry for the double post, but with…

---

## [virtualbox wrapper](https://forum.ansible.com/t/virtualbox-wrapper/15994)

<div class="topic-metadata">

**Author:** [@Diogene\_Laerce](https://forum.ansible.com/u/Diogene_Laerce)\
**Replies:** 0\
**Last updated:** [August 20, 2014, 8:49pm UTC](https://forum.ansible.com/t/virtualbox-wrapper/15994 "2014-08-20T20:49:24Z")

</div>

Hi, For those interested, I'd be too by your opinions on the matter. Just to know if I am on the right track or that I can go and get lost in the woods. :slight\_smile: Thanks,

---

## [ini\_file feature for populating an INI file from a variable](https://forum.ansible.com/t/ini-file-feature-for-populating-an-ini-file-from-a-variable/15992)

<div class="topic-metadata">

**Author:** [@Nate\_Coraor](https://forum.ansible.com/u/Nate_Coraor)\
**Replies:** 4\
**Last updated:** [August 20, 2014, 7:21pm UTC](https://forum.ansible.com/t/ini-file-feature-for-populating-an-ini-file-from-a-variable/15992 "2014-08-20T19:21:46Z")

</div>

Hi all, I’ve put together a feature for ini\_file and am not sure whether I should submit a PR for it or not. The problem I had was that there’s no way to fully manage an INI file: You can add/remove individual options, …

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

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