# Ansible Developer

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

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

**Page:** 47

---

## [windows; upgrade to powershell 5.1](https://forum.ansible.com/t/windows-upgrade-to-powershell-5-1/24163)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 2\
**Last updated:** [April 24, 2017, 4:35pm UTC](https://forum.ansible.com/t/windows-upgrade-to-powershell-5-1/24163 "2017-04-24T16:35:47Z")

</div>

Just to say I’ve started working on a script for this. If anyone has something in the works let me know, otherwise I’ll press on with this. I plan to start with a script similar to the upgrade to ps3 one but depending …

---

## [Callback plugins : host available as a task attribute in v2\_playbook\_on\_task\_start()](https://forum.ansible.com/t/callback-plugins-host-available-as-a-task-attribute-in-v2-playbook-on-task-start/24251)

<div class="topic-metadata">

**Author:** [@Eric\_Salome](https://forum.ansible.com/u/Eric_Salome)\
**Replies:** 3\
**Last updated:** [April 23, 2017, 12:43pm UTC](https://forum.ansible.com/t/callback-plugins-host-available-as-a-task-attribute-in-v2-playbook-on-task-start/24251 "2017-04-23T12:43:57Z")

</div>

Hi, In an Ansible V2 callback plugin : Within def v2\_playbook\_on\_play\_start(self, play): I have the list of hosts to play with in play.hosts (which is fine) Within def v2\_playbook\_on\_stats(self, stats): I have the l…

---

## [arguments](https://forum.ansible.com/t/arguments/24272)

<div class="topic-metadata">

**Author:** [@Patricia\_Witten](https://forum.ansible.com/u/Patricia_Witten)\
**Replies:** 1\
**Last updated:** [April 21, 2017, 1:17pm UTC](https://forum.ansible.com/t/arguments/24272 "2017-04-21T13:17:34Z")

</div>

This is from a yaml script. The syntax checks ok but the arguments don’t seem right. It’s using the vyos\_config module. It fails. Does anyone have suggestions or thoughts on this message? “changed”: false, “failed”: t…

---

## [Logout of session and logback in usng ansible playbook](https://forum.ansible.com/t/logout-of-session-and-logback-in-usng-ansible-playbook/24256)

<div class="topic-metadata">

**Author:** [@harish1](https://forum.ansible.com/u/harish1)\
**Replies:** 0\
**Last updated:** [April 19, 2017, 10:16pm UTC](https://forum.ansible.com/t/logout-of-session-and-logback-in-usng-ansible-playbook/24256 "2017-04-19T22:16:54Z")

</div>

---

## [Executing loop in loop](https://forum.ansible.com/t/executing-loop-in-loop/24249)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 1\
**Last updated:** [April 19, 2017, 3:03pm UTC](https://forum.ansible.com/t/executing-loop-in-loop/24249 "2017-04-19T15:03:48Z")

</div>

I got a code which check whether local file exists based on with\_items and keeps result in array now based on this array i have to copy the local file to remote dir again using loop name: check wheter we have local co…

---

## [osx\_defaults missing a data type](https://forum.ansible.com/t/osx-defaults-missing-a-data-type/24238)

<div class="topic-metadata">

**Author:** [@Adrian\_Wallaschek](https://forum.ansible.com/u/Adrian_Wallaschek)\
**Replies:** 0\
**Last updated:** [April 18, 2017, 1:01pm UTC](https://forum.ansible.com/t/osx-defaults-missing-a-data-type/24238 "2017-04-18T13:01:20Z")

</div>

Hi! I just came across a missing datatype in this area: dict. Test-case: I tried to add a directory to the user-folders for Desktop wallpapers. \` $ defaults read com.apple.systempreferences DSKDesktopPrefPane { Use…

---

## [rollback of tasks](https://forum.ansible.com/t/rollback-of-tasks/24223)

<div class="topic-metadata">

**Author:** [@Ted\_Elhourani](https://forum.ansible.com/u/Ted_Elhourani)\
**Replies:** 1\
**Last updated:** [April 15, 2017, 3:27pm UTC](https://forum.ansible.com/t/rollback-of-tasks/24223 "2017-04-15T15:27:31Z")

</div>

I am trying to find out the best practice for writing modules that are composed of multiple config steps. For example, a module when it executes with given input might go through a sequence of API requests, checking for…

---

## [Bug with Custom Setup.ps1 File in New PPA Release](https://forum.ansible.com/t/bug-with-custom-setup-ps1-file-in-new-ppa-release/20206)

<div class="topic-metadata">

**Author:** [@Corwin\_Brown](https://forum.ansible.com/u/Corwin_Brown)\
**Replies:** 5\
**Last updated:** [April 13, 2017, 4:28pm UTC](https://forum.ansible.com/t/bug-with-custom-setup-ps1-file-in-new-ppa-release/20206 "2017-04-13T16:28:56Z")

</div>

Hey gang, I have a custom version of the ‘setup.ps1’ file in my ‘/etc/ansible/library’ (It allows me to gather facter facts on Windows). In 1.9 Ansible would correctly run ‘setup.py’ on Linux hosts, and my custom ‘libra…

---

## [usage of loop (with\_items), register and debug](https://forum.ansible.com/t/usage-of-loop-with-items-register-and-debug/24205)

<div class="topic-metadata">

**Author:** [@ravi\_katta](https://forum.ansible.com/u/ravi_katta)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 1:58pm UTC](https://forum.ansible.com/t/usage-of-loop-with-items-register-and-debug/24205 "2017-04-13T13:58:35Z")

</div>

Hello, checking if anyone have any insight or pointing me to a solution, about using loops with register and debug: I’m looking for a) just debug msg output whenever the mountpoint on remote server is not configured. …

---

## [Can't i use prompt module in ansible tower?](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24197)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 4:24am UTC](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24197 "2017-04-12T04:24:09Z")

</div>

In Ansible Tower, I can’t take any user input by using module prompt But I can do it in linux shell What can i do ? Are there people who have same problem like me ?

---

## [ansible with nohup not stable](https://forum.ansible.com/t/ansible-with-nohup-not-stable/24188)

<div class="topic-metadata">

**Author:** [@zhangjie](https://forum.ansible.com/u/zhangjie)\
**Replies:** 1\
**Last updated:** [April 11, 2017, 4:39pm UTC](https://forum.ansible.com/t/ansible-with-nohup-not-stable/24188 "2017-04-11T16:39:01Z")

</div>

ansible is running on myMaster,and there is 14 clients（myhost1 to myhost14） to be managed.my command is like below: ansible myhosti -m shell -a “nohup sh /home/hadoop/calculate.sh \>\> /home/hadoop/logs/myhosti.log 2\>&1 &”…

---

## [SOPS support](https://forum.ansible.com/t/sops-support/21332)

<div class="topic-metadata">

**Author:** [@seth](https://forum.ansible.com/u/seth)\
**Replies:** 1\
**Last updated:** [April 11, 2017, 3:17pm UTC](https://forum.ansible.com/t/sops-support/21332 "2017-04-11T15:17:23Z")

</div>

I’m interested in contributing SOPS support to Ansible. SOPS https://github.com/mozilla/sops is a tool for encrypting only the values in YAML (and JSON) files using AWS KMS or GPG keys. Encrypting only the values makes …

---

## [task execution order](https://forum.ansible.com/t/task-execution-order/24183)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 2\
**Last updated:** [April 11, 2017, 7:44am UTC](https://forum.ansible.com/t/task-execution-order/24183 "2017-04-11T07:44:02Z")

</div>

Hi, I'm facing issue, which how the ansible is running tasks. It's internal behaviour of ansible core II donot have answer on users forum. I'm writing mostly multi os/version enabled roles. See may template role on g…

---

## [Create directory in /etc/ and copy files without password using ansible](https://forum.ansible.com/t/create-directory-in-etc-and-copy-files-without-password-using-ansible/21911)

<div class="topic-metadata">

**Author:** [@Anand\_Abyankar](https://forum.ansible.com/u/Anand_Abyankar)\
**Replies:** 4\
**Last updated:** [April 11, 2017, 5:36am UTC](https://forum.ansible.com/t/create-directory-in-etc-and-copy-files-without-password-using-ansible/21911 "2017-04-11T05:36:23Z")

</div>

I an new to ansible. I may be saying something which is completely wrong. I created VM using KVM, both remote and local are running on Ubuntu 16.0.4 Now I configured ansible by creating a key as ssh-keygen -t rsa -b 4…

---

## [Ansible UI customization, trial version](https://forum.ansible.com/t/ansible-ui-customization-trial-version/24186)

<div class="topic-metadata">

**Author:** [@Guruprasad\_Krishnamu](https://forum.ansible.com/u/Guruprasad_Krishnamu)\
**Replies:** 0\
**Last updated:** [April 11, 2017, 3:10am UTC](https://forum.ansible.com/t/ansible-ui-customization-trial-version/24186 "2017-04-11T03:10:39Z")

</div>

Hello, I want to customize the tower UI and delegate a limited set of features to associates. It was not clear reading through the docs whether the trial version supported this, although there is mention that the license…

---

## [Wanting to submit module to core to support downloads from Nexus and artifactory repositories](https://forum.ansible.com/t/wanting-to-submit-module-to-core-to-support-downloads-from-nexus-and-artifactory-repositories/24136)

<div class="topic-metadata">

**Author:** [@Giles\_Westwood](https://forum.ansible.com/u/Giles_Westwood)\
**Replies:** 1\
**Last updated:** [April 7, 2017, 3:15am UTC](https://forum.ansible.com/t/wanting-to-submit-module-to-core-to-support-downloads-from-nexus-and-artifactory-repositories/24136 "2017-04-07T03:15:23Z")

</div>

Hi Ansible devs, I’ve helped out a bit with a module that I’d like to get into core:- https://github.com/gilesw/ansible-nexus/ Where should I add it in lib/ansible/modules when I submit my pull request?

---

## [Postgresql\_exec module](https://forum.ansible.com/t/postgresql-exec-module/24137)

<div class="topic-metadata">

**Author:** [@Giles\_Westwood](https://forum.ansible.com/u/Giles_Westwood)\
**Replies:** 2\
**Last updated:** [April 6, 2017, 12:08pm UTC](https://forum.ansible.com/t/postgresql-exec-module/24137 "2017-04-06T12:08:54Z")

</div>

Hi Ansible devs, I’m attempting to make this module 2.x compatible in the hope I can get it added to core because it would nicely add to the postgresql\_ set of modules https://github.com/jirutka/ansible-modules/blob/ma…

---

## [Make it possible to set tasks\_from to None in include\_role](https://forum.ansible.com/t/make-it-possible-to-set-tasks-from-to-none-in-include-role/24119)

<div class="topic-metadata">

**Author:** [@Oyvind\_Saltvik](https://forum.ansible.com/u/Oyvind_Saltvik)\
**Replies:** 6\
**Last updated:** [April 5, 2017, 11:51pm UTC](https://forum.ansible.com/t/make-it-possible-to-set-tasks-from-to-none-in-include-role/24119 "2017-04-05T23:51:52Z")

</div>

If you want to just include defaults, vars and handlers it would be nice to be able to not run any of the roles tasks.

---

## [Wanting to get a logrotate module into ansible core](https://forum.ansible.com/t/wanting-to-get-a-logrotate-module-into-ansible-core/24138)

<div class="topic-metadata">

**Author:** [@Giles\_Westwood](https://forum.ansible.com/u/Giles_Westwood)\
**Replies:** 1\
**Last updated:** [April 5, 2017, 3:38pm UTC](https://forum.ansible.com/t/wanting-to-get-a-logrotate-module-into-ansible-core/24138 "2017-04-05T15:38:59Z")

</div>

Hi Ansible devs, I’m wanting to get this module into ansible core. Which area should I add it into in lib/ansible/modules? https://github.com/gilesw/ansible-logrotate

---

## [Ansible v2.4.0 - Handlers from included roles fail](https://forum.ansible.com/t/ansible-v2-4-0-handlers-from-included-roles-fail/24129)

<div class="topic-metadata">

**Author:** [@sylvain.gable](https://forum.ansible.com/u/sylvain.gable)\
**Replies:** 1\
**Last updated:** [April 4, 2017, 9:34am UTC](https://forum.ansible.com/t/ansible-v2-4-0-handlers-from-included-roles-fail/24129 "2017-04-04T09:34:02Z")

</div>

Hello, I’ve been playing with ansible for a couple of days and ran into some trouble with Ansible v2.4.0 (the “git” version). Following the best practices of the documentation, I use roles and my project has basically …

---

## [Yum Module - EL6 Systems Permission denied](https://forum.ansible.com/t/yum-module-el6-systems-permission-denied/24125)

<div class="topic-metadata">

**Author:** [@Martin\_Urbach](https://forum.ansible.com/u/Martin_Urbach)\
**Replies:** 1\
**Last updated:** [April 3, 2017, 2:03pm UTC](https://forum.ansible.com/t/yum-module-el6-systems-permission-denied/24125 "2017-04-03T14:03:54Z")

</div>

HI all! I try to install some packages via the Ansible yum Module on CentOS 6 (python --version Python 2.6.6) systems but I getting the following error: I’ve started the Module-Script with root - permission /dev/shm/…

---

## [Powershell Version 2 - Got it working and would like to discuss](https://forum.ansible.com/t/powershell-version-2-got-it-working-and-would-like-to-discuss/20869)

<div class="topic-metadata">

**Author:** [@Eric\_Mowry](https://forum.ansible.com/u/Eric_Mowry)\
**Replies:** 7\
**Last updated:** [March 31, 2017, 5:28pm UTC](https://forum.ansible.com/t/powershell-version-2-got-it-working-and-would-like-to-discuss/20869 "2017-03-31T17:28:05Z")

</div>

I have read on blogs, forums and mailing lists that Powershell Version 2 will not be supported however I had a need to support Powershell 2 in my environment and spent some time looking at what it would take to make it w…

---

## [Inventory Hostnames and Docker dynamic inventory](https://forum.ansible.com/t/inventory-hostnames-and-docker-dynamic-inventory/24105)

<div class="topic-metadata">

**Author:** [@Milo\_Minderbinder](https://forum.ansible.com/u/Milo_Minderbinder)\
**Replies:** 2\
**Last updated:** [March 31, 2017, 4:13am UTC](https://forum.ansible.com/t/inventory-hostnames-and-docker-dynamic-inventory/24105 "2017-03-31T04:13:52Z")

</div>

I was thinking of creating an issue & submitting a PR to address a core issue with the docker dynamic inventory script (ansible/contrib/inventory/docker.py). In its current state, it adds one or more docker hosts to the …

---

## [Is packaging module a part of Core?](https://forum.ansible.com/t/is-packaging-module-a-part-of-core/24108)

<div class="topic-metadata">

**Author:** [@Wang\_Hao](https://forum.ansible.com/u/Wang_Hao)\
**Replies:** 1\
**Last updated:** [March 31, 2017, 12:12am UTC](https://forum.ansible.com/t/is-packaging-module-a-part-of-core/24108 "2017-03-31T00:12:39Z")

</div>

I saw there are two different files with the same name under lib/ansible/modules/core/packaging/os/apt.py and lib/ansible/modules/packaging/os/apt.py. Is apt module managed by Core and also 3rd party? This question is f…

---

## [Interested in contributing to Ansible module](https://forum.ansible.com/t/interested-in-contributing-to-ansible-module/24094)

<div class="topic-metadata">

**Author:** [@trishna](https://forum.ansible.com/u/trishna)\
**Replies:** 2\
**Last updated:** [March 29, 2017, 1:00pm UTC](https://forum.ansible.com/t/interested-in-contributing-to-ansible-module/24094 "2017-03-29T13:00:23Z")

</div>

Hi, I am going to write an Ansible module. I need some help on the following stuffs: How to setup development environment for Ansible module contribution. Ansible module boilerplate documentation. How to test the mod…

---

## [looking for feedback on an idea for a PR](https://forum.ansible.com/t/looking-for-feedback-on-an-idea-for-a-pr/24085)

<div class="topic-metadata">

**Author:** [@michaelconlon0](https://forum.ansible.com/u/michaelconlon0)\
**Replies:** 6\
**Last updated:** [March 28, 2017, 9:00pm UTC](https://forum.ansible.com/t/looking-for-feedback-on-an-idea-for-a-pr/24085 "2017-03-28T21:00:43Z")

</div>

At my company, we currently use a patch file to get this result, and it’s been working great for over a year…so I figured it might be worth submitting a PR. However, I’m not sure how it would be received from a design pe…

---

## [module.exit\_json with rc \> 0](https://forum.ansible.com/t/module-exit-json-with-rc-0/24070)

<div class="topic-metadata">

**Author:** [@Peter\_Oliver](https://forum.ansible.com/u/Peter_Oliver)\
**Replies:** 1\
**Last updated:** [March 28, 2017, 8:34am UTC](https://forum.ansible.com/t/module-exit-json-with-rc-0/24070 "2017-03-28T08:34:56Z")

</div>

From a module, if I call module.exit\_json() with a variable called rc with some value greater than zero, Ansible always treats the task as failed (despite me not having called module.fail\_json()). Is there some way to …

---

## [ipv6 support in AWS VPC modules](https://forum.ansible.com/t/ipv6-support-in-aws-vpc-modules/24060)

<div class="topic-metadata">

**Author:** [@Daniel\_Shepherd](https://forum.ansible.com/u/Daniel_Shepherd)\
**Replies:** 0\
**Last updated:** [March 24, 2017, 6:49pm UTC](https://forum.ansible.com/t/ipv6-support-in-aws-vpc-modules/24060 "2017-03-24T18:49:29Z")

</div>

I was wondering if there has been any discussion around updating the AWS VPC modules to to support associating IPv6 cidr blocks to the VPC, subnets, and also using IPv6 addresses in Network ACLs and Security groups. This…

---

## [how does one escape this line](https://forum.ansible.com/t/how-does-one-escape-this-line/24037)

<div class="topic-metadata">

**Author:** [@Tony\_Walsh](https://forum.ansible.com/u/Tony_Walsh)\
**Replies:** 4\
**Last updated:** [March 24, 2017, 1:49pm UTC](https://forum.ansible.com/t/how-does-one-escape-this-line/24037 "2017-03-24T13:49:42Z")

</div>

Folks I would like to implement the following command via ansible’s win\_command module: %comspec% /k ““C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat”” amd64 I have tried everything I can think o…

---

## [Looping over subelements](https://forum.ansible.com/t/looping-over-subelements/24000)

<div class="topic-metadata">

**Author:** [@Jason\_Allen](https://forum.ansible.com/u/Jason_Allen)\
**Replies:** 2\
**Last updated:** [March 22, 2017, 5:52pm UTC](https://forum.ansible.com/t/looping-over-subelements/24000 "2017-03-22T17:52:31Z")

</div>

Hello, I’m unable to get the “looping over subelements” example on this page: http://docs.ansible.com/ansible/playbooks\_loops.html#looping-over-subelements to work. Specifically, when I copy-and-paste “users” into my …

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

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