# Latest

**URL:** https://forum.ansible.com/latest.md?page=403

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

**Page:** 404

---

## [get hostname from multihost](https://forum.ansible.com/t/get-hostname-from-multihost/32136)

<div class="topic-metadata">

**Author:** [@Azir\_Guleroglu](https://forum.ansible.com/u/Azir_Guleroglu)\
**Replies:** 4\
**Last updated:** [February 5, 2020, 1:05pm UTC](https://forum.ansible.com/t/get-hostname-from-multihost/32136 "2020-02-05T13:05:38Z")

</div>

Hello, I try to automate MongoDB installation with Ansible, but i can’t create a replica set members automatically. I want to get automatically 3 host’s hostnames and add to members. I tried to use setup module and wit…

---

## [Ansible 2.9.4 not considering/ honouring ansible\_winrm\_server\_cert\_validation=ignore flag.](https://forum.ansible.com/t/ansible-2-9-4-not-considering-honouring-ansible-winrm-server-cert-validation-ignore-flag/32142)

<div class="topic-metadata">

**Author:** [@Bhushan\_Gholave](https://forum.ansible.com/u/Bhushan_Gholave)\
**Replies:** 5\
**Last updated:** [February 5, 2020, 12:14pm UTC](https://forum.ansible.com/t/ansible-2-9-4-not-considering-honouring-ansible-winrm-server-cert-validation-ignore-flag/32142 "2020-02-05T12:14:32Z")

</div>

Hi All, Issue closed : https://github.com/ansible/ansible/issues/67114 host file \[windows\] 192.152.1.21 ansible\_user=administrator ansible\_password=Password123 ansible\_port=5986 ansible\_winrm\_transport=basic ansible…

---

## [Ansible install packages in docker image is hung.](https://forum.ansible.com/t/ansible-install-packages-in-docker-image-is-hung/32143)

<div class="topic-metadata">

**Author:** [@Toan\_Huynh\_Van](https://forum.ansible.com/u/Toan_Huynh_Van)\
**Replies:** 5\
**Last updated:** [February 5, 2020, 10:33am UTC](https://forum.ansible.com/t/ansible-install-packages-in-docker-image-is-hung/32143 "2020-02-05T10:33:56Z")

</div>

Hi all, I am using ansible to install packages for docker image but it’s hung with messages below. Can you have a look and give me advice? docker: “stderr\_lines”: \[ docker: “”, docker: “Extracting templates from pack…

---

## ["msg": "Unsupported parameters for (basic.py)](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140)

<div class="topic-metadata">

**Author:** [@Tejas\_Gadaria1](https://forum.ansible.com/u/Tejas_Gadaria1)\
**Replies:** 1\
**Last updated:** [February 5, 2020, 8:41am UTC](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140 "2020-02-05T08:41:25Z")

</div>

Hi Team, I have written ansible custom module. Module suppose to fetch data from database via graphsql template. Module execution fails with “Unsupported parameters for (basic.py)”. Ansible is imported as “from ansibl…

---

## [Example for running a playbook using Python API](https://forum.ansible.com/t/example-for-running-a-playbook-using-python-api/12413)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [February 5, 2020, 8:33am UTC](https://forum.ansible.com/t/example-for-running-a-playbook-using-python-api/12413 "2020-02-05T08:33:03Z")

</div>

Probably the best example of running a playbook via Python code is actually /usr/bin/ansible-playbook itself, though it uses nearly all of the flags. https://github.com/ansible/ansible/blob/devel/bin/ansible-playbook …

---

## [Ansible vault key stored in another server](https://forum.ansible.com/t/ansible-vault-key-stored-in-another-server/32137)

<div class="topic-metadata">

**Author:** [@Vignesh\_Srinivas](https://forum.ansible.com/u/Vignesh_Srinivas)\
**Replies:** 0\
**Last updated:** [February 4, 2020, 9:44pm UTC](https://forum.ansible.com/t/ansible-vault-key-stored-in-another-server/32137 "2020-02-04T21:44:11Z")

</div>

Hi Team, My requirement is to store the vault key in another server, and as part of playbook execution, the ansible reads key value from remote server and decrypts the file on control server. I tried getting the key usi…

---

## [Having issues running win\_domain\_group](https://forum.ansible.com/t/having-issues-running-win-domain-group/32127)

<div class="topic-metadata">

**Author:** [@Craig\_Simon](https://forum.ansible.com/u/Craig_Simon)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 9:39pm UTC](https://forum.ansible.com/t/having-issues-running-win-domain-group/32127 "2020-02-04T21:39:08Z")

</div>

Hey all, i’ve been using Ansibe with Linux for years, but now I have a need to use it to build out some Windows boxes and I am running into some issues. So far I am able to instal the AD-DS features and create my domain…

---

## [File exists but stat is false](https://forum.ansible.com/t/file-exists-but-stat-is-false/32132)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 5\
**Last updated:** [February 4, 2020, 8:58pm UTC](https://forum.ansible.com/t/file-exists-but-stat-is-false/32132 "2020-02-04T20:58:46Z")

</div>

I have a problem checking if a file exists: - name: Check if ssh key exists stat: path= "/config/clients/ssh\_keys/daniel\_nanboe.pub" register: exista - debug: var=exista - fail: msg: Stop The file exists but th…

---

## [Error while readin split part for updating Ubuntu packages - Should I include the path of splitpath,py in playbook ?](https://forum.ansible.com/t/error-while-readin-split-part-for-updating-ubuntu-packages-should-i-include-the-path-of-splitpath-py-in-playbook/32125)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 7:24pm UTC](https://forum.ansible.com/t/error-while-readin-split-part-for-updating-ubuntu-packages-should-i-include-the-path-of-splitpath-py-in-playbook/32125 "2020-02-04T19:24:35Z")

</div>

Hello, Please see below ansible.cfg \[defaults\] inventory = ./hosts splitpart.py = /etc/ansible/splitpart.py/ splitpart.py def splitpart (value, index, char = ‘,’): if isinstance(value, (list, tuple)): ret = for…

---

## [Problems with ios\_command and prompt '\[y/n\]'](https://forum.ansible.com/t/problems-with-ios-command-and-prompt-y-n/32135)

<div class="topic-metadata">

**Author:** [@Heinz\_Meier](https://forum.ansible.com/u/Heinz_Meier)\
**Replies:** 4\
**Last updated:** [February 4, 2020, 3:30pm UTC](https://forum.ansible.com/t/problems-with-ios-command-and-prompt-y-n/32135 "2020-02-04T15:30:36Z")

</div>

Hi, I have a problem with the ios\_command and the C9200L switch when updating the IOS-XE. One step of the upgrade is On step is to remove inactive IOS versions: install remove inactive (…) Do you want to remove the …

---

## [How to connect to ec2 instance using .pem file in ansible](https://forum.ansible.com/t/how-to-connect-to-ec2-instance-using-pem-file-in-ansible/32134)

<div class="topic-metadata">

**Author:** [@anilkumar\_panditi](https://forum.ansible.com/u/anilkumar_panditi)\
**Replies:** 4\
**Last updated:** [February 4, 2020, 1:29pm UTC](https://forum.ansible.com/t/how-to-connect-to-ec2-instance-using-pem-file-in-ansible/32134 "2020-02-04T13:29:15Z")

</div>

Hi , I am trying to connect to ec2 instance using .pem file in ansible. I am getting below error. fatal: \[hdi\_master1\]: UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect to the host via ssh: Permission d…

---

## [ansible playbook executing the tasks on localhost(Master Node) instead of remote node](https://forum.ansible.com/t/ansible-playbook-executing-the-tasks-on-localhost-master-node-instead-of-remote-node/32133)

<div class="topic-metadata">

**Author:** [@anilkumar\_panditi](https://forum.ansible.com/u/anilkumar_panditi)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 11:43am UTC](https://forum.ansible.com/t/ansible-playbook-executing-the-tasks-on-localhost-master-node-instead-of-remote-node/32133 "2020-02-04T11:43:35Z")

</div>

this is my dynamic inventory inventory of servers #ungrouped servers hdi\_master1 ansible\_host=13.234.186.61 ansible\_user=centos --private-key=/home/centos/openshift.pem #hdinsights groups \[hdinsights\_all\] hdi\_master…

---

## [get context extra vars before 2.8](https://forum.ansible.com/t/get-context-extra-vars-before-2-8/32117)

<div class="topic-metadata">

**Author:** [@FERREIRA\_CHRISTOPHE](https://forum.ansible.com/u/FERREIRA_CHRISTOPHE)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 11:32am UTC](https://forum.ansible.com/t/get-context-extra-vars-before-2-8/32117 "2020-02-04T11:32:23Z")

</div>

Hello it’s possible to get extra\_vars on the context of host before 2.8 in python ? In 2.8 load\_extra\_vars is work

---

## [start servers using ansible playbook](https://forum.ansible.com/t/start-servers-using-ansible-playbook/32128)

<div class="topic-metadata">

**Author:** [@Cloud09](https://forum.ansible.com/u/Cloud09)\
**Replies:** 3\
**Last updated:** [February 4, 2020, 10:41am UTC](https://forum.ansible.com/t/start-servers-using-ansible-playbook/32128 "2020-02-04T10:41:12Z")

</div>

Hello Team, I am writing a playbook to start weblogic servers, could anyone help me any syntax errors, I could not make item/item display as it should be, or please feel free to correct me here if any incorrect syntax a…

---

## [error while deploying docker-ce using ansible](https://forum.ansible.com/t/error-while-deploying-docker-ce-using-ansible/32122)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 7:58am UTC](https://forum.ansible.com/t/error-while-deploying-docker-ce-using-ansible/32122 "2020-02-04T07:58:34Z")

</div>

Hi, I am facing below error while running ansible role in my environment. could some one quide me how can I fix this.

---

## [multi process](https://forum.ansible.com/t/multi-process/32131)

<div class="topic-metadata">

**Author:** [@Mark\_Anthony\_Garcia](https://forum.ansible.com/u/Mark_Anthony_Garcia)\
**Replies:** 0\
**Last updated:** [February 4, 2020, 6:59am UTC](https://forum.ansible.com/t/multi-process/32131 "2020-02-04T06:59:06Z")

</div>

has anyone tried multi process / multi threading in ansible? not sure if my term is correct, but this is available in Python and was wondering if anyone was able to apply the same in Ansible. thank you. Mark

---

## [Selenium Script to be trigger from ansible Playbook](https://forum.ansible.com/t/selenium-script-to-be-trigger-from-ansible-playbook/32130)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 0\
**Last updated:** [February 4, 2020, 5:30am UTC](https://forum.ansible.com/t/selenium-script-to-be-trigger-from-ansible-playbook/32130 "2020-02-04T05:30:57Z")

</div>

Dear All, I am trying to automate selenium script for web browser testing which will be trigger by ansible playbook once configuration is done. Please share if you have any sample playbook which can be modified and use…

---

## [ansible support](https://forum.ansible.com/t/ansible-support/32129)

<div class="topic-metadata">

**Author:** [@vishwas\_govekar1](https://forum.ansible.com/u/vishwas_govekar1)\
**Replies:** 3\
**Last updated:** [February 4, 2020, 3:44am UTC](https://forum.ansible.com/t/ansible-support/32129 "2020-02-04T03:44:59Z")

</div>

Hi I need some project support on ansible scrippting

---

## [How can i fix the Errors when trying to import inventory file using awx\_manage within the container?](https://forum.ansible.com/t/how-can-i-fix-the-errors-when-trying-to-import-inventory-file-using-awx-manage-within-the-container/32111)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 2\
**Last updated:** [February 4, 2020, 3:16am UTC](https://forum.ansible.com/t/how-can-i-fix-the-errors-when-trying-to-import-inventory-file-using-awx-manage-within-the-container/32111 "2020-02-04T03:16:38Z")

</div>

Hello All, I am using a custom vmware script which retrieves inventory information and creates an inventory in .ini format and imports it using awx\_manage within the task container. For some reason, i am getting the fol…

---

## [Issues with specifying group vars with a dynamic EC2 inventory](https://forum.ansible.com/t/issues-with-specifying-group-vars-with-a-dynamic-ec2-inventory/32123)

<div class="topic-metadata">

**Author:** [@Justin\_Madill](https://forum.ansible.com/u/Justin_Madill)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 10:25pm UTC](https://forum.ansible.com/t/issues-with-specifying-group-vars-with-a-dynamic-ec2-inventory/32123 "2020-02-03T22:25:31Z")

</div>

I’m currently building out a PoC with Ansible Tower to manage our primarily windows environment. I’ve had everything working from the command line before starting with Tower, that that was using a static inventory. The…

---

## [Looking for guidance for a new \`homebrew\_service\` module](https://forum.ansible.com/t/looking-for-guidance-for-a-new-homebrew-service-module/32124)

<div class="topic-metadata">

**Author:** [@Lukas\_Bestle](https://forum.ansible.com/u/Lukas_Bestle)\
**Replies:** 1\
**Last updated:** [February 3, 2020, 9:40pm UTC](https://forum.ansible.com/t/looking-for-guidance-for-a-new-homebrew-service-module/32124 "2020-02-03T21:40:44Z")

</div>

Hi everyone, I’m currently working on a module to manage system services with the homebrew services command. Basically it allows to start, stop, enable and restart services of packages that have been installed using the…

---

## [please advise - Not generating logs after with ansible log\_group](https://forum.ansible.com/t/please-advise-not-generating-logs-after-with-ansible-log-group/32105)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [February 3, 2020, 6:31pm UTC](https://forum.ansible.com/t/please-advise-not-generating-logs-after-with-ansible-log-group/32105 "2020-02-03T18:31:07Z")

</div>

I am unable to generate logs with the playbook. Please advise? ansible.cfg \[defaults\] inventory = ./hosts \[callback\_log\_plays\] log\_folder = /var/log/ansible/hosts env:ANSIBLE\_LOG\_FOLDER host file \[windows\] windo…

---

## [install postgresql](https://forum.ansible.com/t/install-postgresql/32118)

<div class="topic-metadata">

**Author:** [@gaddam\_mahendra](https://forum.ansible.com/u/gaddam_mahendra)\
**Replies:** 4\
**Last updated:** [February 3, 2020, 3:12pm UTC](https://forum.ansible.com/t/install-postgresql/32118 "2020-02-03T15:12:42Z")

</div>

HI Team, could you please post a playbook to install postgresql database thanks mahi

---

## [Managing New virtual Machine inventory](https://forum.ansible.com/t/managing-new-virtual-machine-inventory/32120)

<div class="topic-metadata">

**Author:** [@Joffrey](https://forum.ansible.com/u/Joffrey)\
**Replies:** 3\
**Last updated:** [February 3, 2020, 3:01pm UTC](https://forum.ansible.com/t/managing-new-virtual-machine-inventory/32120 "2020-02-03T15:01:43Z")

</div>

Hi, I need you for an advice. I have some playbook to deploy virtuals machines on vsphere (the hosts option for these playbooks is ‘localhost’). And I have some playbook to configure these VM. I don’t know manage the …

---

## [Convert PowerShell script to Ansible task](https://forum.ansible.com/t/convert-powershell-script-to-ansible-task/32121)

<div class="topic-metadata">

**Author:** [@Rahul\_Rawat](https://forum.ansible.com/u/Rahul_Rawat)\
**Replies:** 1\
**Last updated:** [February 3, 2020, 12:58pm UTC](https://forum.ansible.com/t/convert-powershell-script-to-ansible-task/32121 "2020-02-03T12:58:07Z")

</div>

Hi, I have to convert PowerShell Script (using if else condition) into anisble task. How we can work with condition in ansible tasks. Here is my powershell script. $officeInstalled = Get-WmiObject win32\_product | whe…

---

## [Ansible Contributor Summit 8 (Part of foss-north 2020 Gothenburg)](https://forum.ansible.com/t/ansible-contributor-summit-8-part-of-foss-north-2020-gothenburg/32119)

<div class="topic-metadata">

**Author:** [@Carol\_Chen1](https://forum.ansible.com/u/Carol_Chen1)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 11:30am UTC](https://forum.ansible.com/t/ansible-contributor-summit-8-part-of-foss-north-2020-gothenburg/32119 "2020-02-03T11:30:38Z")

</div>

Hi everyone, It’s our pleasure to announce the 8th Ansible Contributor Summit! This time it will be in Europe, and instead of being attached to AnsibleFest, we will join as part of foss-north \[0\] in Gothenburg, Sweden. …

---

## [AWX seems to not support http POST, PASTE, DELETE, PATCH operations via the GUI in 9.x onwards](https://forum.ansible.com/t/awx-seems-to-not-support-http-post-paste-delete-patch-operations-via-the-gui-in-9-x-onwards/32110)

<div class="topic-metadata">

**Author:** [@Nik\_Tetteh-Lartey](https://forum.ansible.com/u/Nik_Tetteh-Lartey)\
**Replies:** 4\
**Last updated:** [February 3, 2020, 9:44am UTC](https://forum.ansible.com/t/awx-seems-to-not-support-http-post-paste-delete-patch-operations-via-the-gui-in-9-x-onwards/32110 "2020-02-03T09:44:40Z")

</div>

Hi Team, I’ve noticed that you cannot execute HTTP POST, PASTE, DELETE, PATCH operations via the GUI /api/v2 endpoint (SWAGGER functionality). I noticed when I reverted to AWX release 8 that the operations were availab…

---

## [Concatenate variable and string in looping with\_items](https://forum.ansible.com/t/concatenate-variable-and-string-in-looping-with-items/32112)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 10\
**Last updated:** [February 3, 2020, 5:24am UTC](https://forum.ansible.com/t/concatenate-variable-and-string-in-looping-with-items/32112 "2020-02-03T05:24:52Z")

</div>

Is it possible to concatenate like below? name: Retaining latest backup directory shell: find $(pwd)/backup -type d -prune -exec ls -d {} ; |tail -1 register: import\_back\_up\_dir name: Import dashboard grafana\_da…

---

## [Ansible Tower and Dummy Hosts/Facts](https://forum.ansible.com/t/ansible-tower-and-dummy-hosts-facts/32116)

<div class="topic-metadata">

**Author:** [@Glen\_Collins](https://forum.ansible.com/u/Glen_Collins)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 2:42pm UTC](https://forum.ansible.com/t/ansible-tower-and-dummy-hosts-facts/32116 "2020-02-01T14:42:12Z")

</div>

Hello. I am currently running my playbooks using Ansible Tower. I’m trying to work with facts as a method to store information that I can keep around until I want to get rid of it. Use it in multiple playbooks, etc. Whi…

---

## [Ansible Tower and Facts](https://forum.ansible.com/t/ansible-tower-and-facts/32115)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 1\
**Last updated:** [February 1, 2020, 8:14am UTC](https://forum.ansible.com/t/ansible-tower-and-facts/32115 "2020-02-01T08:14:54Z")

</div>

\- name: Set facts set\_fact: dummy\_fact: "Hello world" cacheable: yes delegate\_to: fake\_host delegate\_facts: true This sets the fact in the hostname fake\_host just fine. \[...\] I have tried to …

[Previous page](https://forum.ansible.com/latest.md?page=402)

[Next page](https://forum.ansible.com/latest.md?page=404)
