# Ansible Project

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

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

**Page:** 206

---

## [Powershell playbooks](https://forum.ansible.com/t/powershell-playbooks/29550)

<div class="topic-metadata">

**Author:** [@yarecki\_wr](https://forum.ansible.com/u/yarecki_wr)\
**Replies:** 3\
**Last updated:** [February 21, 2019, 4:03pm UTC](https://forum.ansible.com/t/powershell-playbooks/29550 "2019-02-21T16:03:08Z")

</div>

I’m testing Ansible to see if I can successfully control various aspects of Windows management. I’m getting stuck on using variables and conditionals and can’t interpret the error information that comes back. I tried to…

---

## [build software RAID 0 with ansible](https://forum.ansible.com/t/build-software-raid-0-with-ansible/29731)

<div class="topic-metadata">

**Author:** [@rasul\_shaikh](https://forum.ansible.com/u/rasul_shaikh)\
**Replies:** 2\
**Last updated:** [February 21, 2019, 2:39pm UTC](https://forum.ansible.com/t/build-software-raid-0-with-ansible/29731 "2019-02-21T14:39:11Z")

</div>

Hello folks, i am trying build playbook to create software raid 0 using mdadm\_arrays module but having lots of confusion some one have the playbook to create software raid 0. Thanks, Rasul.

---

## [Fail to import a shared module from a custom module code using module\_utils configuration](https://forum.ansible.com/t/fail-to-import-a-shared-module-from-a-custom-module-code-using-module-utils-configuration/29733)

<div class="topic-metadata">

**Author:** [@Leo\_Y](https://forum.ansible.com/u/Leo_Y)\
**Replies:** 0\
**Last updated:** [February 21, 2019, 1:12pm UTC](https://forum.ansible.com/t/fail-to-import-a-shared-module-from-a-custom-module-code-using-module-utils-configuration/29733 "2019-02-21T13:12:04Z")

</div>

Hi, We have the following setup (the simplified version): / /playbooks /playbooks/ansible.cfg /playbooks/test\_playbook.yml /library/ /library/ac/ /library/ac/custom\_module.py /library/module\_utils/ /library/mod…

---

## [This module requires the OpenShift Python client. Try \`pip install openshift](https://forum.ansible.com/t/this-module-requires-the-openshift-python-client-try-pip-install-openshift/29732)

<div class="topic-metadata">

**Author:** [@jindrich.kana](https://forum.ansible.com/u/jindrich.kana)\
**Replies:** 0\
**Last updated:** [February 21, 2019, 10:53am UTC](https://forum.ansible.com/t/this-module-requires-the-openshift-python-client-try-pip-install-openshift/29732 "2019-02-21T10:53:59Z")

</div>

Hi All, I am relatively new to Ansible, so take a pardon for possible stupid question. I am running my role which should provision LDAP synchronization CronJob project with its PODs into the OpenShift 3.11. Of course i…

---

## [Ansible SSH bastion host and changing SSH port](https://forum.ansible.com/t/ansible-ssh-bastion-host-and-changing-ssh-port/29729)

<div class="topic-metadata">

**Author:** [@Benny\_Kusman](https://forum.ansible.com/u/Benny_Kusman)\
**Replies:** 1\
**Last updated:** [February 21, 2019, 9:31am UTC](https://forum.ansible.com/t/ansible-ssh-bastion-host-and-changing-ssh-port/29729 "2019-02-21T09:31:40Z")

</div>

Hi, i got a question on how to change the SSH port via bastion host So, the setup is this: ansible server (on ssh port 6701) —\> Bastion server (on ssh port 6701) → linux server (on ssh port 22) i tried to add “ansibl…

---

## [issues with tasks after upgrade](https://forum.ansible.com/t/issues-with-tasks-after-upgrade/29727)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 0\
**Last updated:** [February 21, 2019, 12:31am UTC](https://forum.ansible.com/t/issues-with-tasks-after-upgrade/29727 "2019-02-21T00:31:20Z")

</div>

Work task before upgrade: TASK \[config-seeding : Clean build directory\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py \<127.0.0.1\> ESTABLISH LOCAL C…

---

## [simple IP lookup plugin](https://forum.ansible.com/t/simple-ip-lookup-plugin/29715)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 2\
**Last updated:** [February 21, 2019, 12:13am UTC](https://forum.ansible.com/t/simple-ip-lookup-plugin/29715 "2019-02-21T00:13:01Z")

</div>

HI! Is there a simple example module how to implement an ansible (connection) plugin for looking up an IP address for establishing the SSH connection? I have a deployment where no DNS entries are present prior to initi…

---

## [Why does gather\_facts use the old IP address?](https://forum.ansible.com/t/why-does-gather-facts-use-the-old-ip-address/29724)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 5:58pm UTC](https://forum.ansible.com/t/why-does-gather-facts-use-the-old-ip-address/29724 "2019-02-20T17:58:00Z")

</div>

I am using Ansible 2.5.3 to build Debian servers on the linode.com web hosting service. When I provision a server with one Ansible playbook and then try to configure that server with a second Ansible playbook, that secon…

---

## [obtaining hostnames and groups](https://forum.ansible.com/t/obtaining-hostnames-and-groups/29722)

<div class="topic-metadata">

**Author:** [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Replies:** 0\
**Last updated:** [February 20, 2019, 4:49pm UTC](https://forum.ansible.com/t/obtaining-hostnames-and-groups/29722 "2019-02-20T16:49:24Z")

</div>

Use "{{ group\_names }}". There can be more than one group, so you'll likely need to join them with something like "{{ group\_names | join(', ') }}" --Steve

---

## [Azure SQL DB Firewall and Virtual networks access](https://forum.ansible.com/t/azure-sql-db-firewall-and-virtual-networks-access/29721)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 0\
**Last updated:** [February 20, 2019, 2:47pm UTC](https://forum.ansible.com/t/azure-sql-db-firewall-and-virtual-networks-access/29721 "2019-02-20T14:47:47Z")

</div>

Hi, The Azure SQL DB Firewall module \[1\] seems to miss virtual network rules (Azure docs on that are in \[2\]). The REST API is described in \[3\]. Is there a plan to add this feature? Wawrzek \[1\] https://docs.ansible.c…

---

## [Has anybody succesfully used the gcp\_compute plugin with auth\_kind: machineaccount?](https://forum.ansible.com/t/has-anybody-succesfully-used-the-gcp-compute-plugin-with-auth-kind-machineaccount/28666)

<div class="topic-metadata">

**Author:** [@Mpampis\_Mpigkonias](https://forum.ansible.com/u/Mpampis_Mpigkonias)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 12:38pm UTC](https://forum.ansible.com/t/has-anybody-succesfully-used-the-gcp-compute-plugin-with-auth-kind-machineaccount/28666 "2019-02-20T12:38:27Z")

</div>

There is some lack of documentation when it comes on using the gcp\_compute plugin a different auth\_kind other thatn serviceaccount. My yml is this: plugin: gcp\_compute projects: my\_project service\_account\_email: m…

---

## [Having problems with a variable in vars\_files](https://forum.ansible.com/t/having-problems-with-a-variable-in-vars-files/29685)

<div class="topic-metadata">

**Author:** [@Brian\_O\_Mahony](https://forum.ansible.com/u/Brian_O_Mahony)\
**Replies:** 6\
**Last updated:** [February 20, 2019, 11:52am UTC](https://forum.ansible.com/t/having-problems-with-a-variable-in-vars-files/29685 "2019-02-20T11:52:13Z")

</div>

I am having an issue with referencing a variable in var\_files module, and cant for the life of me figure it out. I am generating some vars in a playbook, and using setfact on them \[basically awk shell commands to strip a…

---

## [How to  configure windows server with ansible using yml](https://forum.ansible.com/t/how-to-configure-windows-server-with-ansible-using-yml/29717)

<div class="topic-metadata">

**Author:** [@rajendar\_t](https://forum.ansible.com/u/rajendar_t)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 10:54am UTC](https://forum.ansible.com/t/how-to-configure-windows-server-with-ansible-using-yml/29717 "2019-02-20T10:54:35Z")

</div>

Hi All, 1)How to turn off IE enhanced security using ansible 2) is there any I can configure user account in Windows server by using yml Thanks Rajedar

---

## [Hostname mismatch: node X believes its host is different](https://forum.ansible.com/t/hostname-mismatch-node-x-believes-its-host-is-different/29711)

<div class="topic-metadata">

**Author:** [@mrplainswalker](https://forum.ansible.com/u/mrplainswalker)\
**Replies:** 2\
**Last updated:** [February 19, 2019, 9:12pm UTC](https://forum.ansible.com/t/hostname-mismatch-node-x-believes-its-host-is-different/29711 "2019-02-19T21:12:47Z")

</div>

Hi All, I realize that this topic is incredibly popular and I’ve gone through about 10 others talking about the same thing, but nothing they suggest seems to work, so here’s another one… I have Erlang OTP 20.2 and Rabb…

---

## [Getting MemoryError when executing task hdfs dfs -format; how to fix / troubleshoot?](https://forum.ansible.com/t/getting-memoryerror-when-executing-task-hdfs-dfs-format-how-to-fix-troubleshoot/29714)

<div class="topic-metadata">

**Author:** [@dgoldenberg](https://forum.ansible.com/u/dgoldenberg)\
**Replies:** 0\
**Last updated:** [February 19, 2019, 8:22pm UTC](https://forum.ansible.com/t/getting-memoryerror-when-executing-task-hdfs-dfs-format-how-to-fix-troubleshoot/29714 "2019-02-19T20:22:18Z")

</div>

We have a task in our Ansible based deploy which performs formatting of HDFS using the hdfs dfs -format command. This command causes a MemoryError. We can see that there is a Python process on the target box which gobbl…

---

## [optional template?](https://forum.ansible.com/t/optional-template/29713)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 0\
**Last updated:** [February 19, 2019, 8:11pm UTC](https://forum.ansible.com/t/optional-template/29713 "2019-02-19T20:11:26Z")

</div>

Hi! I am installing some packages based on a list, and I would like to put a config file in place for each package, however I would like the config file to be optional. For example, if I have this list of packages to ins…

---

## [Keys for role names in "roles:" section](https://forum.ansible.com/t/keys-for-role-names-in-roles-section/29712)

<div class="topic-metadata">

**Author:** [@Rich\_Fletcher](https://forum.ansible.com/u/Rich_Fletcher)\
**Replies:** 0\
**Last updated:** [February 19, 2019, 8:09pm UTC](https://forum.ansible.com/t/keys-for-role-names-in-roles-section/29712 "2019-02-19T20:09:11Z")

</div>

At some point in the past, the documentation specified that role names (for roles with arguments) in the roles: section were indicated by a name: key. Now, the documentation examples show that role names in that section …

---

## [Getting error in using register module](https://forum.ansible.com/t/getting-error-in-using-register-module/29708)

<div class="topic-metadata">

**Author:** [@sajal\_tiwari](https://forum.ansible.com/u/sajal_tiwari)\
**Replies:** 4\
**Last updated:** [February 19, 2019, 6:18pm UTC](https://forum.ansible.com/t/getting-error-in-using-register-module/29708 "2019-02-19T18:18:53Z")

</div>

Hello, I am getting below error while using register module with network modules(ios\_command & nxos\_command). Can someone help on the issue. ERROR! Module “register” shadows the name of a reserved keyword. Please rena…

---

## [Loop over two lists variables in inventory file via jinja2 -- similar to zip() function in python](https://forum.ansible.com/t/loop-over-two-lists-variables-in-inventory-file-via-jinja2-similar-to-zip-function-in-python/29709)

<div class="topic-metadata">

**Author:** [@sahitansar](https://forum.ansible.com/u/sahitansar)\
**Replies:** 2\
**Last updated:** [February 19, 2019, 6:03pm UTC](https://forum.ansible.com/t/loop-over-two-lists-variables-in-inventory-file-via-jinja2-similar-to-zip-function-in-python/29709 "2019-02-19T18:03:59Z")

</div>

my inventory file is like below with more additional group\_vars and host\_vars that I havent mentioned here for simplicity: I dont want to use host\_vars as of now. \[qa\] host1 var1=‘\[“hi” , “xy”\]’ var2=\[435345, 3425634\] …

---

## [If condition in ansible jinja2 template](https://forum.ansible.com/t/if-condition-in-ansible-jinja2-template/29707)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 9\
**Last updated:** [February 19, 2019, 4:51pm UTC](https://forum.ansible.com/t/if-condition-in-ansible-jinja2-template/29707 "2019-02-19T16:51:53Z")

</div>

Search keyword in “host\_fqdn” variable. If the value has “lab.com” keyword in it, it should directly store the value to “host\_fqdn” again or else it should add “lab.com” keyword to the value and store it to “host\_fqdn” …

---

## [Which ansible.cfg value is the "ansible-playbook -T" flag overriding?](https://forum.ansible.com/t/which-ansible-cfg-value-is-the-ansible-playbook-t-flag-overriding/29704)

<div class="topic-metadata">

**Author:** [@ibdg](https://forum.ansible.com/u/ibdg)\
**Replies:** 0\
**Last updated:** [February 19, 2019, 3:18am UTC](https://forum.ansible.com/t/which-ansible-cfg-value-is-the-ansible-playbook-t-flag-overriding/29704 "2019-02-19T03:18:58Z")

</div>

Per my stackoverflow question: https://stackoverflow.com/questions/54757444/which-ansible-cfg-timeout-value-is-t-overriding-on-the-ansible-playbook-comma The ansible-playbook documentation says that -T will “override th…

---

## [WinRM timeout for VMWare Tools Install](https://forum.ansible.com/t/winrm-timeout-for-vmware-tools-install/22168)

<div class="topic-metadata">

**Author:** [@Matt\_Betts](https://forum.ansible.com/u/Matt_Betts)\
**Replies:** 5\
**Last updated:** [February 18, 2019, 7:58pm UTC](https://forum.ansible.com/t/winrm-timeout-for-vmware-tools-install/22168 "2019-02-18T19:58:13Z")

</div>

I’ve got a basic task to install VMWare tools on a Windows VM and when it installs it looks to cause a temporary network disconnection whilst it updates the NIC drivers. During this time WinRM looks to be timing out and …

---

## [Export debug msg to a file](https://forum.ansible.com/t/export-debug-msg-to-a-file/29696)

<div class="topic-metadata">

**Author:** [@Adelmo\_Silva](https://forum.ansible.com/u/Adelmo_Silva)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 6:56pm UTC](https://forum.ansible.com/t/export-debug-msg-to-a-file/29696 "2019-02-18T18:56:03Z")

</div>

Good Morning I need to send to a text file a message that appears in debug msg after a check if a directory exists. Follow Playbook below. But it is giving error in the recording of the file. This is my Playbook hosts…

---

## [apt\_key very slow on some keys?](https://forum.ansible.com/t/apt-key-very-slow-on-some-keys/29684)

<div class="topic-metadata">

**Author:** [@Georg\_Grossmann](https://forum.ansible.com/u/Georg_Grossmann)\
**Replies:** 9\
**Last updated:** [February 18, 2019, 12:41pm UTC](https://forum.ansible.com/t/apt-key-very-slow-on-some-keys/29684 "2019-02-18T12:41:51Z")

</div>

Hello, I am playing around with ansible and I wanted to use apt\_key. You can see in the picture on the left pane, that it takes 7 minutes to just add the postgresql key with apt\_key. Whereas when I use the url to a…

---

## [Check if test server configuration is same as prod server](https://forum.ansible.com/t/check-if-test-server-configuration-is-same-as-prod-server/29689)

<div class="topic-metadata">

**Author:** [@Yacine\_Mourchid](https://forum.ansible.com/u/Yacine_Mourchid)\
**Replies:** 5\
**Last updated:** [February 18, 2019, 11:09am UTC](https://forum.ansible.com/t/check-if-test-server-configuration-is-same-as-prod-server/29689 "2019-02-18T11:09:40Z")

</div>

Hello, I’m a beginner with Ansible. I wanna know how to check if configuration of test server and prod are same or if there is a difference. And if it’s possible, how to know what is the difference between them. I’ve…

---

## [How to handle case when dynamic inventory initially returns empty host list?](https://forum.ansible.com/t/how-to-handle-case-when-dynamic-inventory-initially-returns-empty-host-list/29694)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 10:55am UTC](https://forum.ansible.com/t/how-to-handle-case-when-dynamic-inventory-initially-returns-empty-host-list/29694 "2019-02-18T10:55:01Z")

</div>

Let’s suppose I have a custom dynamic inventory fetches instances from EC2 and makes an inventory from them and then if certain required instances do not exist they are created in the playbook and then inventory is refre…

---

## [PAN-OS \[panos\_content\]](https://forum.ansible.com/t/pan-os-panos-content/29693)

<div class="topic-metadata">

**Author:** [@Sudarshan\_V](https://forum.ansible.com/u/Sudarshan_V)\
**Replies:** 6\
**Last updated:** [February 17, 2019, 10:17pm UTC](https://forum.ansible.com/t/pan-os-panos-content/29693 "2019-02-17T22:17:29Z")

</div>

Hi All, Hoping someone could help me with this. I have also raised this as an issue on Github, but have not received any feedback. panos\_content modules fails with the below error message "ERROR! no action detected i…

---

## [Dealing with a half-expected error](https://forum.ansible.com/t/dealing-with-a-half-expected-error/29692)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [February 15, 2019, 10:38pm UTC](https://forum.ansible.com/t/dealing-with-a-half-expected-error/29692 "2019-02-15T22:38:18Z")

</div>

I’ve got some code that adds a rule to an AWS security group using the ec2\_group module. The problem is that if the rule I am adding already exists, Ansible throws an error. I am a bit puzzled as to why; normally Ansibl…

---

## [blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working](https://forum.ansible.com/t/blockinfile-state-absent-is-not-working-im-trying-to-remove-mulitple-lines-but-not-working/29690)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 5\
**Last updated:** [February 15, 2019, 1:59pm UTC](https://forum.ansible.com/t/blockinfile-state-absent-is-not-working-im-trying-to-remove-mulitple-lines-but-not-working/29690 "2019-02-15T13:59:36Z")

</div>

please someone help me to get answer for my query!

---

## [Custom module to allocate\_private\_virtual\_interface](https://forum.ansible.com/t/custom-module-to-allocate-private-virtual-interface/29675)

<div class="topic-metadata">

**Author:** [@Kishore\_Ponniah](https://forum.ansible.com/u/Kishore_Ponniah)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 12:20pm UTC](https://forum.ansible.com/t/custom-module-to-allocate-private-virtual-interface/29675 "2019-02-15T12:20:35Z")

</div>

Hi All, I am creating Direct Connect Private Virtual Interface but as a hosted interface. Currently, there are no ansible modules to allocate\_private\_virtual\_interface. This will create a private virtual interface to be…

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

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