# Ansible Developer

**URL:** https://forum.ansible.com/c/archives/ansible-developer/29.md?page=57

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

**Page:** 58

---

## [Playbook help - syntax](https://forum.ansible.com/t/playbook-help-syntax/21554)

<div class="topic-metadata">

**Author:** [@Bud\_Calabrese](https://forum.ansible.com/u/Bud_Calabrese)\
**Replies:** 4\
**Last updated:** [May 25, 2016, 7:02pm UTC](https://forum.ansible.com/t/playbook-help-syntax/21554 "2016-05-25T19:02:37Z")

</div>

I am working on a Ansible file that will update our Windows boxes instead of using SCCM. I keep getting an error. Here is my playbook. --- - hosts: Windows connection: winrm tasks: - name: Install Critical Updat…

---

## [Issue 15405 : Synchronized failed with delegate\_to and sudo password](https://forum.ansible.com/t/issue-15405-synchronized-failed-with-delegate-to-and-sudo-password/21335)

<div class="topic-metadata">

**Author:** [@Guillaume\_Dufour](https://forum.ansible.com/u/Guillaume_Dufour)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 1:53pm UTC](https://forum.ansible.com/t/issue-15405-synchronized-failed-with-delegate-to-and-sudo-password/21335 "2016-05-25T13:53:25Z")

</div>

Hello, i found a regression (maybe it’s a normal change of API) on the synchronized module on the 2.0.1. I try on 1.9.5 and it’ work. My use case is : i have a bastion to access to all host and my ssh config use the…

---

## [Why items automaticaly skipped when i use with\_items in "include" module ??](https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 0\
**Last updated:** [May 25, 2016, 9:46am UTC](https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559 "2016-05-25T09:46:21Z")

</div>

Hi, I encounter a bug when i want to use “with\_items” in include file when module “include” already use 'with\_items"… Exemple : tasks/main.yml : include: ‘includes/filesystem.yml’ vars: project\_config: “{{ item }}…

---

## [Writing PowerShell modules with support for "check mode"](https://forum.ansible.com/t/writing-powershell-modules-with-support-for-check-mode/21549)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 6\
**Last updated:** [May 24, 2016, 7:26pm UTC](https://forum.ansible.com/t/writing-powershell-modules-with-support-for-check-mode/21549 "2016-05-24T19:26:32Z")

</div>

I’d like to support “check mode” in some of my PowerShell-based modules for Ansible on Windows. Is this currently supported? We’re not using the AnsibleModule object at all, so how can I implement this? Any thought and …

---

## [Travis build process failing to compile with python3](https://forum.ansible.com/t/travis-build-process-failing-to-compile-with-python3/21520)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 2\
**Last updated:** [May 23, 2016, 11:20am UTC](https://forum.ansible.com/t/travis-build-process-failing-to-compile-with-python3/21520 "2016-05-23T11:20:33Z")

</div>

Does any one know why Travis has started to fail builds by trying to compile with python3? Example: 0.66s$ python3.4 -m compileall -fq . -x $(echo "$PY3\_EXCLUDE\_LIST"| tr ' ' '|') \*\*\* Error compiling './cloud/amazon/…

---

## [I'm looking to contribute](https://forum.ansible.com/t/im-looking-to-contribute/21511)

<div class="topic-metadata">

**Author:** [@afraser](https://forum.ansible.com/u/afraser)\
**Replies:** 2\
**Last updated:** [May 23, 2016, 7:35am UTC](https://forum.ansible.com/t/im-looking-to-contribute/21511 "2016-05-23T07:35:44Z")

</div>

Hi All, I’ve used Ansible from an Admin standpoint and I’d like to contribute to the project code-wise. I don’t want to work on anything that already being done. Can someone give me an idea how I can get involved or wit…

---

## [Feature Idea: Allow for "directory" or "link" in place of "file" with state](https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510)

<div class="topic-metadata">

**Author:** [@Sergio\_Pace](https://forum.ansible.com/u/Sergio_Pace)\
**Replies:** 0\
**Last updated:** [May 20, 2016, 11:16pm UTC](https://forum.ansible.com/t/feature-idea-allow-for-directory-or-link-in-place-of-file-with-state/21510 "2016-05-20T23:16:40Z")

</div>

As per https://github.com/ansible/ansible-modules-core/issues/3669, I believe that It would be a good adition to the file core module if we could use dir: path=x/y/z or link: path=x/y/z as an alias for file: path=x/…

---

## [ipaddr filter: Calculating default gateway](https://forum.ansible.com/t/ipaddr-filter-calculating-default-gateway/21504)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 12:05pm UTC](https://forum.ansible.com/t/ipaddr-filter-calculating-default-gateway/21504 "2016-05-20T12:05:04Z")

</div>

I wanted to calculate the default gateway from a CIDR. The ipaddr filter has an undocumented gateway/router option but it results in unexpected values. Here is the responsible method: def \_gateway\_query(v): if v.size \> …

---

## [Satellite module in development](https://forum.ansible.com/t/satellite-module-in-development/21488)

<div class="topic-metadata">

**Author:** [@rwolters](https://forum.ansible.com/u/rwolters)\
**Replies:** 1\
**Last updated:** [May 20, 2016, 10:18am UTC](https://forum.ansible.com/t/satellite-module-in-development/21488 "2016-05-20T10:18:27Z")

</div>

Hej hej, in case you are interested, I am currently developing my first Ansible module using the Satellite REST API. Currently it can create and delete activation keys, but my plan is to use it as a blueprint for multip…

---

## [How to use Ansible 2.0 Python CLI to get result?](https://forum.ansible.com/t/how-to-use-ansible-2-0-python-cli-to-get-result/21502)

<div class="topic-metadata">

**Author:** [@jinyanroot](https://forum.ansible.com/u/jinyanroot)\
**Replies:** 0\
**Last updated:** [May 20, 2016, 2:51am UTC](https://forum.ansible.com/t/how-to-use-ansible-2-0-python-cli-to-get-result/21502 "2016-05-20T02:51:54Z")

</div>

test.yml file: \`

---

## [killing a play when using run\_once+delegate\_to](https://forum.ansible.com/t/killing-a-play-when-using-run-once-delegate-to/21483)

<div class="topic-metadata">

**Author:** [@sbeardsley](https://forum.ansible.com/u/sbeardsley)\
**Replies:** 1\
**Last updated:** [May 19, 2016, 7:58pm UTC](https://forum.ansible.com/t/killing-a-play-when-using-run-once-delegate-to/21483 "2016-05-19T19:58:36Z")

</div>

My goal is to fail all hosts when a run\_once, delegated task fails. In my specific case there was an ssh failure to the delegated host. I’ve simplified my playbook to the following:

---

## [APM Module for installing Atom Packages](https://forum.ansible.com/t/apm-module-for-installing-atom-packages/20140)

<div class="topic-metadata">

**Author:** [@Michael\_Aquilina](https://forum.ansible.com/u/Michael_Aquilina)\
**Replies:** 3\
**Last updated:** [May 19, 2016, 9:41am UTC](https://forum.ansible.com/t/apm-module-for-installing-atom-packages/20140 "2016-05-19T09:41:32Z")

</div>

I wrote this apm (Atom Package Manager) module to allow me to easily synchronise what Atom packages I have installed on my work and personal laptop. I was wondering if this would be a useful addition to ansible-modules-…

---

## [Issue with URI module in ansible1.9-1.9.6-2](https://forum.ansible.com/t/issue-with-uri-module-in-ansible1-9-1-9-6-2/21462)

<div class="topic-metadata">

**Author:** [@Guillaume\_Belrose](https://forum.ansible.com/u/Guillaume_Belrose)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 2:53pm UTC](https://forum.ansible.com/t/issue-with-uri-module-in-ansible1-9-1-9-6-2/21462 "2016-05-18T14:53:30Z")

</div>

Hi all, I am on CentOS 6.7 using Ansible 1.9 and I’ve updated my version of Ansible to be ansible1.9-1.9.6-2 (retrieved from EPEL). I have some tasks (\[1\]) which upload (via POST) dashboards to Grafana. Those tasks use…

---

## [Correct way to parse arguments in custom module](https://forum.ansible.com/t/correct-way-to-parse-arguments-in-custom-module/21471)

<div class="topic-metadata">

**Author:** [@Valentin\_He](https://forum.ansible.com/u/Valentin_He)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 11:27am UTC](https://forum.ansible.com/t/correct-way-to-parse-arguments-in-custom-module/21471 "2016-05-18T11:27:06Z")

</div>

Hey folks, I am currently trying to learn how to write custom modules for Ansible. My goal is to just execute one command on a remote server, to get started. But I cant seem to figure out how to correctly parse argume…

---

## [LXD module development](https://forum.ansible.com/t/lxd-module-development/21455)

<div class="topic-metadata">

**Author:** [@James\_Pic](https://forum.ansible.com/u/James_Pic)\
**Replies:** 3\
**Last updated:** [May 17, 2016, 1:53pm UTC](https://forum.ansible.com/t/lxd-module-development/21455 "2016-05-17T13:53:06Z")

</div>

Hi all \\o/ Basically, lxd is like the lxc module, with a bit more feature ie. the ability to manage container images like docker. Has anyone started any development on the LXD module ? Is there any recommendation you’…

---

## [netconf module](https://forum.ansible.com/t/netconf-module/21201)

<div class="topic-metadata">

**Author:** [@Leandro\_Penz](https://forum.ansible.com/u/Leandro_Penz)\
**Replies:** 6\
**Last updated:** [May 17, 2016, 1:44am UTC](https://forum.ansible.com/t/netconf-module/21201 "2016-05-17T01:44:54Z")

</div>

Hi there I’ve coded a very simple netconf module, for edit-config operations. You can see it here: https://github.com/lpenz/ansible-modules-extras/commit/02beadea716e923185bbba5aa44211efc36ee47a There are still a coupl…

---

## [Feature suggestion: use\_tags](https://forum.ansible.com/t/feature-suggestion-use-tags/21446)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 0\
**Last updated:** [May 16, 2016, 12:15pm UTC](https://forum.ansible.com/t/feature-suggestion-use-tags/21446 "2016-05-16T12:15:15Z")

</div>

The quick summary is as follows: the documentation says to think of roles as classes. Complex lifecycle operations are hard to express, decompose, and recompose. This proposal is to extend the use of tags to permit the p…

---

## [semanage fcontext in ansible?](https://forum.ansible.com/t/semanage-fcontext-in-ansible/16688)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:45pm UTC](https://forum.ansible.com/t/semanage-fcontext-in-ansible/16688 "2016-05-13T14:45:28Z")

</div>

Hi, I’ve got a playbook that needs to set some SELinux labels etc. And I’ve come up with two questions: So far I’ve used direct invocation of "semanage fcontext -a -t logwatch\_cache\_t “/var/lib/logwatch(/.\*)?”. I have…

---

## [getting error while removing volume group using anisble playbook](https://forum.ansible.com/t/getting-error-while-removing-volume-group-using-anisble-playbook/21431)

<div class="topic-metadata">

**Author:** [@Kishore\_Devkate](https://forum.ansible.com/u/Kishore_Devkate)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 7:25am UTC](https://forum.ansible.com/t/getting-error-while-removing-volume-group-using-anisble-playbook/21431 "2016-05-13T07:25:25Z")

</div>

Hi Friends, someone please help me in below issue. \[root@swift own-create-ymal\]# ansible-playbook lvm-remove.yaml PLAY \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[setup\] \*\*\*\*\*\*\*\*…

---

## [Nested Playbook with dynamic group Variables](https://forum.ansible.com/t/nested-playbook-with-dynamic-group-variables/21429)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 0\
**Last updated:** [May 13, 2016, 3:13am UTC](https://forum.ansible.com/t/nested-playbook-with-dynamic-group-variables/21429 "2016-05-13T03:13:56Z")

</div>

Hi, I am trying to figure out how I could use the vars in one role can be used in another role. Below is init.yaml file which has 2 different plays. I want to use the “env” variable passed in the first play (provision t…

---

## [Getting attributes from with\_inventory\_hostnames](https://forum.ansible.com/t/getting-attributes-from-with-inventory-hostnames/21411)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 2\
**Last updated:** [May 13, 2016, 2:39am UTC](https://forum.ansible.com/t/getting-attributes-from-with-inventory-hostnames/21411 "2016-05-13T02:39:23Z")

</div>

Hi , I am generating an inventory file dynamically for each cluster using templates and store it in inventory folder. Below is how the inventory files looks. Filename: leo \` \[gapp\] gapp\[01:02\]-leo.dev.com role=gapp …

---

## [Use "with\_sublelements" with 3,4,5,... elements ?](https://forum.ansible.com/t/use-with-sublelements-with-3-4-5-elements/21402)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 6\
**Last updated:** [May 12, 2016, 7:38am UTC](https://forum.ansible.com/t/use-with-sublelements-with-3-4-5-elements/21402 "2016-05-12T07:38:45Z")

</div>

Hi, I try to use function “with\_subelements” to create a folder tree for MySQL installation with multiple element in vars, but I can’t do this … Exemple : vars.yml : mysqld\_instance: name: “HOSTNAME” port: ‘3307’ …

---

## [Windows put\_file performance (please test!)](https://forum.ansible.com/t/windows-put-file-performance-please-test/19598)

<div class="topic-metadata">

**Author:** [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Replies:** 27\
**Last updated:** [May 11, 2016, 5:25pm UTC](https://forum.ansible.com/t/windows-put-file-performance-please-test/19598 "2016-05-11T17:25:17Z")

</div>

Chris Church and I have been kicking around a major Windows performance fix for awhile now- I finally got around to merging our efforts together and working some of the bugs out. The result is available here: https://git…

---

## [Resolved bug about block/rescue does not seem solved to me](https://forum.ansible.com/t/resolved-bug-about-block-rescue-does-not-seem-solved-to-me/21301)

<div class="topic-metadata">

**Author:** [@dcodix](https://forum.ansible.com/u/dcodix)\
**Replies:** 2\
**Last updated:** [May 11, 2016, 3:32pm UTC](https://forum.ansible.com/t/resolved-bug-about-block-rescue-does-not-seem-solved-to-me/21301 "2016-05-11T15:32:07Z")

</div>

Hi, I opened an issue on github: https://github.com/ansible/ansible/issues/14324 Now it has been closed and it did not seem solved to me. I am testing with: ansible 2.2.0 (devel 48d01f63ca) last updated 2016/04/28 14…

---

## [\[RFC\] a new module: lxd\_container](https://forum.ansible.com/t/rfc-a-new-module-lxd-container/21396)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 0\
**Last updated:** [May 10, 2016, 4:29pm UTC](https://forum.ansible.com/t/rfc-a-new-module-lxd-container/21396 "2016-05-10T16:29:08Z")

</div>

Hi all, I created the lxd\_container Ansible module and sent a pull request to the ansible-modules-extra project. "Add lxd\_container module by hnakamur · Pull Request #2208 · ansible/ansible-modules-extras" https://g…

---

## [How to use dictionnary with multiple elements ?](https://forum.ansible.com/t/how-to-use-dictionnary-with-multiple-elements/21394)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 5\
**Last updated:** [May 10, 2016, 3:30pm UTC](https://forum.ansible.com/t/how-to-use-dictionnary-with-multiple-elements/21394 "2016-05-10T15:30:28Z")

</div>

Hi, I need help for use an dictionnary with multiple element, but i don’t find how to :confused: Exemple : vars/mains.yml : users: alice: name: Alice Appleworth telephone: “123-456-7890” “123-456-7891” task/m…

---

## [File lookup plugin behavior concerning quotes @abadger, @bcoca](https://forum.ansible.com/t/file-lookup-plugin-behavior-concerning-quotes-abadger-bcoca/21358)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 13\
**Last updated:** [May 10, 2016, 11:42am UTC](https://forum.ansible.com/t/file-lookup-plugin-behavior-concerning-quotes-abadger-bcoca/21358 "2016-05-10T11:42:33Z")

</div>

Hi all, This is mostly aimed at the core team… Can you explain why the file lookup plugin changes the contents of the file as far as quotes are concerned? I.e. it changes all double quotes to single quotes. I am not s…

---

## [127.0.0.1 and localhost in synchronize module (redux)](https://forum.ansible.com/t/127-0-0-1-and-localhost-in-synchronize-module-redux/21387)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 1\
**Last updated:** [May 10, 2016, 5:32am UTC](https://forum.ansible.com/t/127-0-0-1-and-localhost-in-synchronize-module-redux/21387 "2016-05-10T05:32:31Z")

</div>

Run into a similar problem documented at \<https://github.com/ansible/ansible/issues/5240\> and \<https://groups.google.com/d/msg/ansible-project/gT2eie6SVuU/MwUd44Eh15sJ\> I’m not sure if this is a personal problem or a r…

---

## [New Boto3-only requirement for new  AWS modules](https://forum.ansible.com/t/new-boto3-only-requirement-for-new-aws-modules/21379)

<div class="topic-metadata">

**Author:** [@pjodouin](https://forum.ansible.com/u/pjodouin)\
**Replies:** 3\
**Last updated:** [May 9, 2016, 6:48pm UTC](https://forum.ansible.com/t/new-boto3-only-requirement-for-new-aws-modules/21379 "2016-05-09T18:48:46Z")

</div>

Hi all, My Lambda modules have been sitting in community\_review long enough that they no longer build. I’ve written them with Boto3 but had to include boto as they would not compile otherwise due to some dependancy in t…

---

## [Mesos related modules?](https://forum.ansible.com/t/mesos-related-modules/20486)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 3\
**Last updated:** [May 7, 2016, 1:58pm UTC](https://forum.ansible.com/t/mesos-related-modules/20486 "2016-05-07T13:58:34Z")

</div>

Hi I recently started to work with mesos and discovered really simple frameworks rest APIs: marathon https://mesosphere.github.io/marathon/docs/rest-api.html chronos https://mesos.github.io/chronos/docs/api.html Has …

[Previous page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=56)

[Next page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=58)
