# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=467

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

**Page:** 468

---

## [Best way to differentiate configurations](https://forum.ansible.com/t/best-way-to-differentiate-configurations/25061)

<div class="topic-metadata">

**Author:** [@Peter\_Ankerstal](https://forum.ansible.com/u/Peter_Ankerstal)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 10:46pm UTC](https://forum.ansible.com/t/best-way-to-differentiate-configurations/25061 "2017-07-24T22:46:06Z")

</div>

Hi! I pretty new to ansible and I have tried to read the docs on how to best differentiate configurations. Everything seems very clean if every server have a very specific purpose like “dbserver” or something. But Im h…

---

## [os\_port module](https://forum.ansible.com/t/os-port-module/25074)

<div class="topic-metadata">

**Author:** [@keith\_patton](https://forum.ansible.com/u/keith_patton)\
**Replies:** 0\
**Last updated:** [July 24, 2017, 10:23pm UTC](https://forum.ansible.com/t/os-port-module/25074 "2017-07-24T22:23:31Z")

</div>

Hi all, I’m using ansible to create vm instances and all was good. UNTIL… I need to create an instance that uses SRIOV. typically in order to do this you create the port and tell it that the vnic\_type is direct. I found…

---

## [default value vs default value defined by user](https://forum.ansible.com/t/default-value-vs-default-value-defined-by-user/25073)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 0\
**Last updated:** [July 24, 2017, 10:21pm UTC](https://forum.ansible.com/t/default-value-vs-default-value-defined-by-user/25073 "2017-07-24T22:21:21Z")

</div>

Hi I wanted to bring awareness of a little patch I submitted a while ago (3 lines change to the basic module\_utils helper. (I even would call it a bug fix). https://github.com/ansible/ansible/pull/16492 Currently, f…

---

## [Building a list from complex YAML](https://forum.ansible.com/t/building-a-list-from-complex-yaml/25072)

<div class="topic-metadata">

**Author:** [@Francois\_Herbet](https://forum.ansible.com/u/Francois_Herbet)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 9:09pm UTC](https://forum.ansible.com/t/building-a-list-from-complex-yaml/25072 "2017-07-24T21:09:41Z")

</div>

Hi Guys need some advice on this case here’s my hostvars

---

## [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.…

---

## [Up-to-date guide for debugging locally executing modules using an IDE (e.g. pycharm)?](https://forum.ansible.com/t/up-to-date-guide-for-debugging-locally-executing-modules-using-an-ide-e-g-pycharm/25070)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 0\
**Last updated:** [July 24, 2017, 4:36pm UTC](https://forum.ansible.com/t/up-to-date-guide-for-debugging-locally-executing-modules-using-an-ide-e-g-pycharm/25070 "2017-07-24T16:36:59Z")

</div>

Am struggling to debug the ‘rds’ module using PyCharm, which is executing locally on my OS X machine. Have gone through a handful of guides, trying to emulate their suggestions for remote debugging on vagrant machines l…

---

## [support for multiple vault passwords / https://github.com/ansible/ansible/pull/22756](https://forum.ansible.com/t/support-for-multiple-vault-passwords-https-github-com-ansible-ansible-pull-22756/25068)

<div class="topic-metadata">

**Author:** [@alikins](https://forum.ansible.com/u/alikins)\
**Replies:** 0\
**Last updated:** [July 24, 2017, 3:20pm UTC](https://forum.ansible.com/t/support-for-multiple-vault-passwords-https-github-com-ansible-ansible-pull-22756/25068 "2017-07-24T15:20:20Z")

</div>

I've been working on some vault related 2.4 roadmap\[1\] features, namely "Support for multiple vault passwords. ". The current pr is at https://github.com/ansible/ansible/pull/22756 The roadmap feature is based on RFE …

---

## [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 …

---

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

<div class="topic-metadata">

**Author:** [@Jason\_McKerr](https://forum.ansible.com/u/Jason_McKerr)\
**Replies:** 2\
**Last updated:** [July 24, 2017, 1:09pm UTC](https://forum.ansible.com/t/change-in-location-of-ansible-packages/25050 "2017-07-24T13:09:13Z")

</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…

---

## [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…

---

## [Powershell V2 deprecated soon](https://forum.ansible.com/t/powershell-v2-deprecated-soon/25062)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 1\
**Last updated:** [July 24, 2017, 8:14am UTC](https://forum.ansible.com/t/powershell-v2-deprecated-soon/25062 "2017-07-24T08:14:24Z")

</div>

https://mobile.twitter.com/jsnover/status/889153919527419905

---

## [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 passing test for Google Cloud module](https://forum.ansible.com/t/help-passing-test-for-google-cloud-module/25060)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 0\
**Last updated:** [July 23, 2017, 5:19pm UTC](https://forum.ansible.com/t/help-passing-test-for-google-cloud-module/25060 "2017-07-23T17:19:34Z")

</div>

I have created a pull request and I cannot get make the last failed tests pass. All are basically the same: 'ansible-test sanity --test import --python xxx Locally, I have verified that the Provider class is successful…

---

## [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/25052)

<div class="topic-metadata">

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

</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 …

---

## [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 …

[Previous page](https://forum.ansible.com/c/archives/31.md?page=466)

[Next page](https://forum.ansible.com/c/archives/31.md?page=468)
