# Archives

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

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

**Page:** 204

---

## [unable to pull from gitlab](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 10:01pm UTC](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892 "2020-05-08T22:01:48Z")

</div>

Hi, I’m pretty much a newb to AWX… I am doing an Ansible-Tower PoC for my company, but I am somewhat limited as to what I can do in my companies network. So I have setup AWX and Gilab on my home lab so that I can do mo…

---

## [Windows service recovery on failure with ansible?](https://forum.ansible.com/t/windows-service-recovery-on-failure-with-ansible/32880)

<div class="topic-metadata">

**Author:** [@vinod\_devops](https://forum.ansible.com/u/vinod_devops)\
**Replies:** 4\
**Last updated:** [May 8, 2020, 7:37pm UTC](https://forum.ansible.com/t/windows-service-recovery-on-failure-with-ansible/32880 "2020-05-08T19:37:57Z")

</div>

Hi Friends, How do I set windows service recovery on. failure, suppose x service stopped due to failure, it needs to started automatically by creating recovery condition with. ansible windows service? How do I do that…

---

## [Problem copying a file from a network drive to a another directory (Windows 10)](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889)

<div class="topic-metadata">

**Author:** [@rwarken](https://forum.ansible.com/u/rwarken)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 6:38pm UTC](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889 "2020-05-08T18:38:17Z")

</div>

Hi all. As a beginner, one of the first playbooks I am developing is to copy a file from a network drive to the windows host. \` \[warken1@ansible-controller windows-projects\]$ ansible --version ansible 2.9.7 config f…

---

## [Loop range format quick question](https://forum.ansible.com/t/loop-range-format-quick-question/32852)

<div class="topic-metadata">

**Author:** [@Dave\_Zarei](https://forum.ansible.com/u/Dave_Zarei)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 4:35pm UTC](https://forum.ansible.com/t/loop-range-format-quick-question/32852 "2020-05-08T16:35:16Z")

</div>

HI, quick question about how to use a variable in loop range: I got this: loop: “{{range (0, 2+1) | list}}” and this is what i want to use: loop: “{{range (0, myvariable +1) | list}}” where “myvaribale” contains nu…

---

## [How does Ansible handle IP address duplication?](https://forum.ansible.com/t/how-does-ansible-handle-ip-address-duplication/32862)

<div class="topic-metadata">

**Author:** [@Gary\_Barber](https://forum.ansible.com/u/Gary_Barber)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 9:58am UTC](https://forum.ansible.com/t/how-does-ansible-handle-ip-address-duplication/32862 "2020-05-08T09:58:20Z")

</div>

In my network I manage multiple customers on seperate networks. Many of which are owned by the customer. I want to use Ansible to manage servers in these networks from a single managament network that has connectivity t…

---

## [Copying file checked-in to project directory to remote machine](https://forum.ansible.com/t/copying-file-checked-in-to-project-directory-to-remote-machine/32749)

<div class="topic-metadata">

**Author:** [@karthik\_loganathan](https://forum.ansible.com/u/karthik_loganathan)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 7:02am UTC](https://forum.ansible.com/t/copying-file-checked-in-to-project-directory-to-remote-machine/32749 "2020-05-08T07:02:43Z")

</div>

I have a powershell file checked-in to project directory. What is the best way to copy and execute it. When i use win\_copy. it expects the source to be on local machine. where can i find checked-in files on ansible to…

---

## [how to map network drive by ansible?](https://forum.ansible.com/t/how-to-map-network-drive-by-ansible/32885)

<div class="topic-metadata">

**Author:** [@Dhilipsingh\_G](https://forum.ansible.com/u/Dhilipsingh_G)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 6:57am UTC](https://forum.ansible.com/t/how-to-map-network-drive-by-ansible/32885 "2020-05-08T06:57:45Z")

</div>

I am trying to map the drive , drive has been mapped but status as unavailable .Any idea ?

---

## [How to pass params from Ansible to Jenkins Job triggered by Ansible Playbook?](https://forum.ansible.com/t/how-to-pass-params-from-ansible-to-jenkins-job-triggered-by-ansible-playbook/32881)

<div class="topic-metadata">

**Author:** [@Mimo](https://forum.ansible.com/u/Mimo)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 9:08pm UTC](https://forum.ansible.com/t/how-to-pass-params-from-ansible-to-jenkins-job-triggered-by-ansible-playbook/32881 "2020-05-07T21:08:12Z")

</div>

Hello everyone, I checked Ansible documentation, I did not find answers there or anywhere of how I can pass params to the Jenkins Job,so these params should be as an input params to this Jenkins Job and they will be use…

---

## [vmware\_deploy\_ovf fails with urlopen error timed out](https://forum.ansible.com/t/vmware-deploy-ovf-fails-with-urlopen-error-timed-out/32882)

<div class="topic-metadata">

**Author:** [@Ricardo](https://forum.ansible.com/u/Ricardo)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 8:33pm UTC](https://forum.ansible.com/t/vmware-deploy-ovf-fails-with-urlopen-error-timed-out/32882 "2020-05-07T20:33:43Z")

</div>

Trying to use the vmware\_deploy\_ovf Ansible module of a Cisco CUC appliance (very simple: 1 nic, 1 disk, no properties/DeploymentOption to pick from). I can deploy with VMware’s web interface no problems. hosts: localh…

---

## [include\_vars - variable is not Serializable](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878)

<div class="topic-metadata">

**Author:** [@Robert\_Wagner](https://forum.ansible.com/u/Robert_Wagner)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 5:53pm UTC](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878 "2020-05-07T17:53:33Z")

</div>

Hi all. Wondering if somebody can point me in the right direction - Google has led me on bit of a wild goose chase. I’m using ansible 2.9.6 on CentOS 7.7. I have some vaulted vars that if I put in vars/main.yml work fi…

---

## [rpm--import issues](https://forum.ansible.com/t/rpm-import-issues/32860)

<div class="topic-metadata">

**Author:** [@Quad\_Zero](https://forum.ansible.com/u/Quad_Zero)\
**Replies:** 11\
**Last updated:** [May 7, 2020, 4:22pm UTC](https://forum.ansible.com/t/rpm-import-issues/32860 "2020-05-07T16:22:57Z")

</div>

Hi all, Thank you for your help in my last post. I have come quite a way (small compared to many of you) but nevertheless making good progress each day. I hit roadblocks quite a bit and thankfully google has helped me …

---

## [Include Vars, with\_items , returned data with .results values](https://forum.ansible.com/t/include-vars-with-items-returned-data-with-results-values/32877)

<div class="topic-metadata">

**Author:** [@Adam\_McGill](https://forum.ansible.com/u/Adam_McGill)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 4:00pm UTC](https://forum.ansible.com/t/include-vars-with-items-returned-data-with-results-values/32877 "2020-05-07T16:00:31Z")

</div>

I am using a include\_vars file to pipe the variable to a libary/ps1/py file which will return results / verification. Is there a way to not include the item data /ansible loop information in the .results data. As I figur…

---

## [unable to ssh](https://forum.ansible.com/t/unable-to-ssh/32875)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 3:58pm UTC](https://forum.ansible.com/t/unable-to-ssh/32875 "2020-05-07T15:58:11Z")

</div>

Hi All I am facing ssh connection issues with my network switch, need help to establish ssh connection root@VPC0000260:/etc/ansible# ssh 10.25.200.1 Unable to negotiate with 10.25.200.1 port 22: no matching key exchan…

---

## [Smart inventories don't contain groups #1999](https://forum.ansible.com/t/smart-inventories-dont-contain-groups-1999/32854)

<div class="topic-metadata">

**Author:** [@Philip\_Douglass](https://forum.ansible.com/u/Philip_Douglass)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 1:03pm UTC](https://forum.ansible.com/t/smart-inventories-dont-contain-groups-1999/32854 "2020-05-07T13:03:40Z")

</div>

When are we going to be able to create Smart Inventories and keep the hosts grouped? It’s been nearly two years since this issue was opened: https://github.com/ansible/awx/issues/1999 We have a large inventory of 40k+ …

---

## [Cisco interface state change](https://forum.ansible.com/t/cisco-interface-state-change/32874)

<div class="topic-metadata">

**Author:** [@sayantan\_laha1](https://forum.ansible.com/u/sayantan_laha1)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 12:11pm UTC](https://forum.ansible.com/t/cisco-interface-state-change/32874 "2020-05-07T12:11:35Z")

</div>

Dear all, I am newbie in ansible. My requirment is like when i see an interface in suspended mode want to bring back to UP for all cisco device. Please help how do i apply conditional way.

---

## [Directories create twice](https://forum.ansible.com/t/directories-create-twice/32873)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:39am UTC](https://forum.ansible.com/t/directories-create-twice/32873 "2020-05-07T11:39:13Z")

</div>

Hello ! I have an issue concerning modules find then copy (with relpath filter) I have a role : \` name: “Test” hosts: localhost vars: archive\_name: “/opt/archive.tgz” local\_tmp\_dir: path: “/tmp/tmp” dest\_dire…

---

## [how can i execute the following oracle sql commands using ansible and get the value back to be stored in variable](https://forum.ansible.com/t/how-can-i-execute-the-following-oracle-sql-commands-using-ansible-and-get-the-value-back-to-be-stored-in-variable/26868)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 11:04am UTC](https://forum.ansible.com/t/how-can-i-execute-the-following-oracle-sql-commands-using-ansible-and-get-the-value-back-to-be-stored-in-variable/26868 "2020-05-07T11:04:44Z")

</div>

HI, MY playbook: sample.sh: . /u05/oracle/VISEBS/12.1.0/VISEBS\_sal-devtl10.env val=‘v$archived\_log’ R=sqlplus '/as sysdba'\<\<EOF set numw 1 lines 80 pages 0; select max(NEXT\_CHANGE#) "RMAN\_SCN" from $val where BACKUP…

---

## [Temporarily taking an instance offline: How to set "enabled" property of an instance via cmd line/api?](https://forum.ansible.com/t/temporarily-taking-an-instance-offline-how-to-set-enabled-property-of-an-instance-via-cmd-line-api/32847)

<div class="topic-metadata">

**Author:** [@Michael\_Cook](https://forum.ansible.com/u/Michael_Cook)\
**Replies:** 5\
**Last updated:** [May 7, 2020, 10:24am UTC](https://forum.ansible.com/t/temporarily-taking-an-instance-offline-how-to-set-enabled-property-of-an-instance-via-cmd-line-api/32847 "2020-05-07T10:24:19Z")

</div>

The Ansible Tower docs states: “In order to support temporarily taking an instance offline, there is a property enabled defined on each instance. When this property is disabled, no jobs will be assigned to that instance…

---

## [How to assign random name for vmware snapshot?](https://forum.ansible.com/t/how-to-assign-random-name-for-vmware-snapshot/32870)

<div class="topic-metadata">

**Author:** [@Mani](https://forum.ansible.com/u/Mani)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 9:33am UTC](https://forum.ansible.com/t/how-to-assign-random-name-for-vmware-snapshot/32870 "2020-05-07T09:33:19Z")

</div>

I am a newbie to ansible and I am trying to take a snapshot of multiple VM’s with a random snapshot name including the VM name (vmname + random number or timestamp). I am able to take snapshot using the VM name with the…

---

## ["failed to open a SFTP connection (Garbage packet received)"](https://forum.ansible.com/t/failed-to-open-a-sftp-connection-garbage-packet-received/32872)

<div class="topic-metadata">

**Author:** [@Dave\_Hodgkinson](https://forum.ansible.com/u/Dave_Hodgkinson)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 9:09am UTC](https://forum.ansible.com/t/failed-to-open-a-sftp-connection-garbage-packet-received/32872 "2020-05-07T09:09:02Z")

</div>

I’m tring to run our corporate ansible setup on my FC31 laptop. In the “staging” configuration, main.yml, I have hosts: localhost. My ssh key is in root’s authorized\_keys file. I run and get: ansible-playbook main.yml …

---

## [Different access credentials for devices using network\_cli](https://forum.ansible.com/t/different-access-credentials-for-devices-using-network-cli/32868)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 7:49am UTC](https://forum.ansible.com/t/different-access-credentials-for-devices-using-network-cli/32868 "2020-05-07T07:49:02Z")

</div>

It is possible to assign more than one credential to a job template, however there can be only one credential of any given type. According to https://docs.ansible.com/ansible-tower/latest/html/userguide/credentials.html#…

---

## [Replace Service now inventory table.](https://forum.ansible.com/t/replace-service-now-inventory-table/32869)

<div class="topic-metadata">

**Author:** [@Sanoj\_Thampi](https://forum.ansible.com/u/Sanoj_Thampi)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 5:47am UTC](https://forum.ansible.com/t/replace-service-now-inventory-table/32869 "2020-05-07T05:47:00Z")

</div>

Hello Team, Now we have integrated servicenow and awx for our firewall automation and it is working perfectly. But due to some security issues we need to move the data table from service now to local. this is the same …

---

## [How to optimise many hosts which are all localhost?](https://forum.ansible.com/t/how-to-optimise-many-hosts-which-are-all-localhost/32751)

<div class="topic-metadata">

**Author:** [@Matthew\_Davis](https://forum.ansible.com/u/Matthew_Davis)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 2:56am UTC](https://forum.ansible.com/t/how-to-optimise-many-hosts-which-are-all-localhost/32751 "2020-05-07T02:56:07Z")

</div>

I have a use case which is a bit different to most, but Ansible seems to do a pretty good job. I’m trying to figure out the best way to leverage Ansible’s inherent concurrency for multiple hosts, when deploying to serve…

---

## [Running Ansible playbook with Jenkins plugin ... now need to add git](https://forum.ansible.com/t/running-ansible-playbook-with-jenkins-plugin-now-need-to-add-git/32837)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Replies:** 4\
**Last updated:** [May 6, 2020, 4:30pm UTC](https://forum.ansible.com/t/running-ansible-playbook-with-jenkins-plugin-now-need-to-add-git/32837 "2020-05-06T16:30:08Z")

</div>

Hi, I have a ansible server, which i use mainly to manage ntp client/dns client/time zone/create users/install software etc on various linux servers… so no development to say, just as “infrastructure as code” On same s…

---

## [no root 'plugin' key found](https://forum.ansible.com/t/no-root-plugin-key-found/32864)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 4:13pm UTC](https://forum.ansible.com/t/no-root-plugin-key-found/32864 "2020-05-06T16:13:21Z")

</div>

it is missing an entry plugin: \<plugin name goes here\>

---

## [Ansible stops if unreachable, can it be ignored to continue the playbook?](https://forum.ansible.com/t/ansible-stops-if-unreachable-can-it-be-ignored-to-continue-the-playbook/32858)

<div class="topic-metadata">

**Author:** [@Jimmy1](https://forum.ansible.com/u/Jimmy1)\
**Replies:** 3\
**Last updated:** [May 6, 2020, 4:12pm UTC](https://forum.ansible.com/t/ansible-stops-if-unreachable-can-it-be-ignored-to-continue-the-playbook/32858 "2020-05-06T16:12:34Z")

</div>

Ansible stops if unreachable, can it be ignored to continue the playbook? Thanks–

---

## [add\_host scope from inside roles](https://forum.ansible.com/t/add-host-scope-from-inside-roles/32853)

<div class="topic-metadata">

**Author:** [@Nicola\_L](https://forum.ansible.com/u/Nicola_L)\
**Replies:** 4\
**Last updated:** [May 6, 2020, 2:38pm UTC](https://forum.ansible.com/t/add-host-scope-from-inside-roles/32853 "2020-05-06T14:38:27Z")

</div>

Hi all, I’m a bit confused about the behavior of add\_host when used from inside a role or directly in the playbook. Am I doing something wrong or am I just hitting some role’s scope boundary? THIS WORKS (from the play…

---

## [ansible-api issue](https://forum.ansible.com/t/ansible-api-issue/32863)

<div class="topic-metadata">

**Author:** [@Rekuyem](https://forum.ansible.com/u/Rekuyem)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 2:26pm UTC](https://forum.ansible.com/t/ansible-api-issue/32863 "2020-05-06T14:26:33Z")

</div>

Hello, When I start to lauch ansible-api, I have this issue : root@VM-Ubuntu:~# ansible-api Ansible API is running at Debug Mode 2020-05-06 16:18:06 | INFO - Ansible API Start… ( PID = 19629 ) 2020-05-06 16:18:06 | …

---

## [Using an environment variable in dynamic inventory](https://forum.ansible.com/t/using-an-environment-variable-in-dynamic-inventory/32859)

<div class="topic-metadata">

**Author:** [@Andrew\_Marshall](https://forum.ansible.com/u/Andrew_Marshall)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 2:22pm UTC](https://forum.ansible.com/t/using-an-environment-variable-in-dynamic-inventory/32859 "2020-05-06T14:22:11Z")

</div>

Hi - I have a basic dynamic inventory using the azure plugin: plugin: azure\_rm include\_vm\_resource\_groups: - my\_resource\_group However, this script runs in CI and teh resource group is created by a previous step, so…

---

## [Need help on formating stdout\_lines output](https://forum.ansible.com/t/need-help-on-formating-stdout-lines-output/32819)

<div class="topic-metadata">

**Author:** [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Replies:** 7\
**Last updated:** [May 6, 2020, 1:07pm UTC](https://forum.ansible.com/t/need-help-on-formating-stdout-lines-output/32819 "2020-05-06T13:07:20Z")

</div>

Hi All, Would anyone please help me formatting mountchk.result. I am able to get the required output with item.stdout\_lines\[0\],item.stdout\_lines\[1\],item.stdout\_lines\[2\] but host3 has 6 entries. So, please help me in fil…

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

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