# Ansible Project

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

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

**Page:** 178

---

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

---

## [Need Help for Install/Upgrade/Downgrade](https://forum.ansible.com/t/need-help-for-install-upgrade-downgrade/30834)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 4\
**Last updated:** [July 22, 2019, 2:01pm UTC](https://forum.ansible.com/t/need-help-for-install-upgrade-downgrade/30834 "2019-07-22T14:01:15Z")

</div>

I want to use simple single task for install/upgrade/downgrade . All 3 cases , I want to handle in one task: Currently I use 2 tasks: For Install: name: Install RPMs yum: name: ‘{{ rpm\_list }}’ state: ‘latest’ en…

---

## [Issue while Passing path values from loop to win\_command](https://forum.ansible.com/t/issue-while-passing-path-values-from-loop-to-win-command/30836)

<div class="topic-metadata">

**Author:** [@Asha\_Omanakuttan](https://forum.ansible.com/u/Asha_Omanakuttan)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 12:47pm UTC](https://forum.ansible.com/t/issue-while-passing-path-values-from-loop-to-win-command/30836 "2019-07-22T12:47:09Z")

</div>

Due to backslash being added or removed win\_command is not working as expected. It works fine when I pass the path in a variable. - name: List the user details win\_command: '{{full\_cmd}} {{cmd1}}' Variables are as b…

---

## [Unable to do basic win\_ping from CentOS7 to Windows 2012](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 4\
**Last updated:** [July 22, 2019, 12:38pm UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377 "2019-07-22T12:38:56Z")

</div>

If you have configured WinRM using the ConfigureRemotingForAnsible.ps1 script I would highly advise you to use HTTPS over port 5986 instead of HTTP. For one HTTP is sent over in cleartext and your credentials can be seen…

---

## [I want a task to fail if it takes longer than 2 hours to run](https://forum.ansible.com/t/i-want-a-task-to-fail-if-it-takes-longer-than-2-hours-to-run/30835)

<div class="topic-metadata">

**Author:** [@IP\_Freely](https://forum.ansible.com/u/IP_Freely)\
**Replies:** 1\
**Last updated:** [July 22, 2019, 11:31am UTC](https://forum.ansible.com/t/i-want-a-task-to-fail-if-it-takes-longer-than-2-hours-to-run/30835 "2019-07-22T11:31:15Z")

</div>

I have a task that I need to run a command module for, but I need it to fail after a specific amount of time. I’m going to be using blocks so I can then move to recovery when it fails. what’s the best way of assigning a…

---

## [Block of tasks such a syntax](https://forum.ansible.com/t/block-of-tasks-such-a-syntax/30833)

<div class="topic-metadata">

**Author:** [@kdt](https://forum.ansible.com/u/kdt)\
**Replies:** 1\
**Last updated:** [July 22, 2019, 10:26am UTC](https://forum.ansible.com/t/block-of-tasks-such-a-syntax/30833 "2019-07-22T10:26:28Z")

</div>

Hi, I wonder if following is a valid syntax for creating a block of tasks \` $ cat playbook-some.yml

---

## [Playbook, to outsource variable definition to dedicated file](https://forum.ansible.com/t/playbook-to-outsource-variable-definition-to-dedicated-file/30802)

<div class="topic-metadata">

**Author:** [@kdt](https://forum.ansible.com/u/kdt)\
**Replies:** 3\
**Last updated:** [July 22, 2019, 9:54am UTC](https://forum.ansible.com/t/playbook-to-outsource-variable-definition-to-dedicated-file/30802 "2019-07-22T09:54:38Z")

</div>

My playbook includes one single play. Every tasks in play imports - ‘import\_role:’ - one single role each. Every of imported roles is stored to own dedicated repository. This playbook is usually run from wrapper playbook…

---

## [AWS Playbook says "NoCredentialsError: Unable to locate credentials"](https://forum.ansible.com/t/aws-playbook-says-nocredentialserror-unable-to-locate-credentials/28284)

<div class="topic-metadata">

**Author:** [@ttwalto](https://forum.ansible.com/u/ttwalto)\
**Replies:** 2\
**Last updated:** [July 21, 2019, 6:44pm UTC](https://forum.ansible.com/t/aws-playbook-says-nocredentialserror-unable-to-locate-credentials/28284 "2019-07-21T18:44:26Z")

</div>

\*\* A heads up: the following post is very detailed, and I eventually figured out the problem. So if you’re not up for wading through it, that’s cool. I have an Ansible playbook that I’m trying to run. It creates an AWS …

---

## [help with 'when' please](https://forum.ansible.com/t/help-with-when-please/30823)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 1\
**Last updated:** [July 20, 2019, 6:55pm UTC](https://forum.ansible.com/t/help-with-when-please/30823 "2019-07-20T18:55:17Z")

</div>

Try and keep this short and simple - I obviously don’t know how to use when I guess… so I do some stuff trying users to login to linux instances from a list of users. \` centos ec2-user somotheruser \` I have the cum…

---

## [Understanding use cases behind k8s and openshift inventory design](https://forum.ansible.com/t/understanding-use-cases-behind-k8s-and-openshift-inventory-design/30830)

<div class="topic-metadata">

**Author:** [@Andrew\_Feller](https://forum.ansible.com/u/Andrew_Feller)\
**Replies:** 0\
**Last updated:** [July 20, 2019, 4:39pm UTC](https://forum.ansible.com/t/understanding-use-cases-behind-k8s-and-openshift-inventory-design/30830 "2019-07-20T16:39:02Z")

</div>

I’ve been working on an Ansible role to facilitate managing OpenShift projects, secrets, etc for applications under the notion that projects correlate to inventory hosts similar to what k8s and openshift inventories gene…

---

## [Ansible tower installation error !!](https://forum.ansible.com/t/ansible-tower-installation-error/30827)

<div class="topic-metadata">

**Author:** [@aditya\_singh](https://forum.ansible.com/u/aditya_singh)\
**Replies:** 2\
**Last updated:** [July 20, 2019, 3:31pm UTC](https://forum.ansible.com/t/ansible-tower-installation-error/30827 "2019-07-20T15:31:53Z")

</div>

Hi recently i was trying to install Tower in centos7 bu t iam getting a error during the time of installation / Can i get some help ??? The Error I’m getting is this : TASK \[awx\_install : Migrate the Tower database sch…

---

## [How to contribute to ansible](https://forum.ansible.com/t/how-to-contribute-to-ansible/30828)

<div class="topic-metadata">

**Author:** [@Ehab\_Arman](https://forum.ansible.com/u/Ehab_Arman)\
**Replies:** 0\
**Last updated:** [July 20, 2019, 2:05pm UTC](https://forum.ansible.com/t/how-to-contribute-to-ansible/30828 "2019-07-20T14:05:12Z")

</div>

Hello all, I have been using Ansible for a while now and I would like to join the community and make some contribution to the Ansible modules. I went through some of the Ansible docs and advices of contribution work. B…

---

## [ISP link monitoring](https://forum.ansible.com/t/isp-link-monitoring/30824)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 1\
**Last updated:** [July 20, 2019, 5:43am UTC](https://forum.ansible.com/t/isp-link-monitoring/30824 "2019-07-20T05:43:44Z")

</div>

Hi Everyone. I am looking to monitor the performance of ISP links in various branch offices. This is we want for proactive monitoring and alerting. Please suggest if you have ideas/ script available via ansible. Than…

---

## [Install vcloud module for ansible](https://forum.ansible.com/t/install-vcloud-module-for-ansible/30822)

<div class="topic-metadata">

**Author:** [@Nicolas\_Santos](https://forum.ansible.com/u/Nicolas_Santos)\
**Replies:** 5\
**Last updated:** [July 19, 2019, 8:00pm UTC](https://forum.ansible.com/t/install-vcloud-module-for-ansible/30822 "2019-07-19T20:00:41Z")

</div>

Good afternoon, I am having some issues with installing the ansible vcloud module, as I am not that experienced with importing roles maybe there is something that is not right… The module is installed in /etc/ansible/ro…

---

## [Help wanted: "Including" playbooks for a "Playbook of Playbooks"](https://forum.ansible.com/t/help-wanted-including-playbooks-for-a-playbook-of-playbooks/30816)

<div class="topic-metadata">

**Author:** [@Kedwin\_Chen](https://forum.ansible.com/u/Kedwin_Chen)\
**Replies:** 6\
**Last updated:** [July 19, 2019, 6:31pm UTC](https://forum.ansible.com/t/help-wanted-including-playbooks-for-a-playbook-of-playbooks/30816 "2019-07-19T18:31:34Z")

</div>

I am trying to “include” a lot of other playbooks in a “playbook of playbooks” (I am aware, and have tried to use, the import\_playbook and include modules to no avail), and am trying to apply the ignore\_errors: yes to th…

---

## [Ansible noob - not helpless, just looking for a nudge in the right direction](https://forum.ansible.com/t/ansible-noob-not-helpless-just-looking-for-a-nudge-in-the-right-direction/30814)

<div class="topic-metadata">

**Author:** [@DT1](https://forum.ansible.com/u/DT1)\
**Replies:** 4\
**Last updated:** [July 19, 2019, 1:31pm UTC](https://forum.ansible.com/t/ansible-noob-not-helpless-just-looking-for-a-nudge-in-the-right-direction/30814 "2019-07-19T13:31:47Z")

</div>

Right off the bat, I am a total noob to Ansible and relatively new to Python coding as well. With that said I am trying to figure things out on my own before bringing them here to the group. I have a few questions that I…

---

## [kubernets auth reconcile](https://forum.ansible.com/t/kubernets-auth-reconcile/30821)

<div class="topic-metadata">

**Author:** [@Joacim\_Martensson](https://forum.ansible.com/u/Joacim_Martensson)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 12:36pm UTC](https://forum.ansible.com/t/kubernets-auth-reconcile/30821 "2019-07-19T12:36:49Z")

</div>

Hi, Anyone using kubernets auth reconcile in their playbooks? https://kubernetes.io/docs/reference/access-authn-authz/rbac/#kubectl-auth-reconcile I’m using the k8s module which works fine for almost everything exept …

---

## [dealing with prompt scenario in privilege mode](https://forum.ansible.com/t/dealing-with-prompt-scenario-in-privilege-mode/30817)

<div class="topic-metadata">

**Author:** [@Netizen\_Bhoomi](https://forum.ansible.com/u/Netizen_Bhoomi)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 11:52am UTC](https://forum.ansible.com/t/dealing-with-prompt-scenario-in-privilege-mode/30817 "2019-07-19T11:52:02Z")

</div>

Any pointers on how to deal with scenarios where system prompt for user input in ios\_config module ? . I am trying to execute the command “crypto key zeroize” , which results a yes/no prompt . Saw a reference here https:…

---

## [Is there any Alternative of command/shell module](https://forum.ansible.com/t/is-there-any-alternative-of-command-shell-module/30819)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 10:24am UTC](https://forum.ansible.com/t/is-there-any-alternative-of-command-shell-module/30819 "2019-07-19T10:24:07Z")

</div>

I prepared a playbook as follows:

---

## [error ansible.module\_utils.connection.ConnectionError: Socket is closed](https://forum.ansible.com/t/error-ansible-module-utils-connection-connectionerror-socket-is-closed/30818)

<div class="topic-metadata">

**Author:** [@davidoudou](https://forum.ansible.com/u/davidoudou)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 8:36am UTC](https://forum.ansible.com/t/error-ansible-module-utils-connection-connectionerror-socket-is-closed/30818 "2019-07-19T08:36:34Z")

</div>

Hi all! I am facing an issue in my role. I am trying to configure a mikrotik router with the “routeros\_command” module. It works just fine. But, if I do a scp from my local machine to the router and then use the “rout…

---

## [AIX FLRTCV issue](https://forum.ansible.com/t/aix-flrtcv-issue/30744)

<div class="topic-metadata">

**Author:** [@Diego\_Cappri](https://forum.ansible.com/u/Diego_Cappri)\
**Replies:** 3\
**Last updated:** [July 19, 2019, 4:57am UTC](https://forum.ansible.com/t/aix-flrtcv-issue/30744 "2019-07-19T04:57:17Z")

</div>

Hi! This is my first post. I’m having some issues when running FLRTVC on AIX through NIM. Here’s some info of my test lab: Ansible Engine: RHEL / Python 2.7.5 AIX NIM Master: AIX 7.2 / Python 2.7.16 / NIM 7.2.2.0 AIX…

---

## [Is there any way to use distro-sync (Distribution Synchronization) option of yum inside Yum Ansible Module.?](https://forum.ansible.com/t/is-there-any-way-to-use-distro-sync-distribution-synchronization-option-of-yum-inside-yum-ansible-module/30812)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 0\
**Last updated:** [July 18, 2019, 4:30pm UTC](https://forum.ansible.com/t/is-there-any-way-to-use-distro-sync-distribution-synchronization-option-of-yum-inside-yum-ansible-module/30812 "2019-07-18T16:30:37Z")

</div>

Hi , I want below command simulation using Ansible yum module: yum distro-sync --disablerepo=‘\*’ --enablerepo=‘myrepo’ I dont think currently yum provides any option called distro-sync. Does that mean i need to use she…

---

## [Ansible testing with Ericsson equipment(Routers,Switches and Microwave Equipment)](https://forum.ansible.com/t/ansible-testing-with-ericsson-equipment-routers-switches-and-microwave-equipment/30807)

<div class="topic-metadata">

**Author:** [@Khurram\_Butt](https://forum.ansible.com/u/Khurram_Butt)\
**Replies:** 0\
**Last updated:** [July 18, 2019, 12:08pm UTC](https://forum.ansible.com/t/ansible-testing-with-ericsson-equipment-routers-switches-and-microwave-equipment/30807 "2019-07-18T12:08:47Z")

</div>

Dear Gents, I am trying to test Ansible with Ericsson Routers, Switches and Microwave Equipment but failing to connect to using Ansible. Complete details of the problem can be found by clicking the following Caption… A…

---

## [Using hostvars to smuggle values into play context is not recommended](https://forum.ansible.com/t/using-hostvars-to-smuggle-values-into-play-context-is-not-recommended/30806)

<div class="topic-metadata">

**Author:** [@Minimus\_Geekus](https://forum.ansible.com/u/Minimus_Geekus)\
**Replies:** 0\
**Last updated:** [July 18, 2019, 10:27am UTC](https://forum.ansible.com/t/using-hostvars-to-smuggle-values-into-play-context-is-not-recommended/30806 "2019-07-18T10:27:32Z")

</div>

Hi all, I have experienced exactly the same issue as reported in these two: https://github.com/ansible/ansible/issues/31407 https://github.com/ansible/ansible/issues/36575 In summary something like this… hosts: “{{…

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

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