# Archives

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

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

**Page:** 234

---

## [Question: How do I get hostname as well as ansible\_host in ansible module ??](https://forum.ansible.com/t/question-how-do-i-get-hostname-as-well-as-ansible-host-in-ansible-module/32003)

<div class="topic-metadata">

**Author:** [@Raja\_Shekar](https://forum.ansible.com/u/Raja_Shekar)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 9:51am UTC](https://forum.ansible.com/t/question-how-do-i-get-hostname-as-well-as-ansible-host-in-ansible-module/32003 "2020-01-20T09:51:59Z")

</div>

Hi All, I develop and maintain the Ansible role: Juniper.junos(https://github.com/Juniper/ansible-junos-stdlib). For the context of the issue, please refer to https://github.com/Juniper/ansible-junos-stdlib/issues/468. …

---

## [Send commands via CLI over SSH to unsupported network device](https://forum.ansible.com/t/send-commands-via-cli-over-ssh-to-unsupported-network-device/28590)

<div class="topic-metadata">

**Author:** [@sign](https://forum.ansible.com/u/sign)\
**Replies:** 4\
**Last updated:** [January 19, 2020, 9:04am UTC](https://forum.ansible.com/t/send-commands-via-cli-over-ssh-to-unsupported-network-device/28590 "2020-01-19T09:04:07Z")

</div>

I need to send commands to 600 network devices (they are Fortinet Access Points) that have SSH enabled. Python is not available on the device, so I need to use something like network\_cli. I’ve tried all the ansible\_netw…

---

## [Exposing the Arista eos session for config validation](https://forum.ansible.com/t/exposing-the-arista-eos-session-for-config-validation/32000)

<div class="topic-metadata">

**Author:** [@Sean\_M\_Collins](https://forum.ansible.com/u/Sean_M_Collins)\
**Replies:** 0\
**Last updated:** [January 17, 2020, 7:02pm UTC](https://forum.ansible.com/t/exposing-the-arista-eos-session-for-config-validation/32000 "2020-01-17T19:02:08Z")

</div>

Is there a way to get a handle for the session that Ansible uses, when connecting to Arista switches to run commands? I am trying to build some config validation/testing into a continuous integration pipeline with Bat…

---

## [custom module is failing with MODULE FAILURE\\nSee stdout/stderr for the exact error" rc:0](https://forum.ansible.com/t/custom-module-is-failing-with-module-failure-nsee-stdout-stderr-for-the-exact-error-rc-0/31906)

<div class="topic-metadata">

**Author:** [@Tejas\_Gadaria1](https://forum.ansible.com/u/Tejas_Gadaria1)\
**Replies:** 3\
**Last updated:** [January 17, 2020, 5:11pm UTC](https://forum.ansible.com/t/custom-module-is-failing-with-module-failure-nsee-stdout-stderr-for-the-exact-error-rc-0/31906 "2020-01-17T17:11:54Z")

</div>

Hi Team, I have written custom ansible module. Module suppose to insert data in database via graphsql template. While executing module via playbook, it does insert the data in database. however task is failing with bel…

---

## [prompt with loop](https://forum.ansible.com/t/prompt-with-loop/31994)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [January 17, 2020, 4:41pm UTC](https://forum.ansible.com/t/prompt-with-loop/31994 "2020-01-17T16:41:13Z")

</div>

I would like that with each creation of vm of my csv file, it asks me for a confirmation o / n which I put in my prompt? Example: Would you like to create this vm “vmname” (o / n)? : I would like him to ask me this qu…

---

## [Ansible Module newrelic\_deployment Feature Request](https://forum.ansible.com/t/ansible-module-newrelic-deployment-feature-request/31999)

<div class="topic-metadata">

**Author:** [@Garry\_Taylor](https://forum.ansible.com/u/Garry_Taylor)\
**Replies:** 0\
**Last updated:** [January 17, 2020, 2:11pm UTC](https://forum.ansible.com/t/ansible-module-newrelic-deployment-feature-request/31999 "2020-01-17T14:11:56Z")

</div>

Hello, I need guidance on how to request a feature request for a module called newrelic\_deplyment. i have submitted this but it has been rejected. Feature Idea COMPONENT NAME UI SUMMARY New feature for existing An…

---

## [How to pass information/variable while creating VM on esxxi server using Vmware\_guest module](https://forum.ansible.com/t/how-to-pass-information-variable-while-creating-vm-on-esxxi-server-using-vmware-guest-module/31946)

<div class="topic-metadata">

**Author:** [@Rohan\_Kalap](https://forum.ansible.com/u/Rohan_Kalap)\
**Replies:** 4\
**Last updated:** [January 17, 2020, 7:53am UTC](https://forum.ansible.com/t/how-to-pass-information-variable-while-creating-vm-on-esxxi-server-using-vmware-guest-module/31946 "2020-01-17T07:53:19Z")

</div>

Hello, I am looking to create VM from vmware\_guest module on esxi server which is working fine with following playbook, But- I want to pass details which are needed while booting into VM e.g hostname, username or licen…

---

## [List of triggered tasks](https://forum.ansible.com/t/list-of-triggered-tasks/31996)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 11:10pm UTC](https://forum.ansible.com/t/list-of-triggered-tasks/31996 "2020-01-16T23:10:33Z")

</div>

Hi all, Is there a globally-available list of triggered tasks? I’d love to be able to send a notification of some kind at the end of a series of playbook runs, which would include the list of changed tasks and any other…

---

## [Windows mapped drives – what the hell is going on?](https://forum.ansible.com/t/windows-mapped-drives-what-the-hell-is-going-on/31966)

<div class="topic-metadata">

**Author:** [@Pjotr\_Banas](https://forum.ansible.com/u/Pjotr_Banas)\
**Replies:** 11\
**Last updated:** [January 16, 2020, 9:32pm UTC](https://forum.ansible.com/t/windows-mapped-drives-what-the-hell-is-going-on/31966 "2020-01-16T21:32:09Z")

</div>

Hello experts, I was trying to reach Jordan on his blog: http://www.bloggingforlogging.com/2018/11/22/windows-mapped-drives-what-the-hell-is-going-on/#comment-178 ,but I see that comments are closed, so maybe here someo…

---

## [Ansible firewalld module question](https://forum.ansible.com/t/ansible-firewalld-module-question/31995)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 5:20pm UTC](https://forum.ansible.com/t/ansible-firewalld-module-question/31995 "2020-01-16T17:20:17Z")

</div>

Hello, In Ansible firewalld module: https://docs.ansible.com/ansible/latest/modules/firewalld\_module.html?highlight=firewalld, in the examples like below: - firewalld: service: https permanent: yes state: e…

---

## [Does current Ansible support templates macro?](https://forum.ansible.com/t/does-current-ansible-support-templates-macro/31972)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 12\
**Last updated:** [January 16, 2020, 5:08pm UTC](https://forum.ansible.com/t/does-current-ansible-support-templates-macro/31972 "2020-01-16T17:08:28Z")

</div>

Hello, I’m working on a role for system SSSD daemon. I found this piece of code online: https://github.com/picotrading/ansible-sssd/blob/master/templates/sssd.conf.j2 I have defined my own sssd\_config variable in my r…

---

## [How create vlans if he don't exist in the file gathred by ios\_facts](https://forum.ansible.com/t/how-create-vlans-if-he-dont-exist-in-the-file-gathred-by-ios-facts/31993)

<div class="topic-metadata">

**Author:** [@Kaouane\_Alaaeddine](https://forum.ansible.com/u/Kaouane_Alaaeddine)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 2:18pm UTC](https://forum.ansible.com/t/how-create-vlans-if-he-dont-exist-in-the-file-gathred-by-ios-facts/31993 "2020-01-16T14:18:45Z")

</div>

Hello, I want to create (configurate) “vlan” in my device (switch) when it is not available on my equipment for configurate or ( add) vlan in the switch I use the module “ios\_vlans” for gather facts of my device I use…

---

## [Skip caching facts for specific hosts](https://forum.ansible.com/t/skip-caching-facts-for-specific-hosts/31992)

<div class="topic-metadata">

**Author:** [@Anjana\_Raghavendra\_P](https://forum.ansible.com/u/Anjana_Raghavendra_P)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 11:00am UTC](https://forum.ansible.com/t/skip-caching-facts-for-specific-hosts/31992 "2020-01-16T11:00:01Z")

</div>

I run ansible playbooks on multiple servers as controller servers and now want to start using the cache plugin. As each controller server is “localhost” for playbook, the facts captured by one controller server are getti…

---

## [Ansible passwordless login not working](https://forum.ansible.com/t/ansible-passwordless-login-not-working/31991)

<div class="topic-metadata">

**Author:** [@Douglas\_Evert](https://forum.ansible.com/u/Douglas_Evert)\
**Replies:** 1\
**Last updated:** [January 16, 2020, 10:02am UTC](https://forum.ansible.com/t/ansible-passwordless-login-not-working/31991 "2020-01-16T10:02:47Z")

</div>

When adding a public key are you adding it to an amiable user or to another user and does your ping work if you pass —ask-pass?

---

## [register results in a text file after retrieving it on a device with (gather\_facts)](https://forum.ansible.com/t/register-results-in-a-text-file-after-retrieving-it-on-a-device-with-gather-facts/31981)

<div class="topic-metadata">

**Author:** [@Kaouane\_Alaaeddine](https://forum.ansible.com/u/Kaouane_Alaaeddine)\
**Replies:** 2\
**Last updated:** [January 16, 2020, 8:36am UTC](https://forum.ansible.com/t/register-results-in-a-text-file-after-retrieving-it-on-a-device-with-gather-facts/31981 "2020-01-16T08:36:29Z")

</div>

Hello all my tesk consist to register the number of vlan available in the device ( cisco switch) in a texte file I want to get just the value of vlan sotred in the item"vlan\_id" I hope someone can help me …

---

## [Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)](https://forum.ansible.com/t/permission-denied-publickey-gssapi-keyex-gssapi-with-mic-password/31919)

<div class="topic-metadata">

**Author:** [@Amadin\_Jones](https://forum.ansible.com/u/Amadin_Jones)\
**Replies:** 1\
**Last updated:** [January 16, 2020, 7:20am UTC](https://forum.ansible.com/t/permission-denied-publickey-gssapi-keyex-gssapi-with-mic-password/31919 "2020-01-16T07:20:53Z")

</div>

Dear Colleagues, I have been working of ansible with my ping command working well with pong response but whenever i want to deploy playbooks it will fail with this command atal: \[172.31.85.22\]: UNREACHABLE! =\> {“changed…

---

## [Remove old AWX logs](https://forum.ansible.com/t/remove-old-awx-logs/31990)

<div class="topic-metadata">

**Author:** [@Nivedita](https://forum.ansible.com/u/Nivedita)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 5:45am UTC](https://forum.ansible.com/t/remove-old-awx-logs/31990 "2020-01-16T05:45:13Z")

</div>

Hi Larry, I am not able to exactly get your point but according to my understanding you can clean up activity stream, fact details and job details using Management jobs. To clean up these, you have to create a managem…

---

## [AWX installation is failing in centos 7](https://forum.ansible.com/t/awx-installation-is-failing-in-centos-7/31931)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 3\
**Last updated:** [January 16, 2020, 4:37am UTC](https://forum.ansible.com/t/awx-installation-is-failing-in-centos-7/31931 "2020-01-16T04:37:00Z")

</div>

Hi Experts , We were trying to install the AWX in centos 7 and installation is getting failed. \` \[root@myhost yum.repos.d\]# wget -O /etc/yum.repos.d/ansible-awx.repo https://copr.fedorainfracloud.org/coprs/mrmeee/ansi…

---

## [New Ansible releases 2.9.3, 2.8.8, and 2.7.16](https://forum.ansible.com/t/new-ansible-releases-2-9-3-2-8-8-and-2-7-16/31987)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 12:27am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-3-2-8-8-and-2-7-16/31987 "2020-01-16T00:27:09Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.3, 2.8.8, and 2.7.16 are now available! How do you get it?

---

## [New Ansible releases 2.9.3, 2.8.8, and 2.7.16](https://forum.ansible.com/t/new-ansible-releases-2-9-3-2-8-8-and-2-7-16/31986)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 12:26am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-3-2-8-8-and-2-7-16/31986 "2020-01-16T00:26:41Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.3, 2.8.8, and 2.7.16 are now available! How do you get it?

---

## [Gathering Facts hangs when using become](https://forum.ansible.com/t/gathering-facts-hangs-when-using-become/31962)

<div class="topic-metadata">

**Author:** [@Chris\_Thro](https://forum.ansible.com/u/Chris_Thro)\
**Replies:** 5\
**Last updated:** [January 15, 2020, 11:31pm UTC](https://forum.ansible.com/t/gathering-facts-hangs-when-using-become/31962 "2020-01-15T23:31:16Z")

</div>

Out of hundreds of hosts we have one host always hangs when gathering facts when using become. Create a playbook with the following: hosts: all call the playbook with the -b flag The last thing reported in the log i…

---

## [Pass variables to template file from Ansible.](https://forum.ansible.com/t/pass-variables-to-template-file-from-ansible/31985)

<div class="topic-metadata">

**Author:** [@Mo\_A](https://forum.ansible.com/u/Mo_A)\
**Replies:** 0\
**Last updated:** [January 15, 2020, 8:00pm UTC](https://forum.ansible.com/t/pass-variables-to-template-file-from-ansible/31985 "2020-01-15T20:00:20Z")

</div>

Hi, I’m using Ansible 2.9 and I’m using roles as well. I have the following variable defined in my “role-directory”/var/main.yml file: routers: bbrs: BBR-ROUTER01 BBR-ROUTER02 bprs: BPR-ROUTER01 BPR-ROUTER02 BBRS …

---

## [query on action plugins](https://forum.ansible.com/t/query-on-action-plugins/31984)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 1\
**Last updated:** [January 15, 2020, 5:55pm UTC](https://forum.ansible.com/t/query-on-action-plugins/31984 "2020-01-15T17:55:49Z")

</div>

Hi, I have variable defined in role as below: default.yml

---

## [curl and Ansible AWX](https://forum.ansible.com/t/curl-and-ansible-awx/31937)

<div class="topic-metadata">

**Author:** [@Douglas\_Thompson](https://forum.ansible.com/u/Douglas_Thompson)\
**Replies:** 3\
**Last updated:** [January 15, 2020, 3:54pm UTC](https://forum.ansible.com/t/curl-and-ansible-awx/31937 "2020-01-15T15:54:47Z")

</div>

anyone know why this curl command passes the host\_config\_key but not the extra\_vars? curl -f -k -H ‘Content-Type: application/json’ -XPOST -d ‘{“host\_config\_key”: “00000000-0000-0000”, “extra\_vars”: “{"ansible\_variable"…

---

## [Unable to print regex registered variable in Ansible](https://forum.ansible.com/t/unable-to-print-regex-registered-variable-in-ansible/31983)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [January 15, 2020, 2:51pm UTC](https://forum.ansible.com/t/unable-to-print-regex-registered-variable-in-ansible/31983 "2020-01-15T14:51:00Z")

</div>

Just use grep - command: grep -P "^\\s\*SSLFILE" /tmp/httpd.conf register: results - debug: msg="{{ results.stdout }}" - debug: msg="{{ item }}" with\_items: "{{ results.stdout\_lines }}"

---

## [Ansible create module mssql\_querry](https://forum.ansible.com/t/ansible-create-module-mssql-querry/31982)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 0\
**Last updated:** [January 15, 2020, 2:39pm UTC](https://forum.ansible.com/t/ansible-create-module-mssql-querry/31982 "2020-01-15T14:39:33Z")

</div>

Hello, I have create module mssql\_query in my repertory library/mssql\_query.py for execut commande ligne on my database MSSQL with this website : https://github.com/melmorabity/ansible-mssql-query/blob/master/mssql\_que…

---

## [awx\_task fails after migrations (celery related file error)](https://forum.ansible.com/t/awx-task-fails-after-migrations-celery-related-file-error/31971)

<div class="topic-metadata">

**Author:** [@Javier\_Espinosa](https://forum.ansible.com/u/Javier_Espinosa)\
**Replies:** 1\
**Last updated:** [January 15, 2020, 12:54pm UTC](https://forum.ansible.com/t/awx-task-fails-after-migrations-celery-related-file-error/31971 "2020-01-15T12:54:54Z")

</div>

Installing on localhost with docker compose. Install playbook runs successfully, containers are running, but when I get to the post-install part of the install instructions I see this on the log: 2020-01-14 19:06:16,36…

---

## [Unable to print regex registered variable in Ansible](https://forum.ansible.com/t/unable-to-print-regex-registered-variable-in-ansible/31978)

<div class="topic-metadata">

**Author:** [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Replies:** 2\
**Last updated:** [January 15, 2020, 12:36pm UTC](https://forum.ansible.com/t/unable-to-print-regex-registered-variable-in-ansible/31978 "2020-01-15T12:36:55Z")

</div>

Hi, Perhaps you should better use slurp module to register the content of the file and do some regexp to print what you want on it… https://docs.ansible.com/ansible/latest/modules/slurp\_module.html#slurp-module Regard…

---

## [Unable to print regex registered variable in Ansible](https://forum.ansible.com/t/unable-to-print-regex-registered-variable-in-ansible/31980)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [January 15, 2020, 11:05am UTC](https://forum.ansible.com/t/unable-to-print-regex-registered-variable-in-ansible/31980 "2020-01-15T11:05:35Z")

</div>

It's not entirely clear what you mean by this. Can you post an example httpd.conf, and what you want to get out of it?

---

## [Ansible - How get status of all users on my Active Directory Windows](https://forum.ansible.com/t/ansible-how-get-status-of-all-users-on-my-active-directory-windows/31979)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 0\
**Last updated:** [January 15, 2020, 10:32am UTC](https://forum.ansible.com/t/ansible-how-get-status-of-all-users-on-my-active-directory-windows/31979 "2020-01-15T10:32:20Z")

</div>

Hello Guy !! :slight\_smile: I want to know how get status of all users on my Active Directory Windows. So i want to know if the user has status enabled or disabled on my Active Directory I know there is this ansible w…

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

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