# Latest

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

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

**Page:** 390

---

## [ansible nfsclient error](https://forum.ansible.com/t/ansible-nfsclient-error/32558)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 6:55am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558 "2020-03-30T06:55:19Z")

</div>

Dear all: I can connect to this ip and share folder tasks: name: Ensure NFS Common is installed apt: name=nfs-common update\_cache=yes name: Create mountable dir file: path=/nfs state=directory mode=777 owner=sand…

---

## [Invoke-CommandInDesktopPackage ( Not able to execute Invoke-CommandInDesktopPackage  with Ansible (win\_shell) option](https://forum.ansible.com/t/invoke-commandindesktoppackage-not-able-to-execute-invoke-commandindesktoppackage-with-ansible-win-shell-option/32556)

<div class="topic-metadata">

**Author:** [@Raviteja\_Jinkala](https://forum.ansible.com/u/Raviteja_Jinkala)\
**Replies:** 2\
**Last updated:** [March 30, 2020, 6:31am UTC](https://forum.ansible.com/t/invoke-commandindesktoppackage-not-able-to-execute-invoke-commandindesktoppackage-with-ansible-win-shell-option/32556 "2020-03-30T06:31:12Z")

</div>

Hi Team, I am not able to execute Invoke-CommandInDesktopPackage with Ansible (win\_shell) , facing below error. please check and let me how to fix the issue. I am running with Full access User. Invoke-CommandInDesktop…

---

## [Error in rabbitmq container of awx pod when trying to install awx v9.2.0 on kubernetes cluster](https://forum.ansible.com/t/error-in-rabbitmq-container-of-awx-pod-when-trying-to-install-awx-v9-2-0-on-kubernetes-cluster/32551)

<div class="topic-metadata">

**Author:** [@SANCHIT\_KHANDELWAL](https://forum.ansible.com/u/SANCHIT_KHANDELWAL)\
**Replies:** 9\
**Last updated:** [March 30, 2020, 3:56am UTC](https://forum.ansible.com/t/error-in-rabbitmq-container-of-awx-pod-when-trying-to-install-awx-v9-2-0-on-kubernetes-cluster/32551 "2020-03-30T03:56:34Z")

</div>

Hi All, Hope you are doing well. I have tried installing awx 9.2.0 version on kubernetes on single node(ubuntu machine) and got success. Now when I are trying to install the same version on multi node(1-master 2=worke…

---

## [nfs client ansible](https://forum.ansible.com/t/nfs-client-ansible/32547)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 5\
**Last updated:** [March 30, 2020, 3:06am UTC](https://forum.ansible.com/t/nfs-client-ansible/32547 "2020-03-30T03:06:11Z")

</div>

dear all: fatal: \[192.168.1.120\]: FAILED! =\> { “changed”: false, “invocation”: { “module\_args”: { “dump”: “0”, “fstype”: “nfs”, “opts”: “defaults,nobootwait”, “passno”: “2”, “path”: “/nfs”, “sate”: “mounted”, …

---

## [How to execute Play 2 only if Play 1 succeeds](https://forum.ansible.com/t/how-to-execute-play-2-only-if-play-1-succeeds/32555)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [March 29, 2020, 2:38pm UTC](https://forum.ansible.com/t/how-to-execute-play-2-only-if-play-1-succeeds/32555 "2020-03-29T14:38:24Z")

</div>

I have two Plays having one task each. The first Play 1 checks if the/var/test.datexists on each target host. Only if the Play 1 is successful do I want the second play Play 2 to run which executes scripts in parallel. …

---

## [Specifying template src with a variable](https://forum.ansible.com/t/specifying-template-src-with-a-variable/32554)

<div class="topic-metadata">

**Author:** [@Geo\_P.C](https://forum.ansible.com/u/Geo_P.C)\
**Replies:** 6\
**Last updated:** [March 29, 2020, 10:43am UTC](https://forum.ansible.com/t/specifying-template-src-with-a-variable/32554 "2020-03-29T10:43:10Z")

</div>

In ansible we are trying to access different templates based on variable. We have following template files like: templates app1.conf.j2 app2.conf.j2 app3.conf.j2 taks app.yml In tasks we need to copy template fil…

---

## [Windows Host Unreachable](https://forum.ansible.com/t/windows-host-unreachable/32548)

<div class="topic-metadata">

**Author:** [@Marco\_Passarinho](https://forum.ansible.com/u/Marco_Passarinho)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 12:33am UTC](https://forum.ansible.com/t/windows-host-unreachable/32548 "2020-03-29T00:33:17Z")

</div>

Hello, I’m getting the following error when trying to win\_ping my windows host: Command: ansible VMs -m win\_ping Response: xx.xx.xx.xxx | UNREACHABLE! =\> { “changed”: false, “msg”: “basic: HTTPSConnectionPool(host…

---

## [Error Handling  of Failed Task](https://forum.ansible.com/t/error-handling-of-failed-task/32553)

<div class="topic-metadata">

**Author:** [@Mahmut](https://forum.ansible.com/u/Mahmut)\
**Replies:** 0\
**Last updated:** [March 28, 2020, 8:46pm UTC](https://forum.ansible.com/t/error-handling-of-failed-task/32553 "2020-03-28T20:46:18Z")

</div>

Hello Dear All, I am using a playbook that gives below output intentionally. Is there any possible way that I can write this FAILED statement to a file in order to be used by another script? thanks, PLAY \[CHECK USERS …

---

## [create a new crontab using cron module for ansible](https://forum.ansible.com/t/create-a-new-crontab-using-cron-module-for-ansible/32552)

<div class="topic-metadata">

**Author:** [@Shubham\_Gampawar](https://forum.ansible.com/u/Shubham_Gampawar)\
**Replies:** 0\
**Last updated:** [March 28, 2020, 2:54pm UTC](https://forum.ansible.com/t/create-a-new-crontab-using-cron-module-for-ansible/32552 "2020-03-28T14:54:26Z")

</div>

Hi there, What’s the transport you are using?, Can you share the complete log(along with command for execution) and playbook you are running. You can give a try by running playbook in mode Thanks,

---

## [how to comment multiple lines in ansible playbook](https://forum.ansible.com/t/how-to-comment-multiple-lines-in-ansible-playbook/23510)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 6\
**Last updated:** [March 28, 2020, 2:15pm UTC](https://forum.ansible.com/t/how-to-comment-multiple-lines-in-ansible-playbook/23510 "2020-03-28T14:15:07Z")

</div>

how to comment multiple lines in ansible playbook for line i just use # but to comment multiple line ? Thank you -Jay

---

## [Downloading files with a specific regular expression from remote https host to target server local path.](https://forum.ansible.com/t/downloading-files-with-a-specific-regular-expression-from-remote-https-host-to-target-server-local-path/32543)

<div class="topic-metadata">

**Author:** [@user106](https://forum.ansible.com/u/user106)\
**Replies:** 6\
**Last updated:** [March 27, 2020, 8:15pm UTC](https://forum.ansible.com/t/downloading-files-with-a-specific-regular-expression-from-remote-https-host-to-target-server-local-path/32543 "2020-03-27T20:15:44Z")

</div>

Having some difficulty finding what is the Ansible code to do this: Downloading files with a specific regular expression from remote http / https host to a target server local path. So would like to wget http://remote.…

---

## [save stdout to file on localhost.](https://forum.ansible.com/t/save-stdout-to-file-on-localhost/32550)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 6:00pm UTC](https://forum.ansible.com/t/save-stdout-to-file-on-localhost/32550 "2020-03-27T18:00:20Z")

</div>

i want to query all the users on the hosts of my inventory and create afile for each hosts with all the privileges for each user I know that htere tools like freeipa but we do not have those in place so i am using the …

---

## [expect and "Press \<Enter\> to continue."](https://forum.ansible.com/t/expect-and-press-enter-to-continue/32517)

<div class="topic-metadata">

**Author:** [@Jost](https://forum.ansible.com/u/Jost)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 10:28am UTC](https://forum.ansible.com/t/expect-and-press-enter-to-continue/32517 "2020-03-27T10:28:13Z")

</div>

Hi how can I use expect module to responds to “Press to continue.” during installation of software on linux? The questins during installations are: Press to continue. → then show licence you have to go to the last l…

---

## [Purpose of Migrate database task (Version 9.1.0 and 9.2.0)](https://forum.ansible.com/t/purpose-of-migrate-database-task-version-9-1-0-and-9-2-0/32546)

<div class="topic-metadata">

**Author:** [@Ajitkumar\_Tanwade](https://forum.ansible.com/u/Ajitkumar_Tanwade)\
**Replies:** 0\
**Last updated:** [March 27, 2020, 4:14am UTC](https://forum.ansible.com/t/purpose-of-migrate-database-task-version-9-1-0-and-9-2-0/32546 "2020-03-27T04:14:45Z")

</div>

Hi All, Hope you are doing well When we are trying to install AWX on K8S, it is either hang at the task: Migrate Database or give below error. We are creating a new PV. Error: django.db.utils.OperationalError: could …

---

## [Create AWS EFS](https://forum.ansible.com/t/create-aws-efs/32527)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 7\
**Last updated:** [March 27, 2020, 3:59am UTC](https://forum.ansible.com/t/create-aws-efs/32527 "2020-03-27T03:59:31Z")

</div>

Dear All: I have create efs ansible , I have install boto3 this is show error msg this is my ansible

---

## [How to extract a value of a field within a list of dictionaries  when a key matches another value](https://forum.ansible.com/t/how-to-extract-a-value-of-a-field-within-a-list-of-dictionaries-when-a-key-matches-another-value/32545)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 11:18pm UTC](https://forum.ansible.com/t/how-to-extract-a-value-of-a-field-within-a-list-of-dictionaries-when-a-key-matches-another-value/32545 "2020-03-26T23:18:49Z")

</div>

The playbook below - name: test with json\_query 1/2 hosts: localhost vars: domain\_definition: - name: server11 cluster: cluster1 port: '8080' - name: server12 cluster:…

---

## [Can't delete AWX Inventory](https://forum.ansible.com/t/cant-delete-awx-inventory/32533)

<div class="topic-metadata">

**Author:** [@jzhang2006](https://forum.ansible.com/u/jzhang2006)\
**Replies:** 1\
**Last updated:** [March 26, 2020, 11:01pm UTC](https://forum.ansible.com/t/cant-delete-awx-inventory/32533 "2020-03-26T23:01:01Z")

</div>

Just installed new AWX (AWX 9.3.0, Ansible 2.9.5) and use it from Chrome. Can’t delete Inventory. The radio button seems can’t be selected but when click it, the deletion seems executing on that inventory. It shows ‘work…

---

## [cannot run playbooks inside awx](https://forum.ansible.com/t/cannot-run-playbooks-inside-awx/32521)

<div class="topic-metadata">

**Author:** [@Dieye\_Pape\_Doudou](https://forum.ansible.com/u/Dieye_Pape_Doudou)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 9:55pm UTC](https://forum.ansible.com/t/cannot-run-playbooks-inside-awx/32521 "2020-03-26T21:55:53Z")

</div>

Hello i’m a new user of AWX i can run a simple playbooks inside my VM ( Centos 7) but not inside AWX i have the following error : ansible-playbook 2.9.3 2 config file = /etc/ansible/ansible.cfg 3 configured module…

---

## [Connection timed out\\n\\tIs the server running on host \\"awx-postgresql](https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544)

<div class="topic-metadata">

**Author:** [@SANCHIT\_KHANDELWAL](https://forum.ansible.com/u/SANCHIT_KHANDELWAL)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 6:32pm UTC](https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544 "2020-03-26T18:32:27Z")

</div>

While installing AWX version 9.1.0 on kubernetes, I encountered the below while running the installer Stucks at task : Migrate database Error : fatal: \[localhost\]: FAILED! =\> {“changed”: true, “cmd”: “kubectl -n awx …

---

## [Integer comparison if condition jinja2 template Ansible does not work](https://forum.ansible.com/t/integer-comparison-if-condition-jinja2-template-ansible-does-not-work/32542)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 6:21pm UTC](https://forum.ansible.com/t/integer-comparison-if-condition-jinja2-template-ansible-does-not-work/32542 "2020-03-26T18:21:17Z")

</div>

My jinja2 template yields correct value for the variable {{ vars\[\[allip.name\](http://allip.name/) | join("")\] | default('ERR') }} The variable has value 82.3 which gets printed by Ansible’s template module. I wish to …

---

## [Using an Ansible Vault Key with Newlines](https://forum.ansible.com/t/using-an-ansible-vault-key-with-newlines/32541)

<div class="topic-metadata">

**Author:** [@Susan\_Tang](https://forum.ansible.com/u/Susan_Tang)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 4:59pm UTC](https://forum.ansible.com/t/using-an-ansible-vault-key-with-newlines/32541 "2020-03-26T16:59:13Z")

</div>

Hi all, In our manual Ansible runs, we’re currently using a Vault key file with newlines in it and specifying it as “\<vault\_id\>@file\_path/file\_name”, this all works smoothly. However, when adding credentials to the Vau…

---

## [Setting the restart priority in the vm level](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540)

<div class="topic-metadata">

**Author:** [@Shanmathi\_Manisekara](https://forum.ansible.com/u/Shanmathi_Manisekara)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 2:58pm UTC](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540 "2020-03-26T14:58:49Z")

</div>

Hi all, I wanted to set the restart priority in the vm level. Currently vmware\_cluster\_ha module can set the restart priority in a cluster level. But I did some search and found that there is no module to do this in vm …

---

## [could not translate host name "awx-postgresql"](https://forum.ansible.com/t/could-not-translate-host-name-awx-postgresql/32536)

<div class="topic-metadata">

**Author:** [@SANCHIT\_KHANDELWAL](https://forum.ansible.com/u/SANCHIT_KHANDELWAL)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 2:28pm UTC](https://forum.ansible.com/t/could-not-translate-host-name-awx-postgresql/32536 "2020-03-26T14:28:40Z")

</div>

ISSUE TYPE- Bug Report COMPONENT NAME- Installer SUMMARY running the installer against a kubernetes cluster does not finish, stuck at database migration ENVIRONMENT- AWX install method: kubernetes Ansible version: 2.9…

---

## [Setting the restart priority in the vm level.](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32539)

<div class="topic-metadata">

**Author:** [@Shane\_McDonald](https://forum.ansible.com/u/Shane_McDonald)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 1:52pm UTC](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32539 "2020-03-26T13:52:37Z")

</div>

I think you found the wrong mailing list. Try the Ansible mailing list, not AWX.

---

## [AWX sync failing](https://forum.ansible.com/t/awx-sync-failing/32522)

<div class="topic-metadata">

**Author:** [@Matthew\_Wimpelberg](https://forum.ansible.com/u/Matthew_Wimpelberg)\
**Replies:** 4\
**Last updated:** [March 26, 2020, 1:45pm UTC](https://forum.ansible.com/t/awx-sync-failing/32522 "2020-03-26T13:45:35Z")

</div>

My sync from AWS is stuck in a pending state. I’m happy to provide any information necessary aside from what’s below. \[root@awx ~\]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 10ab7c1b0bce ansible/…

---

## [AWX 9.3.0 not running job(awx-manage: command not found.)](https://forum.ansible.com/t/awx-9-3-0-not-running-job-awx-manage-command-not-found/32529)

<div class="topic-metadata">

**Author:** [@Ivan\_Filyanin](https://forum.ansible.com/u/Ivan_Filyanin)\
**Replies:** 3\
**Last updated:** [March 26, 2020, 1:40pm UTC](https://forum.ansible.com/t/awx-9-3-0-not-running-job-awx-manage-command-not-found/32529 "2020-03-26T13:40:23Z")

</div>

Installed: Docker-compose OS: Debian 10 buster Browser: Firefox Hello, after installing AWX 9.3.0, job does not work, files from project are not updated in manual mode. When trying to collect logs as requested by the …

---

## [Unable to get remote target hostname when using delegate\_to](https://forum.ansible.com/t/unable-to-get-remote-target-hostname-when-using-delegate-to/32534)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [March 26, 2020, 9:05am UTC](https://forum.ansible.com/t/unable-to-get-remote-target-hostname-when-using-delegate-to/32534 "2020-03-26T09:05:45Z")

</div>

Below playbook gets the disk usage percentage of ‘/tmp’ from a list of remote\_hosts \[20 remote servers\] and stores it locally (delegate\_to) in a file {{ playbook\_dir }}/tmpfiles/stats.yml \`

---

## [ternary clarification needed](https://forum.ansible.com/t/ternary-clarification-needed/32535)

<div class="topic-metadata">

**Author:** [@Davide\_Scrimieri](https://forum.ansible.com/u/Davide_Scrimieri)\
**Replies:** 5\
**Last updated:** [March 26, 2020, 8:32am UTC](https://forum.ansible.com/t/ternary-clarification-needed/32535 "2020-03-26T08:32:15Z")

</div>

Hello, Whenever a ternary is used are both conditions evaluated regardless ? For example, I want to convert “my\_other\_var” to an object only if it is passed as as string, otherwise I don’t want to touch the object, and…

---

## [Unable to get correct disk space utilized percentage using Ansible API](https://forum.ansible.com/t/unable-to-get-correct-disk-space-utilized-percentage-using-ansible-api/32531)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 8\
**Last updated:** [March 26, 2020, 6:09am UTC](https://forum.ansible.com/t/unable-to-get-correct-disk-space-utilized-percentage-using-ansible-api/32531 "2020-03-26T06:09:07Z")

</div>

Here is the output of df -k from the target server: # df -k Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 1905280 0 1905280 0% /dev tmpfs 1922024 0 1922024 0% /dev/shm /dev/sda1 1942528 295616 164691…

---

## [Using Ansible to query Splunk logs](https://forum.ansible.com/t/using-ansible-to-query-splunk-logs/32532)

<div class="topic-metadata">

**Author:** [@John1](https://forum.ansible.com/u/John1)\
**Replies:** 0\
**Last updated:** [March 25, 2020, 10:41pm UTC](https://forum.ansible.com/t/using-ansible-to-query-splunk-logs/32532 "2020-03-25T22:41:22Z")

</div>

I am coming up short on this, but wondering if anyone has tried, or has recommendations for querying error logs stored in Splunk with Ansible? The reason is to push the query load to the Splunk servers and not the produc…

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

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