# Archives

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

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

**Page:** 273

---

## [Changing remote\_tmp path to a rooted directory.](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864)

<div class="topic-metadata">

**Author:** [@AC\_Zabala](https://forum.ansible.com/u/AC_Zabala)\
**Replies:** 1\
**Last updated:** [July 25, 2019, 11:49am UTC](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864 "2019-07-25T11:49:18Z")

</div>

Hi! Kinda new to ansible. So I am currently running a playbook using user1 on a remote host host. I am planning to change the remote\_tmp directory to /app/ansible/tmp/ (owned by root) and I am having this error. {“chang…

---

## [Need Guidance](https://forum.ansible.com/t/need-guidance/30865)

<div class="topic-metadata">

**Author:** [@Bala\_murugan](https://forum.ansible.com/u/Bala_murugan)\
**Replies:** 0\
**Last updated:** [July 25, 2019, 11:12am UTC](https://forum.ansible.com/t/need-guidance/30865 "2019-07-25T11:12:24Z")

</div>

Hello folks, I have a setup like 3 groups (development,staging,production) and each having 12 servers each. At the end of build , i have 12 Artifacts of jars created. So i need to automate this flow by copying only firs…

---

## [Ansible creates a directory with full permissions even though umask is set to "022" on the managed node](https://forum.ansible.com/t/ansible-creates-a-directory-with-full-permissions-even-though-umask-is-set-to-022-on-the-managed-node/30860)

<div class="topic-metadata">

**Author:** [@Minal\_Deshmukh](https://forum.ansible.com/u/Minal_Deshmukh)\
**Replies:** 4\
**Last updated:** [July 25, 2019, 9:59am UTC](https://forum.ansible.com/t/ansible-creates-a-directory-with-full-permissions-even-though-umask-is-set-to-022-on-the-managed-node/30860 "2019-07-25T09:59:18Z")

</div>

Hello Ansible experts, I am struck with this issue. Could you please help me on this. If I create a directory using Ansible on the managed node it creates it with full permissions. umask on the managed node in not ho…

---

## [Directory to store ansible's playbooks](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853)

<div class="topic-metadata">

**Author:** [@user89](https://forum.ansible.com/u/user89)\
**Replies:** 2\
**Last updated:** [July 25, 2019, 6:14am UTC](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853 "2019-07-25T06:14:05Z")

</div>

Hello team! Read the documentation and didn’t find where playbooks ansible should be store only advice that they should be under source control. I see /etc/ansible/roles directory installed by default. Is it mean that …

---

## [Ansible's handling of string representation of complex objects](https://forum.ansible.com/t/ansibles-handling-of-string-representation-of-complex-objects/30863)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 10:07pm UTC](https://forum.ansible.com/t/ansibles-handling-of-string-representation-of-complex-objects/30863 "2019-07-24T22:07:19Z")

</div>

I’ve run into a weird behaviour regarding how Ansible handles converting strings to complex objects. I have the following string representation of a list of dicts that I’m returning from a Cloudformation stack output: \[…

---

## [CPAN Modules](https://forum.ansible.com/t/cpan-modules/30857)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 4\
**Last updated:** [July 24, 2019, 2:35pm UTC](https://forum.ansible.com/t/cpan-modules/30857 "2019-07-24T14:35:18Z")

</div>

Ansible playbook error: Failed to find required executable cpanm in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Ansible Version: ansible 2.8.0 config file = /etc/ansible/ansible.cfg configured …

---

## [Task vars + Jinja template](https://forum.ansible.com/t/task-vars-jinja-template/30858)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 4\
**Last updated:** [July 24, 2019, 2:02pm UTC](https://forum.ansible.com/t/task-vars-jinja-template/30858 "2019-07-24T14:02:17Z")

</div>

Hi - I’m trying to evaluate the length of “foundQueuesCount” below in a Jinja template and use a conditional. Everything works perfectly except for when the length is zero. The task: - name: build routerconfig templ…

---

## [Problem removing a static route of a vhf in NXOS](https://forum.ansible.com/t/problem-removing-a-static-route-of-a-vhf-in-nxos/30859)

<div class="topic-metadata">

**Author:** [@Fernando\_Garcia\_Fern](https://forum.ansible.com/u/Fernando_Garcia_Fern)\
**Replies:** 0\
**Last updated:** [July 24, 2019, 1:25pm UTC](https://forum.ansible.com/t/problem-removing-a-static-route-of-a-vhf-in-nxos/30859 "2019-07-24T13:25:22Z")

</div>

Hi We’re using Ansible 2.8 and we’re trying to remove a static route defined in a vrf, but even following documentation directives (setting state to absent), it doesn’t work. From “show run” I see: vrf context MIDDLE …

---

## [Executing nested tags](https://forum.ansible.com/t/executing-nested-tags/30838)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 2\
**Last updated:** [July 24, 2019, 1:19pm UTC](https://forum.ansible.com/t/executing-nested-tags/30838 "2019-07-24T13:19:21Z")

</div>

Does anyone know of a way to execute only nested tags? For example, I use the same tag “cron” in multiple roles, but if I want to only execute the tasks tagged with “cron” under the “app1” role. Is there a syntax to make…

---

## [How to get past network device introductory menu](https://forum.ansible.com/t/how-to-get-past-network-device-introductory-menu/30848)

<div class="topic-metadata">

**Author:** [@Pete\_Siemsen](https://forum.ansible.com/u/Pete_Siemsen)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 1:17pm UTC](https://forum.ansible.com/t/how-to-get-past-network-device-introductory-menu/30848 "2019-07-24T13:17:16Z")

</div>

I’m using Ansible to talk to several Cisco devices. Most work as expected, but some of our terminal servers have an introductory menu. When I ssh to these devices, I don’t immediately get a prompt. Instead, I have to sel…

---

## [How to scale Ansible?](https://forum.ansible.com/t/how-to-scale-ansible/30855)

<div class="topic-metadata">

**Author:** [@EasyCook\_by\_Shailesh](https://forum.ansible.com/u/EasyCook_by_Shailesh)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 11:37am UTC](https://forum.ansible.com/t/how-to-scale-ansible/30855 "2019-07-24T11:37:29Z")

</div>

I have customer from small, medium and large environment, therefore I want to understand how to scale Ansible to deploy with right amount of resources.

---

## [How to use Ansible in distributed environment where I do not have direct access to end server on which Ansible has to run modules except Jump host?](https://forum.ansible.com/t/how-to-use-ansible-in-distributed-environment-where-i-do-not-have-direct-access-to-end-server-on-which-ansible-has-to-run-modules-except-jump-host/30854)

<div class="topic-metadata">

**Author:** [@EasyCook\_by\_Shailesh](https://forum.ansible.com/u/EasyCook_by_Shailesh)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 11:26am UTC](https://forum.ansible.com/t/how-to-use-ansible-in-distributed-environment-where-i-do-not-have-direct-access-to-end-server-on-which-ansible-has-to-run-modules-except-jump-host/30854 "2019-07-24T11:26:43Z")

</div>

I am trying to understand how Ansible would work in distributed environment where I do not have direct access to end server on which Ansible has to run modules except Jump host? I want to understand how this whole proce…

---

## [Not able to access or download blobs from azure storage with service principal credentials](https://forum.ansible.com/t/not-able-to-access-or-download-blobs-from-azure-storage-with-service-principal-credentials/30843)

<div class="topic-metadata">

**Author:** [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Replies:** 2\
**Last updated:** [July 24, 2019, 7:12am UTC](https://forum.ansible.com/t/not-able-to-access-or-download-blobs-from-azure-storage-with-service-principal-credentials/30843 "2019-07-24T07:12:29Z")

</div>

Hello Experts , I am trying to download/upload blobs with ansible azure\_rm\_storageblob module in AWX ( I have tried in Ansible core too, got the same error) , and get below error Error getting keys for account XXXXXXXX…

---

## [prompting for password](https://forum.ansible.com/t/prompting-for-password/30849)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 1\
**Last updated:** [July 23, 2019, 7:27pm UTC](https://forum.ansible.com/t/prompting-for-password/30849 "2019-07-23T19:27:07Z")

</div>

I am attempting to do a db update. I have tried using the following command name: run mysqlupgrade command: 'mysql\_upgrade -u root -p it hangs waiting for the password so I tried name: run mysqlupgrade expect…

---

## [Responding to password prompt](https://forum.ansible.com/t/responding-to-password-prompt/30850)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 7:18pm UTC](https://forum.ansible.com/t/responding-to-password-prompt/30850 "2019-07-23T19:18:44Z")

</div>

I am attempting to do a db update. I have tried using the following command name: run mysqlupgrade command: 'mysql\_upgrade -u root -p it hangs waiting for the password so I tried name: run mysqlupgrade expect…

---

## [Ansible Mail Module works on command line but Failing from AWX](https://forum.ansible.com/t/ansible-mail-module-works-on-command-line-but-failing-from-awx/30783)

<div class="topic-metadata">

**Author:** [@Tirumalaraju\_Chandra](https://forum.ansible.com/u/Tirumalaraju_Chandra)\
**Replies:** 7\
**Last updated:** [July 23, 2019, 5:03pm UTC](https://forum.ansible.com/t/ansible-mail-module-works-on-command-line-but-failing-from-awx/30783 "2019-07-23T17:03:36Z")

</div>

The problem show up only when I use Ansible AWX to run playbook. There was no problem when I run the Anisble-palybook CLI. I’m running a simple playbook to report on server configurations. I have a shell script to get s…

---

## [I have a question about awx clusters.](https://forum.ansible.com/t/i-have-a-question-about-awx-clusters/30842)

<div class="topic-metadata">

**Author:** [@user36](https://forum.ansible.com/u/user36)\
**Replies:** 1\
**Last updated:** [July 23, 2019, 2:42pm UTC](https://forum.ansible.com/t/i-have-a-question-about-awx-clusters/30842 "2019-07-23T14:42:09Z")

</div>

We configured the awx cluster using a bare metal based docker-swarm. Our management server is very large, about 10,000. To quickly process large volumes of work, you need to use three awx nodes simultaneously. The clu…

---

## [Python3, Boto3, and botocore AWS modules and "Module \\"name\\" shadows the name of a reserved keyword" error](https://forum.ansible.com/t/python3-boto3-and-botocore-aws-modules-and-module-name-shadows-the-name-of-a-reserved-keyword-error/30847)

<div class="topic-metadata">

**Author:** [@A.J\_Reese](https://forum.ansible.com/u/A.J_Reese)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 2:31pm UTC](https://forum.ansible.com/t/python3-boto3-and-botocore-aws-modules-and-module-name-shadows-the-name-of-a-reserved-keyword-error/30847 "2019-07-23T14:31:10Z")

</div>

I’m trying to install the boto3 and botocore modules in an area where Ansible can find them. I’m on a macbook pro with ansible installed using python3/pip3, not homebrew. Here’s the output of my “ansible --version” comma…

---

## [Developing plugin for Aerohive wireless access points - need another set of eyes](https://forum.ansible.com/t/developing-plugin-for-aerohive-wireless-access-points-need-another-set-of-eyes/30815)

<div class="topic-metadata">

**Author:** [@DT1](https://forum.ansible.com/u/DT1)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 1:51pm UTC](https://forum.ansible.com/t/developing-plugin-for-aerohive-wireless-access-points-need-another-set-of-eyes/30815 "2019-07-23T13:51:17Z")

</div>

I am in need of some guidance on developing a plugin for Aerohive wireless access points. I feel like I am very close to making this all work, but I am stuck and would appreciate any assistance that you can provide. I ha…

---

## [formatting IOS commands](https://forum.ansible.com/t/formatting-ios-commands/30763)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [July 23, 2019, 12:05pm UTC](https://forum.ansible.com/t/formatting-ios-commands/30763 "2019-07-23T12:05:35Z")

</div>

Hi Team, I am collecting IOS commands in my playbook and I need output human readable , I use( to\_nice\_yaml(indent=8, width=1337) currently. Any other suggestions to view the output as human readable. ios\_command: 30 …

---

## [Playbook error-- "Failed to lock apt for exclusive operation"](https://forum.ansible.com/t/playbook-error-failed-to-lock-apt-for-exclusive-operation/30845)

<div class="topic-metadata">

**Author:** [@Dhamodharan\_D](https://forum.ansible.com/u/Dhamodharan_D)\
**Replies:** 6\
**Last updated:** [July 23, 2019, 11:24am UTC](https://forum.ansible.com/t/playbook-error-failed-to-lock-apt-for-exclusive-operation/30845 "2019-07-23T11:24:03Z")

</div>

Hi All, I have configured ansible properly with 1 master and 1 node machine. Have configured the /etc/ansible/hosts file with \[webservers\] 172.31.xx.xx ansible\_ssh\_user=ansibleuser ansible\_ssh\_pass=passwd. and have w…

---

## [removing the extra new line from the stdout\_lines in ansible](https://forum.ansible.com/t/removing-the-extra-new-line-from-the-stdout-lines-in-ansible/30840)

<div class="topic-metadata">

**Author:** [@Bubunia\_Patra](https://forum.ansible.com/u/Bubunia_Patra)\
**Replies:** 3\
**Last updated:** [July 23, 2019, 9:51am UTC](https://forum.ansible.com/t/removing-the-extra-new-line-from-the-stdout-lines-in-ansible/30840 "2019-07-23T09:51:28Z")

</div>

Hi all, I am trying to parse the stdout\_lines to find the matching strings in a line. But the problem is stdout\_lines adds new line at the end and the match string also contains new line which looks ugly. Any idea how I…

---

## [String templating issue in lookup plugin command](https://forum.ansible.com/t/string-templating-issue-in-lookup-plugin-command/30844)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 9:43am UTC](https://forum.ansible.com/t/string-templating-issue-in-lookup-plugin-command/30844 "2019-07-23T09:43:42Z")

</div>

I’ve got a Playbook that uses a lookup plugin to retrieve a value but I seem to have a string templating issue. This is my playbook: \`

---

## [Save value of json\_query as real integer (without quotes) rather than as string](https://forum.ansible.com/t/save-value-of-json-query-as-real-integer-without-quotes-rather-than-as-string/30825)

<div class="topic-metadata">

**Author:** [@hauke](https://forum.ansible.com/u/hauke)\
**Replies:** 4\
**Last updated:** [July 23, 2019, 7:12am UTC](https://forum.ansible.com/t/save-value-of-json-query-as-real-integer-without-quotes-rather-than-as-string/30825 "2019-07-23T07:12:22Z")

</div>

Hi there, Currently I try to fetch an integer value of an API and to use that exact value later on to create an object via the same API. The problem is, the API only accepts JSON numbers (integer in this case) as input.…

---

## [Need Help](https://forum.ansible.com/t/need-help/30841)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 5:07am UTC](https://forum.ansible.com/t/need-help/30841 "2019-07-23T05:07:47Z")

</div>

Hi, I am trying to take backup of some REST API dump on target nodes . Assume that 3 nodes in cluster and 1 is controller node from where we invoke playbook, I need that backup on controller node as well. I can use mo…

---

## [openstack: fatal: \[default\]: FAILED! =\> {"msg": "Missing sudo password"}](https://forum.ansible.com/t/openstack-fatal-default-failed-msg-missing-sudo-password/30832)

<div class="topic-metadata">

**Author:** [@Toan\_Huynh\_Van](https://forum.ansible.com/u/Toan_Huynh_Van)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 3:02am UTC](https://forum.ansible.com/t/openstack-fatal-default-failed-msg-missing-sudo-password/30832 "2019-07-23T03:02:06Z")

</div>

Hi all, I have a issue about sudo password when using packer to build image and Ansible for provisioning. The error as title. below is my json file and playbook. Please help me resolve this issue. packer.json { “bui…

---

## [Ansible block + with\_together](https://forum.ansible.com/t/ansible-block-with-together/30839)

<div class="topic-metadata">

**Author:** [@Shyam\_Sunder1](https://forum.ansible.com/u/Shyam_Sunder1)\
**Replies:** 1\
**Last updated:** [July 22, 2019, 5:49pm UTC](https://forum.ansible.com/t/ansible-block-with-together/30839 "2019-07-22T17:49:59Z")

</div>

Hi There, I am new with Ansible and still figuring out how to use with\_together with block. UseCase: Trying to compare configuration of device A and device B. Below is a snippet from my script. \` - hosts: pairB c…

---

## [How to use ec2.py with group\_vars etc?](https://forum.ansible.com/t/how-to-use-ec2-py-with-group-vars-etc/30829)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [July 22, 2019, 4:32pm UTC](https://forum.ansible.com/t/how-to-use-ec2-py-with-group-vars-etc/30829 "2019-07-22T16:32:02Z")

</div>

Hi I can see the benefits of using the ec2.py dynamic inventory script, but I run into some issues which I can't figure out how to fix. 1. The ec2.py requires the credentials to be available as environment variables.…

---

## [How to remove the trailing new lines from the jinja templating of stdout\_lines](https://forum.ansible.com/t/how-to-remove-the-trailing-new-lines-from-the-jinja-templating-of-stdout-lines/30837)

<div class="topic-metadata">

**Author:** [@Bubunia\_Patra](https://forum.ansible.com/u/Bubunia_Patra)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 3:45pm UTC](https://forum.ansible.com/t/how-to-remove-the-trailing-new-lines-from-the-jinja-templating-of-stdout-lines/30837 "2019-07-22T15:45:13Z")

</div>

Hi all, I am trying to parse the stdout\_lines to find the matching strings in a line. But the problem is stdout\_lines adds new line at the end and the match string also contains new line which looks ugly. Any idea how I…

---

## [What do you use external postgresql or inner postgresql in playbook?](https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622)

<div class="topic-metadata">

**Author:** [@Chris12](https://forum.ansible.com/u/Chris12)\
**Replies:** 2\
**Last updated:** [July 22, 2019, 3:07pm UTC](https://forum.ansible.com/t/what-do-you-use-external-postgresql-or-inner-postgresql-in-playbook/30622 "2019-07-22T15:07:39Z")

</div>

What do you use external postgresql or inner postgresql in playbook?

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

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