# Ansible Developer

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

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

**Page:** 51

---

## [activating a conda environment in ansible playbook](https://forum.ansible.com/t/activating-a-conda-environment-in-ansible-playbook/23367)

<div class="topic-metadata">

**Author:** [@Jeff3](https://forum.ansible.com/u/Jeff3)\
**Replies:** 0\
**Last updated:** [January 3, 2017, 4:41pm UTC](https://forum.ansible.com/t/activating-a-conda-environment-in-ansible-playbook/23367 "2017-01-03T16:41:11Z")

</div>

Hello I am trying to run a list of tasks (here running airflow but it could be anything really) that require to be executed in a existing conda environment. I would like to do sth like this: tasks: name: activate con…

---

## [SVN module: In check\_mode also check svn.has\_local\_mods()](https://forum.ansible.com/t/svn-module-in-check-mode-also-check-svn-has-local-mods/23362)

<div class="topic-metadata">

**Author:** [@vj.calvo](https://forum.ansible.com/u/vj.calvo)\
**Replies:** 0\
**Last updated:** [January 3, 2017, 1:31pm UTC](https://forum.ansible.com/t/svn-module-in-check-mode-also-check-svn-has-local-mods/23362 "2017-01-03T13:31:27Z")

</div>

Hello, For our deployment purposes using Ansible and SVN we would need to test (check mode, dry-run) before run the deployment playbook. If there is some missing file in the destination it will pass the check-mode but n…

---

## [SunOS user execution profiles](https://forum.ansible.com/t/sunos-user-execution-profiles/23360)

<div class="topic-metadata">

**Author:** [@Antonio\_Huete\_Jimene](https://forum.ansible.com/u/Antonio_Huete_Jimene)\
**Replies:** 0\
**Last updated:** [January 3, 2017, 12:48pm UTC](https://forum.ansible.com/t/sunos-user-execution-profiles/23360 "2017-01-03T12:48:53Z")

</div>

Hi, I would like to know if there is/has been any effort to add support for SunOS user profiles (see -P to useradd(1M) command) to the system/user module. If not, I’d like to work on adding it. I’ve been checking user…

---

## [Glassfish configuration support](https://forum.ansible.com/t/glassfish-configuration-support/23339)

<div class="topic-metadata">

**Author:** [@zochamx](https://forum.ansible.com/u/zochamx)\
**Replies:** 0\
**Last updated:** [December 28, 2016, 12:39pm UTC](https://forum.ansible.com/t/glassfish-configuration-support/23339 "2016-12-28T12:39:34Z")

</div>

Hi all, i 've read enough trying to admin a quite big glassfish infrastructure although i haven’t find any module that handles glassfish application servers. Am i missing sth? In case that indeed there isn’t could i he…

---

## [Which Modules can be use to manage Raid?](https://forum.ansible.com/t/which-modules-can-be-use-to-manage-raid/23324)

<div class="topic-metadata">

**Author:** [@user12](https://forum.ansible.com/u/user12)\
**Replies:** 0\
**Last updated:** [December 23, 2016, 6:46am UTC](https://forum.ansible.com/t/which-modules-can-be-use-to-manage-raid/23324 "2016-12-23T06:46:46Z")

</div>

Which Modules Can be use to manage Raid? Or,How to do with another way? Thanks!!!

---

## [ERROR! 'state' is not a valid attribute for a Task  (selinux module)](https://forum.ansible.com/t/error-state-is-not-a-valid-attribute-for-a-task-selinux-module/23323)

<div class="topic-metadata">

**Author:** [@twinmegami\_arara](https://forum.ansible.com/u/twinmegami_arara)\
**Replies:** 1\
**Last updated:** [December 23, 2016, 1:53am UTC](https://forum.ansible.com/t/error-state-is-not-a-valid-attribute-for-a-task-selinux-module/23323 "2016-12-23T01:53:18Z")

</div>

Doc: http://docs.ansible.com/ansible/selinux\_module.html I wrote below task in a role: \` selinux: state: disabled … name: start docker notify: restart docker \` But got \` ERROR! ‘state’ is not a valid attribu…

---

## [AnsibleError: Unable to create local directories](https://forum.ansible.com/t/ansibleerror-unable-to-create-local-directories/23321)

<div class="topic-metadata">

**Author:** [@jordan](https://forum.ansible.com/u/jordan)\
**Replies:** 4\
**Last updated:** [December 22, 2016, 11:19pm UTC](https://forum.ansible.com/t/ansibleerror-unable-to-create-local-directories/23321 "2016-12-22T23:19:18Z")

</div>

I’m trying to integrate my flask application (which uses the ansible modules for python) and I keep running into this problem. It looks like ansible, upon import, tries to create some temporary directory, but the path th…

---

## [module\_stdout": "/bin/sh: 1: /usr/bin/python: not found\\r\\n](https://forum.ansible.com/t/module-stdout-bin-sh-1-usr-bin-python-not-found-r-n/23316)

<div class="topic-metadata">

**Author:** [@guruprasad\_k](https://forum.ansible.com/u/guruprasad_k)\
**Replies:** 0\
**Last updated:** [December 22, 2016, 5:19am UTC](https://forum.ansible.com/t/module-stdout-bin-sh-1-usr-bin-python-not-found-r-n/23316 "2016-12-22T05:19:50Z")

</div>

Hi, Using Ubuntu 16.04,python 2.7,ansible 2.2.0.0 ansible-playbook -i hostname install.yml -vvv Using /etc/ansible/ansible.cfg as config file PLAYBOOK: install.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [docker-py 2.0.0 support](https://forum.ansible.com/t/docker-py-2-0-0-support/23315)

<div class="topic-metadata">

**Author:** [@Michael\_Kinsley](https://forum.ansible.com/u/Michael_Kinsley)\
**Replies:** 2\
**Last updated:** [December 22, 2016, 12:32am UTC](https://forum.ansible.com/t/docker-py-2-0-0-support/23315 "2016-12-22T00:32:11Z")

</div>

Hi ansible devs, docker 2.0.0 (formerly docker-py) has been released: https://github.com/docker/docker-py/releases/tag/2.0.0 There are a number of breaking changes, including a top-level name change from “docker-py” to…

---

## [Include Vars inside of Variable Array](https://forum.ansible.com/t/include-vars-inside-of-variable-array/23310)

<div class="topic-metadata">

**Author:** [@steve5](https://forum.ansible.com/u/steve5)\
**Replies:** 0\
**Last updated:** [December 21, 2016, 4:22pm UTC](https://forum.ansible.com/t/include-vars-inside-of-variable-array/23310 "2016-12-21T16:22:55Z")

</div>

I wasn’t sure if this is possible, but in the new “name” field in 2.2 is there a way to specify that you could create an array in that variable? I am trying to loop through a bunch of files with vars and want to prevent …

---

## [Back-porting module bug fix to 2.2‏](https://forum.ansible.com/t/back-porting-module-bug-fix-to-2-2/23300)

<div class="topic-metadata">

**Author:** [@Genadi\_Postrilko](https://forum.ansible.com/u/Genadi_Postrilko)\
**Replies:** 0\
**Last updated:** [December 20, 2016, 9:46pm UTC](https://forum.ansible.com/t/back-porting-module-bug-fix-to-2-2/23300 "2016-12-20T21:46:29Z")

</div>

Hello, I have encountered a uri module digest authentication bug on ansible 2.2.0: https://github.com/ansible/ansible/issues/16936 The issue will be resolved at 2.3 by the following pull request: https://github.com/a…

---

## [Loop of JSON called by Ansible task - Jinja2](https://forum.ansible.com/t/loop-of-json-called-by-ansible-task-jinja2/23292)

<div class="topic-metadata">

**Author:** [@Hector\_Marina1](https://forum.ansible.com/u/Hector_Marina1)\
**Replies:** 0\
**Last updated:** [December 20, 2016, 9:36am UTC](https://forum.ansible.com/t/loop-of-json-called-by-ansible-task-jinja2/23292 "2016-12-20T09:36:30Z")

</div>

ISSUE TYPE Feature Idea COMPONENT NAME Template module and URI module ANSIBLE VERSION ansible 2.1.1.0 OS / ENVIRONMENT Centos 6.7 SUMMARY I need to pass to a template several variables, from 2 different tasks with a…

---

## [Skip task in callback\_plugin or stop playbook execution](https://forum.ansible.com/t/skip-task-in-callback-plugin-or-stop-playbook-execution/23221)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 3\
**Last updated:** [December 17, 2016, 11:44pm UTC](https://forum.ansible.com/t/skip-task-in-callback-plugin-or-stop-playbook-execution/23221 "2016-12-17T23:44:13Z")

</div>

I would like to skip a task or all tasks conditionally in my callback\_plugin. Is that possible? I am trying to implement a stop playbook feature where I query an external API in my callback\_plugin, and if a stop flag is …

---

## [ansible 2.0 python api sample code not working](https://forum.ansible.com/t/ansible-2-0-python-api-sample-code-not-working/20985)

<div class="topic-metadata">

**Author:** [@Huan\_He](https://forum.ansible.com/u/Huan_He)\
**Replies:** 2\
**Last updated:** [December 15, 2016, 6:18pm UTC](https://forum.ansible.com/t/ansible-2-0-python-api-sample-code-not-working/20985 "2016-12-15T18:18:40Z")

</div>

I copied the sample code from ansible website and changed some parameters from collections import namedtuple from ansible.parsing.dataloader import DataLoader from ansible.vars import VariableManager from ansible.inv…

---

## [Multiple module\_args](https://forum.ansible.com/t/multiple-module-args/19710)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 4\
**Last updated:** [December 15, 2016, 2:30pm UTC](https://forum.ansible.com/t/multiple-module-args/19710 "2016-12-15T14:30:03Z")

</div>

Hi, I am developing a module (python) which I am calling using ansible.runner and I need to so with multiple module args. For example: args1 = str(sys.argv\[0\]) args2 = str(sys.argv\[1\]) args3 = str(sys.argv\[2\]) From…

---

## [We would like to contributing ansible modules code, would you help us review these moduls before](https://forum.ansible.com/t/we-would-like-to-contributing-ansible-modules-code-would-you-help-us-review-these-moduls-before/23247)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 1\
**Last updated:** [December 13, 2016, 7:53pm UTC](https://forum.ansible.com/t/we-would-like-to-contributing-ansible-modules-code-would-you-help-us-review-these-moduls-before/23247 "2016-12-13T19:53:09Z")

</div>

We are HUAWEI data center CloudEngine switch(CISCO NEXUS switch similar) team。We have developed some Ansible modules to manage HUAWEI switch, and we are developing some other HUAWEI switch Ansible modules. This is our A…

---

## [ansible container and requirements.yml](https://forum.ansible.com/t/ansible-container-and-requirements-yml/23222)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 1\
**Last updated:** [December 12, 2016, 4:29pm UTC](https://forum.ansible.com/t/ansible-container-and-requirements-yml/23222 "2016-12-12T16:29:53Z")

</div>

Hi list, I’m trying to use ansible-container to use a role that I have available via a gitlab installation that is run internally. When I run the main.yml file as part of “ansible-container build” I get this error ans…

---

## [Need help with accessing created instance](https://forum.ansible.com/t/need-help-with-accessing-created-instance/23233)

<div class="topic-metadata">

**Author:** [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Replies:** 0\
**Last updated:** [December 12, 2016, 6:46am UTC](https://forum.ansible.com/t/need-help-with-accessing-created-instance/23233 "2016-12-12T06:46:33Z")

</div>

Hi, I have created an ec2 Instance in AWS using Ansible, I need help to access and configure few things in that instance. I have created, configured and associated a security-group, VPC, Gateway, attached a key-pair as …

---

## [Question about "debug = xxx.stdout" / xxx.stdout\_lines / xxx.stdout\_lines\[0\]](https://forum.ansible.com/t/question-about-debug-xxx-stdout-xxx-stdout-lines-xxx-stdout-lines-0/23226)

<div class="topic-metadata">

**Author:** [@Leon\_Lai](https://forum.ansible.com/u/Leon_Lai)\
**Replies:** 0\
**Last updated:** [December 11, 2016, 8:49am UTC](https://forum.ansible.com/t/question-about-debug-xxx-stdout-xxx-stdout-lines-xxx-stdout-lines-0/23226 "2016-12-11T08:49:14Z")

</div>

Hi there, I am new to Ansible and I am learning this toolkit. When I am dealing w/ the output, I find there are various ways to handle the variables. Some examples shows “debug = xxx.stdout”, Some examples mention “xxx.…

---

## [Service module fails on updated Ubuntu Trusty](https://forum.ansible.com/t/service-module-fails-on-updated-ubuntu-trusty/23217)

<div class="topic-metadata">

**Author:** [@Jesse\_Pretorius](https://forum.ansible.com/u/Jesse_Pretorius)\
**Replies:** 0\
**Last updated:** [December 9, 2016, 5:27pm UTC](https://forum.ansible.com/t/service-module-fails-on-updated-ubuntu-trusty/23217 "2016-12-09T17:27:32Z")

</div>

With thanks to some not so stable changes in Ubuntu packaging, the current fact check for a system using systemd is very broken. For anyone doing multi-platform checks in their code path this is a bit of a disaster. It …

---

## [Trying to create PR to devel branch for new module](https://forum.ansible.com/t/trying-to-create-pr-to-devel-branch-for-new-module/23199)

<div class="topic-metadata">

**Author:** [@Pieter\_Voet](https://forum.ansible.com/u/Pieter_Voet)\
**Replies:** 6\
**Last updated:** [December 9, 2016, 11:40am UTC](https://forum.ansible.com/t/trying-to-create-pr-to-devel-branch-for-new-module/23199 "2016-12-09T11:40:14Z")

</div>

Hi all, I wrote a new module that can add a variable to ‘extra-vars’ from within a play. All logic executes locally, so this module actually is an action plugin. But that also requires a ‘stub’ module in ‘modules/core/…

---

## [Ansible remote management modules problem](https://forum.ansible.com/t/ansible-remote-management-modules-problem/23208)

<div class="topic-metadata">

**Author:** [@user12](https://forum.ansible.com/u/user12)\
**Replies:** 0\
**Last updated:** [December 9, 2016, 4:46am UTC](https://forum.ansible.com/t/ansible-remote-management-modules-problem/23208 "2016-12-09T04:46:08Z")

</div>

I excecut ansible command : ansible 192.168.207.48 -m ipmi\_power -a “user=wq password=abc.123… stste=off” result is : why? i excecute : ipmitool -I lanplus -H 192.168.207.48 -U wq -P abc.123… power off is OK! He…

---

## [Remigrating prmoved PRs](https://forum.ansible.com/t/remigrating-prmoved-prs/23206)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 1\
**Last updated:** [December 8, 2016, 10:28pm UTC](https://forum.ansible.com/t/remigrating-prmoved-prs/23206 "2016-12-08T22:28:04Z")

</div>

IMPORTANT: Unless you received a link to this email added by one of the Ansible Core Team members in your PR you can ignore this email Steps 0) Unless you received a link to this email added by one of the Ansible Core …

---

## [Trouble in using netscaler module of ansible](https://forum.ansible.com/t/trouble-in-using-netscaler-module-of-ansible/23162)

<div class="topic-metadata">

**Author:** [@Chitrangda\_Kapoor](https://forum.ansible.com/u/Chitrangda_Kapoor)\
**Replies:** 3\
**Last updated:** [December 7, 2016, 3:29pm UTC](https://forum.ansible.com/t/trouble-in-using-netscaler-module-of-ansible/23162 "2016-12-07T15:29:54Z")

</div>

Hi, I am trying to use netscaler module of ansible like below:- “ansible host -m netscaler -a “nsc\_host=10.102.56.141 user=nsroot password=nsroot”” But I am getting the below error:- ‘ERROR! Specified hosts and/or --…

---

## [Need help with AWS](https://forum.ansible.com/t/need-help-with-aws/23178)

<div class="topic-metadata">

**Author:** [@Chethan\_ARAVIND\_T\_S](https://forum.ansible.com/u/Chethan_ARAVIND_T_S)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 9:39am UTC](https://forum.ansible.com/t/need-help-with-aws/23178 "2016-12-06T09:39:31Z")

</div>

Hi, I’ve been trying to create AWS instances using Ansible. Is it mandatory that I have to create a VPC, assign a Gateway and a security group for the instance? If yes can anyone help me by sending an example playbook t…

---

## [handling BadHostKeyException?](https://forum.ansible.com/t/handling-badhostkeyexception/23177)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [December 6, 2016, 6:01am UTC](https://forum.ansible.com/t/handling-badhostkeyexception/23177 "2016-12-06T06:01:03Z")

</div>

Is anyone aware of how to handle the below exception in the \*\_command network modules? -tim File “/var/folders/jc/9d1188j962931rhqrlm4173w5j5m45/T/ansible\_bLe9q4/ansible\_modlib.zip/ansible/module\_utils/shell.py”, line …

---

## [modules for Packet host (extras/cloud/packet/)](https://forum.ansible.com/t/modules-for-packet-host-extras-cloud-packet/23103)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 1\
**Last updated:** [December 5, 2016, 1:12pm UTC](https://forum.ansible.com/t/modules-for-packet-host-extras-cloud-packet/23103 "2016-12-05T13:12:02Z")

</div>

Hello, I’m about to start working on modules for http://www.packet.net. Packet is baremetal infra provider. They have rather usual resource types: devices (servers) volumes ssh keys IP addresses snapshot policies I …

---

## [Callback plugin Types](https://forum.ansible.com/t/callback-plugin-types/23168)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 2\
**Last updated:** [December 4, 2016, 2:04am UTC](https://forum.ansible.com/t/callback-plugin-types/23168 "2016-12-04T02:04:20Z")

</div>

What are the different types of Callback\_plugins - notification, stdout, aggregate ? Any more? And what are the differences? I am trying to develop a callback\_plugin using the json plugin as base. But I would like stdo…

---

## [output var not used?](https://forum.ansible.com/t/output-var-not-used/23166)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 0\
**Last updated:** [December 3, 2016, 6:05am UTC](https://forum.ansible.com/t/output-var-not-used/23166 "2016-12-03T06:05:19Z")

</div>

hi folks, I was looking at the nxos\_command module here https://github.com/ansible/ansible-modules-core/blob/6890003c4f8dcd8f63a5b280211068cfaf1dcc35/network/nxos/nxos\_command.py#L245 and noticed it used a cmd.get(‘out…

---

## [Hierarchical hostgroups](https://forum.ansible.com/t/hierarchical-hostgroups/23154)

<div class="topic-metadata">

**Author:** [@Gregor\_Giesen](https://forum.ansible.com/u/Gregor_Giesen)\
**Replies:** 2\
**Last updated:** [December 1, 2016, 10:49pm UTC](https://forum.ansible.com/t/hierarchical-hostgroups/23154 "2016-12-01T22:49:47Z")

</div>

Hello everybody, our current configuration management system uses a path notation for hierarchical hostgroups (subgroups), i.e. testgroup testgroup/subgroup1 testgroup/subgroup2 which would correspond to Ansible's …

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

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