# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=325

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

**Page:** 326

---

## [netapp - na\_cdot\_user\_role](https://forum.ansible.com/t/netapp-na-cdot-user-role/23803)

<div class="topic-metadata">

**Author:** [@e-on\_mytube](https://forum.ansible.com/u/e-on_mytube)\
**Replies:** 4\
**Last updated:** [July 24, 2017, 5:46pm UTC](https://forum.ansible.com/t/netapp-na-cdot-user-role/23803 "2017-07-24T17:46:04Z")

</div>

Hi, i try to set role on my storagebox by using module: https://docs.ansible.com/ansible/na\_cdot\_user\_role\_module.html but run in following issue: \` ERROR! ‘na\_cdot\_user\_role’ is not a valid attribute for a Play Th…

---

## ["msg": "error connecting to the device: Unexpected session close" -While connecting to cisco ios-xr router with netconf](https://forum.ansible.com/t/msg-error-connecting-to-the-device-unexpected-session-close-while-connecting-to-cisco-ios-xr-router-with-netconf/25069)

<div class="topic-metadata">

**Author:** [@jaychandran\_subraman](https://forum.ansible.com/u/jaychandran_subraman)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 5:24pm UTC](https://forum.ansible.com/t/msg-error-connecting-to-the-device-unexpected-session-close-while-connecting-to-cisco-ios-xr-router-with-netconf/25069 "2017-07-24T17:24:02Z")

</div>

Hi , I tried using netconf/XML rpc with ansible for netconf\_config to cisco ios\_xr router and we got the below error “msg”: “error connecting to the device: Unexpected session close” Ansible version we are using is 2.…

---

## [Ansible modifies PYTHONPATH which causes Python commands to fail](https://forum.ansible.com/t/ansible-modifies-pythonpath-which-causes-python-commands-to-fail/25041)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 3\
**Last updated:** [July 24, 2017, 2:41pm UTC](https://forum.ansible.com/t/ansible-modifies-pythonpath-which-causes-python-commands-to-fail/25041 "2017-07-24T14:41:59Z")

</div>

Ansible appears to modify PYTHONPATH internally to vendored versions of some modules. This causes Python scripts executed within playbooks to potentially fail if there are module conflicts. # ansible-playbook -e “ansible…

---

## [Failed Deploy (Updating Ubunto) broken modul, please help !!](https://forum.ansible.com/t/failed-deploy-updating-ubunto-broken-modul-please-help/25059)

<div class="topic-metadata">

**Author:** [@Restu\_Nursobah](https://forum.ansible.com/u/Restu_Nursobah)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 1:56pm UTC](https://forum.ansible.com/t/failed-deploy-updating-ubunto-broken-modul-please-help/25059 "2017-07-24T13:56:02Z")

</div>

I in research project, i now im stuck here cause this message. Did anyone know how to fix this ? and this is the roles

---

## [What traces does Ansible leave on remote hosts and how can I remove them?](https://forum.ansible.com/t/what-traces-does-ansible-leave-on-remote-hosts-and-how-can-i-remove-them/24884)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 4\
**Last updated:** [July 24, 2017, 1:53pm UTC](https://forum.ansible.com/t/what-traces-does-ansible-leave-on-remote-hosts-and-how-can-i-remove-them/24884 "2017-07-24T13:53:25Z")

</div>

I noticed that Ansible keeps a ~/.ansible directory. How can I delete it? Are there other traces of Ansible on the VM being configured?

---

## [service module doesnt work](https://forum.ansible.com/t/service-module-doesnt-work/25055)

<div class="topic-metadata">

**Author:** [@Gaurav1212](https://forum.ansible.com/u/Gaurav1212)\
**Replies:** 3\
**Last updated:** [July 24, 2017, 1:11pm UTC](https://forum.ansible.com/t/service-module-doesnt-work/25055 "2017-07-24T13:11:14Z")

</div>

Hi, I am trying to restart the cron and httpd services, but unable to do so with ansible. Output shows OK, but changed=0. See below output. \[root@slc09vev ansible\]# ansible-playbook restart.cron.pb.yml PLAY \[This is …

---

## [My first steps: apt module](https://forum.ansible.com/t/my-first-steps-apt-module/25067)

<div class="topic-metadata">

**Author:** [@Peter\_Kaagman](https://forum.ansible.com/u/Peter_Kaagman)\
**Replies:** 3\
**Last updated:** [July 24, 2017, 12:42pm UTC](https://forum.ansible.com/t/my-first-steps-apt-module/25067 "2017-07-24T12:42:53Z")

</div>

Hi there group, I’m making my first baby steps with ansible. After fooling around with ad-hoc command I thought I’d make the steps to playbooks. Looks promissing :smiley: Ultimate goal is managing my switches, have bee…

---

## [ldap\_attr stops processing entries and hangs the playbook run](https://forum.ansible.com/t/ldap-attr-stops-processing-entries-and-hangs-the-playbook-run/25063)

<div class="topic-metadata">

**Author:** [@Asil](https://forum.ansible.com/u/Asil)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 12:15pm UTC](https://forum.ansible.com/t/ldap-attr-stops-processing-entries-and-hangs-the-playbook-run/25063 "2017-07-24T12:15:33Z")

</div>

Hi, I’m seemingly having an issue with the ldap\_attr module - it just stops processing ldap atrributes. I’m defining multiple dictionaries then adding them to a list of lists to process them, e.g: \` VARS Define list o…

---

## [is log\_driver must even for "json-file"?](https://forum.ansible.com/t/is-log-driver-must-even-for-json-file/25064)

<div class="topic-metadata">

**Author:** [@kavya\_KULSHRESHTHA](https://forum.ansible.com/u/kavya_KULSHRESHTHA)\
**Replies:** 0\
**Last updated:** [July 24, 2017, 10:02am UTC](https://forum.ansible.com/t/is-log-driver-must-even-for-json-file/25064 "2017-07-24T10:02:28Z")

</div>

Hi, I started a container using ansible without specifying log-driver as “json-file” is the default one, but I added below log\_options: log\_options: max-size: “10m” max-file: “2” Ansible version: 2.2.1.0 What I exp…

---

## [How Ansible is  different from shell  or  perl scripting?](https://forum.ansible.com/t/how-ansible-is-different-from-shell-or-perl-scripting/25057)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 2\
**Last updated:** [July 23, 2017, 6:15pm UTC](https://forum.ansible.com/t/how-ansible-is-different-from-shell-or-perl-scripting/25057 "2017-07-23T18:15:44Z")

</div>

Hi All, could you please tell in layman language how ansible different from Shell or pearl scripting apart from Ansible Orchestration and Ansible Tower Regards Kanna

---

## [Help testing new module](https://forum.ansible.com/t/help-testing-new-module/25058)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 5\
**Last updated:** [July 23, 2017, 5:16pm UTC](https://forum.ansible.com/t/help-testing-new-module/25058 "2017-07-23T17:16:31Z")

</div>

I have created a pull request for a module for google cloud (PR 27194). There are 4 tests that fail, basically all the same: ansible-test sanity --test import --python xxx I have no idea how to fix this. The module nee…

---

## [Ansible "file" module and attributes in 2.3.1.0](https://forum.ansible.com/t/ansible-file-module-and-attributes-in-2-3-1-0/25046)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 2\
**Last updated:** [July 23, 2017, 4:26pm UTC](https://forum.ansible.com/t/ansible-file-module-and-attributes-in-2-3-1-0/25046 "2017-07-23T16:26:08Z")

</div>

I’ve got a set of systems that have a configuration file with the “immutable” flag set on them by a previous setup process. The “lsattr /etc/security/access.conf” on a RHEL 6 system shows the “i” flag set. Manually doing…

---

## [What do the verbose levels enable in Ansible?](https://forum.ansible.com/t/what-do-the-verbose-levels-enable-in-ansible/25054)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 2\
**Last updated:** [July 23, 2017, 3:23pm UTC](https://forum.ansible.com/t/what-do-the-verbose-levels-enable-in-ansible/25054 "2017-07-23T15:23:26Z")

</div>

I am asking mainly the difference among -v, -vv and -vvv. I know -vvvv enables connection output.

---

## [Environment variables understood by Ansible](https://forum.ansible.com/t/environment-variables-understood-by-ansible/25053)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 2\
**Last updated:** [July 23, 2017, 3:22pm UTC](https://forum.ansible.com/t/environment-variables-understood-by-ansible/25053 "2017-07-23T15:22:56Z")

</div>

Where can I find a list of environment variables that modify Ansible parameters? I am talking about the environment variables one sets before calling Ansible, eg ‘ENV\_VAR1=something ansible -i …’.

---

## [Run playbook in --check mode from the target](https://forum.ansible.com/t/run-playbook-in-check-mode-from-the-target/25004)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [July 22, 2017, 1:40pm UTC](https://forum.ansible.com/t/run-playbook-in-check-mode-from-the-target/25004 "2017-07-22T13:40:34Z")

</div>

Is there any way from the target machine to run it’s playbook(s) in --check mode and display output on the target machine? I’m hoping for something smoother than ssh’ing to the control machine, running intended playbook(…

---

## [Creating environmental variable in ansible playbook](https://forum.ansible.com/t/creating-environmental-variable-in-ansible-playbook/24986)

<div class="topic-metadata">

**Author:** [@Prakash\_Khadka](https://forum.ansible.com/u/Prakash_Khadka)\
**Replies:** 5\
**Last updated:** [July 22, 2017, 1:21pm UTC](https://forum.ansible.com/t/creating-environmental-variable-in-ansible-playbook/24986 "2017-07-22T13:21:33Z")

</div>

I have created a playbook. I want to define environmental variables when I execute a task. name: Executing scripts shell: sh /root/something.sh register: shell environment: SOMETHING: something This is not working…

---

## [Lineinfile - replacing regex instead of placing text after insertafter](https://forum.ansible.com/t/lineinfile-replacing-regex-instead-of-placing-text-after-insertafter/24586)

<div class="topic-metadata">

**Author:** [@Listing](https://forum.ansible.com/u/Listing)\
**Replies:** 6\
**Last updated:** [July 22, 2017, 1:14pm UTC](https://forum.ansible.com/t/lineinfile-replacing-regex-instead-of-placing-text-after-insertafter/24586 "2017-07-22T13:14:29Z")

</div>

Hi guys, I have some problems with the lineinfile module. I try to add ‘inserted\_text’ after ‘#insertbelow’ when ‘this’ has been found in /etc/ansible/lineinfile/lol. This is my task:

---

## [Ten Steps To Get Ansible Working With Windows Machines](https://forum.ansible.com/t/ten-steps-to-get-ansible-working-with-windows-machines/25056)

<div class="topic-metadata">

**Author:** [@T.J\_Yang](https://forum.ansible.com/u/T.J_Yang)\
**Replies:** 0\
**Last updated:** [July 22, 2017, 10:34am UTC](https://forum.ansible.com/t/ten-steps-to-get-ansible-working-with-windows-machines/25056 "2017-07-22T10:34:38Z")

</div>

@skinnedknuckles Just want to say thanks for your kindess to provide this step-by-step procedure. This is very useful for ansible new comer like me. tj |

---

## [ERROR! 'with\_ldap' is not valid attribute for a Task](https://forum.ansible.com/t/error-with-ldap-is-not-valid-attribute-for-a-task/25040)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Sz](https://forum.ansible.com/u/Grzegorz_Sz)\
**Replies:** 3\
**Last updated:** [July 22, 2017, 3:50am UTC](https://forum.ansible.com/t/error-with-ldap-is-not-valid-attribute-for-a-task/25040 "2017-07-22T03:50:11Z")

</div>

Hi, I use ‘with\_ldap’ role from lookup\_module. It seems that my playbook doesn’t see it. There is an error: ERROR! ‘with\_ldap’ is not valid attribute for a Task Can anybody help me, please ? My task: name: List gro…

---

## [Ansible 2.4 Freeze Dates](https://forum.ansible.com/t/ansible-2-4-freeze-dates/25051)

<div class="topic-metadata">

**Author:** [@thaumos](https://forum.ansible.com/u/thaumos)\
**Replies:** 0\
**Last updated:** [July 21, 2017, 6:11pm UTC](https://forum.ansible.com/t/ansible-2-4-freeze-dates/25051 "2017-07-21T18:11:46Z")

</div>

Hello folks, Just a heads up! We have solidified the release schedule for the next version of Ansible. For those interested, the roadmap for the next version can be found here. Core Engine Freeze and Module Freeze: 15 …

---

## [Change in location of Ansible packages](https://forum.ansible.com/t/change-in-location-of-ansible-packages/25049)

<div class="topic-metadata">

**Author:** [@Jason\_McKerr](https://forum.ansible.com/u/Jason_McKerr)\
**Replies:** 0\
**Last updated:** [July 21, 2017, 5:56pm UTC](https://forum.ansible.com/t/change-in-location-of-ansible-packages/25049 "2017-07-21T17:56:24Z")

</div>

In order to align better with Red Hat processes, the Ansible team will be making some changes in how Ansible packages are distributed to the community. For users of RHEL/CentOS/Scientific Linux version 7, the Ansible pa…

---

## [How to \*not\* print ansible diagnostic error messages?](https://forum.ansible.com/t/how-to-not-print-ansible-diagnostic-error-messages/25045)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 3\
**Last updated:** [July 21, 2017, 3:41pm UTC](https://forum.ansible.com/t/how-to-not-print-ansible-diagnostic-error-messages/25045 "2017-07-21T15:41:23Z")

</div>

Hi, I have a playbook which executes a local task from which I need the exit status in later steps: - name: Get exit status of ./run.sh local\_action: command ./run.sh register: ES ignore\_erro…

---

## [Ansible Silo - Ansible in a 100% controlled environment](https://forum.ansible.com/t/ansible-silo-ansible-in-a-100-controlled-environment/25044)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 0\
**Last updated:** [July 21, 2017, 2:20pm UTC](https://forum.ansible.com/t/ansible-silo-ansible-in-a-100-controlled-environment/25044 "2017-07-21T14:20:10Z")

</div>

Fellow Ansible users, I’d like to bring to your attention the release of Ansible Silo. Ansible Silo is a drop-in replacement for Ansible packing Ansible with all it’s dependencies into a docker image. The main feature…

---

## [Loop using with\_items twice](https://forum.ansible.com/t/loop-using-with-items-twice/25039)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [July 21, 2017, 1:26pm UTC](https://forum.ansible.com/t/loop-using-with-items-twice/25039 "2017-07-21T13:26:23Z")

</div>

What is the correct way to use with\_Items to loop over two files? The playbook is failing at the 2nd task Getting an error - TASK \[Create users from vars users\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[loca…

---

## [Ansible w/ Docker - Show current Container state](https://forum.ansible.com/t/ansible-w-docker-show-current-container-state/25042)

<div class="topic-metadata">

**Author:** [@Shai\_Shvili](https://forum.ansible.com/u/Shai_Shvili)\
**Replies:** 0\
**Last updated:** [July 21, 2017, 10:56am UTC](https://forum.ansible.com/t/ansible-w-docker-show-current-container-state/25042 "2017-07-21T10:56:53Z")

</div>

Hello fellas! Im working on a little project in which I’m using Docker Containers. I’ll keep my question short: I want to get the state of a running docker container! What I mean by that is, that i want to get the cu…

---

## [tagging in ec2\_elb\_lb and ec2\_asg :-(](https://forum.ansible.com/t/tagging-in-ec2-elb-lb-and-ec2-asg/24691)

<div class="topic-metadata">

**Author:** [@Reiner\_Nippes](https://forum.ansible.com/u/Reiner_Nippes)\
**Replies:** 1\
**Last updated:** [July 21, 2017, 7:29am UTC](https://forum.ansible.com/t/tagging-in-ec2-elb-lb-and-ec2-asg/24691 "2017-07-21T07:29:19Z")

</div>

Hi, I would like to create in AWS a loadbalancer and an auto scaling group and tag it. The playbook looks like: name: Create Load Balancer ec2\_elb\_lb: name: “{{ elb\_name }}” state: present region: “{{ region }}” …

---

## [post data using ansible uri module always get error "bad request" but it works for Postman](https://forum.ansible.com/t/post-data-using-ansible-uri-module-always-get-error-bad-request-but-it-works-for-postman/25027)

<div class="topic-metadata">

**Author:** [@Megan\_Liu](https://forum.ansible.com/u/Megan_Liu)\
**Replies:** 1\
**Last updated:** [July 21, 2017, 5:38am UTC](https://forum.ansible.com/t/post-data-using-ansible-uri-module-always-get-error-bad-request-but-it-works-for-postman/25027 "2017-07-21T05:38:58Z")

</div>

HI I really need help on Ansible URI module . I am not sure whether it is a bug or not. I have the following playbook and when I run it and I always get error "bad request, “Parameter "ip\_address" is required”. But I h…

---

## [Question - Which shell ansible uses ?](https://forum.ansible.com/t/question-which-shell-ansible-uses/25029)

<div class="topic-metadata">

**Author:** [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Replies:** 5\
**Last updated:** [July 20, 2017, 11:24pm UTC](https://forum.ansible.com/t/question-which-shell-ansible-uses/25029 "2017-07-20T23:24:24Z")

</div>

When ansible logs in to the remote systems, which shell does it uses ? I am asking this because of this question here, https://askubuntu.com/questions/937354/track-logins-made-via-non-interactive-shells?noredirect=1#co…

---

## [Ansible 2.3.2 RC1 is available for testing](https://forum.ansible.com/t/ansible-2-3-2-rc1-is-available-for-testing/24833)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [July 20, 2017, 10:11pm UTC](https://forum.ansible.com/t/ansible-2-3-2-rc1-is-available-for-testing/24833 "2017-07-20T22:11:30Z")

</div>

Hi all, we’re happy to announce that Ansible 2.3.2 RC1 is available for testing. This release fixes quite a few bugs since the 2.3.1 release, some of which are: Re-enabled non-pipelined mode for winrm/powershell as a …

---

## [elb\_target\_group module no longer in use?](https://forum.ansible.com/t/elb-target-group-module-no-longer-in-use/25034)

<div class="topic-metadata">

**Author:** [@Trevor\_Ma](https://forum.ansible.com/u/Trevor_Ma)\
**Replies:** 2\
**Last updated:** [July 20, 2017, 8:39pm UTC](https://forum.ansible.com/t/elb-target-group-module-no-longer-in-use/25034 "2017-07-20T20:39:12Z")

</div>

Hi I’m new here and have been doing some ansible. I need to register an instance to a target group and ansible is great as it has a module for it. However, nothing I do works. The funny thing is that the module reference…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=324)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=326)
