# Ansible Project

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

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

**Page:** 149

---

## [ansible error message](https://forum.ansible.com/t/ansible-error-message/32018)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 4\
**Last updated:** [January 21, 2020, 10:09am UTC](https://forum.ansible.com/t/ansible-error-message/32018 "2020-01-21T10:09:01Z")

</div>

Dear All: I don’t know this error is? can hlep me thanks. ERROR! conflicting action statements: lineinfile, roles The error appears to be in ‘/home/sandy/phpldapadmin.yml’: line 54, column 6, but may be elsewhere in…

---

## [New Ansible release 2.9.4](https://forum.ansible.com/t/new-ansible-release-2-9-4/32013)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 10:58pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-4/32013 "2020-01-20T22:58:31Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.4 is now available! This release contains a single bugfix to a regression in the yum module, introduced in 2.9.3. How do you get it?

---

## [How to read binary file from ansible master to use it in k8s module](https://forum.ansible.com/t/how-to-read-binary-file-from-ansible-master-to-use-it-in-k8s-module/32006)

<div class="topic-metadata">

**Author:** [@Jan\_Burian](https://forum.ansible.com/u/Jan_Burian)\
**Replies:** 4\
**Last updated:** [January 20, 2020, 6:41pm UTC](https://forum.ansible.com/t/how-to-read-binary-file-from-ansible-master-to-use-it-in-k8s-module/32006 "2020-01-20T18:41:44Z")

</div>

Hi, I’m trying to read binary file from ansible master (localhost) to use it in k8s module. The task looks like this: \` name: Create ConfigMap with keytab k8s: host: “{{ api\_host }}” api\_version: v1 kind: Config…

---

## [Create file depending on the network](https://forum.ansible.com/t/create-file-depending-on-the-network/32009)

<div class="topic-metadata">

**Author:** [@xxmlud\_gnu](https://forum.ansible.com/u/xxmlud_gnu)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 6:33pm UTC](https://forum.ansible.com/t/create-file-depending-on-the-network/32009 "2020-01-20T18:33:21Z")

</div>

Hi!, I need help. I want to deploy some file with some modifications. The deployment policy is that depending on the network the server belongs to, it will deploy some files or others. I can’t compare the “ansible\_fact…

---

## [How to setup multiple jumpbox with Ansible AWX](https://forum.ansible.com/t/how-to-setup-multiple-jumpbox-with-ansible-awx/32008)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 5:35pm UTC](https://forum.ansible.com/t/how-to-setup-multiple-jumpbox-with-ansible-awx/32008 "2020-01-20T17:35:09Z")

</div>

This list is for Ansible. Use the AWX list for your AWX questions.

---

## [tower\_wait\_job module is not working](https://forum.ansible.com/t/tower-wait-job-module-is-not-working/31998)

<div class="topic-metadata">

**Author:** [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Replies:** 1\
**Last updated:** [January 20, 2020, 5:27pm UTC](https://forum.ansible.com/t/tower-wait-job-module-is-not-working/31998 "2020-01-20T17:27:00Z")

</div>

Hi Folks, I got an issue with tower\_job\_wait module in anisble tower. i use to launch an other template and wait for it to complete. template has been triggered and executed successfully but once after that wait job get…

---

## [loop and pass variables from vars\_files to task command](https://forum.ansible.com/t/loop-and-pass-variables-from-vars-files-to-task-command/32007)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 5:25pm UTC](https://forum.ansible.com/t/loop-and-pass-variables-from-vars-files-to-task-command/32007 "2020-01-20T17:25:14Z")

</div>

This (formatting mess, you should post plain text) is not a correct variable file. What you have here is a list, but this list need to but assigned to a variable for it to be used.

---

## [unable to install vim plugin via shell module](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 1\
**Last updated:** [January 20, 2020, 5:20pm UTC](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988 "2020-01-20T17:20:45Z")

</div>

I want to install vim plugins with ansible shell module the task is quite simple as follow name: install vim vundle plugin shell: “vim +PluginInstall +qall” but the playbook will hang at this task like forever. e…

---

## [openldap for ubuntu](https://forum.ansible.com/t/openldap-for-ubuntu/32002)

<div class="topic-metadata">

**Author:** [@Sandy\_Hung](https://forum.ansible.com/u/Sandy_Hung)\
**Replies:** 7\
**Last updated:** [January 20, 2020, 10:05am UTC](https://forum.ansible.com/t/openldap-for-ubuntu/32002 "2020-01-20T10:05:23Z")

</div>

I have problem run openldap show error message, how to solved this problem thanks. ERROR! conflicting action statements: copy, force The error appears to be in ‘/home/sandy/phpldapadmin.yml’: line 68, column 6, but may …

---

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

---

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

---

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

---

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

---

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

---

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

---

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

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

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