# Archives

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

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

**Page:** 244

---

## [How to use Machine Credentials to connect to network devices ()](https://forum.ansible.com/t/how-to-use-machine-credentials-to-connect-to-network-devices/28210)

<div class="topic-metadata">

**Author:** [@Daniel\_M](https://forum.ansible.com/u/Daniel_M)\
**Replies:** 4\
**Last updated:** [November 22, 2019, 12:39pm UTC](https://forum.ansible.com/t/how-to-use-machine-credentials-to-connect-to-network-devices/28210 "2019-11-22T12:39:36Z")

</div>

Hi guys, I’m trying to connect to some Juniper network devices from AWX. I’m struggling to understand how to use the Credentials (See image below for the username and ssh key) I’ve set up in AWX to connect to the netwo…

---

## [I want to register my module](https://forum.ansible.com/t/i-want-to-register-my-module/31707)

<div class="topic-metadata">

**Author:** [@Kim\_Seonil](https://forum.ansible.com/u/Kim_Seonil)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 6:00am UTC](https://forum.ansible.com/t/i-want-to-register-my-module/31707 "2019-11-22T06:00:58Z")

</div>

Hello I want to register my module I want to register my new module and register the document at https://docs.ansible.com/ansible/devel/modules/list\_of\_network\_modules.html Let me know what to do

---

## [ansilbe delegate\_to can not run](https://forum.ansible.com/t/ansilbe-delegate-to-can-not-run/31706)

<div class="topic-metadata">

**Author:** [@zhengqisong](https://forum.ansible.com/u/zhengqisong)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 3:56am UTC](https://forum.ansible.com/t/ansilbe-delegate-to-can-not-run/31706 "2019-11-22T03:56:49Z")

</div>

The task definition: - name: add flannel network config in etcd shell: config\_flannel\_network.sh when: flannel\_config\_shell.changed delegate\_to: "10.122.12.177" software environment ansible client host: 127.0.…

---

## [Can't provide parameters to Ansible ec2 inventory plugin](https://forum.ansible.com/t/cant-provide-parameters-to-ansible-ec2-inventory-plugin/31705)

<div class="topic-metadata">

**Author:** [@Viktor\_Maksymenko](https://forum.ansible.com/u/Viktor_Maksymenko)\
**Replies:** 0\
**Last updated:** [November 21, 2019, 10:16pm UTC](https://forum.ansible.com/t/cant-provide-parameters-to-ansible-ec2-inventory-plugin/31705 "2019-11-21T22:16:07Z")

</div>

I’m using ec2 inventory plugin and interested in the ability to provide parameters to it like this: \` plugin: aws\_ec2 regions: “{{ region}}” filters: tag:Usage: “{{ usage }}” \` But extra-args, that I provide on …

---

## [AWX Inventory plugin versus Ansible-Inventory plugin?](https://forum.ansible.com/t/awx-inventory-plugin-versus-ansible-inventory-plugin/31680)

<div class="topic-metadata">

**Author:** [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 6:19pm UTC](https://forum.ansible.com/t/awx-inventory-plugin-versus-ansible-inventory-plugin/31680 "2019-11-21T18:19:06Z")

</div>

Greetings, If I create an Inventory in AWX, using the “Microsoft Axure-RM” source which inventory plugin gets used? bash-4.2# find / -name azure\_rm.py -ls 39186676 32 -rw-r–r-- 1 root root 30038 Oct 17 18:11 /usr/lib/…

---

## [Junos yaml compliance check : how to construct conditional statements in a yaml file](https://forum.ansible.com/t/junos-yaml-compliance-check-how-to-construct-conditional-statements-in-a-yaml-file/31704)

<div class="topic-metadata">

**Author:** [@eddie\_eakemu1](https://forum.ansible.com/u/eddie_eakemu1)\
**Replies:** 0\
**Last updated:** [November 21, 2019, 6:01pm UTC](https://forum.ansible.com/t/junos-yaml-compliance-check-how-to-construct-conditional-statements-in-a-yaml-file/31704 "2019-11-21T18:01:51Z")

</div>

Hi I am looking to achieve the following but might be missing something

---

## [Create Multiple VMs on Azure](https://forum.ansible.com/t/create-multiple-vms-on-azure/31700)

<div class="topic-metadata">

**Author:** [@Meera\_Nagul](https://forum.ansible.com/u/Meera_Nagul)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 4:56pm UTC](https://forum.ansible.com/t/create-multiple-vms-on-azure/31700 "2019-11-21T16:56:08Z")

</div>

Hi Team, I am working on playbook to deploy multiple virtual machines on Azure cloud, and i got succeed in that task, and am trying to run multiple tasks on newly created virtual machines using the same playbook which i…

---

## [ansible tower messing up the order in which inventory hosts gets played](https://forum.ansible.com/t/ansible-tower-messing-up-the-order-in-which-inventory-hosts-gets-played/31702)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 3:37pm UTC](https://forum.ansible.com/t/ansible-tower-messing-up-the-order-in-which-inventory-hosts-gets-played/31702 "2019-11-21T15:37:48Z")

</div>

i have a code like this template: src: …/files/kfhost.j2 dest: /app/bin/kafka/server.properties owner: kafka group: kafka mode: 0755 the jinga file has an entry like this broker.id={{ play\_hosts.index(inventory\_…

---

## [AWX Tower install failure (2 separate servers)](https://forum.ansible.com/t/awx-tower-install-failure-2-separate-servers/31703)

<div class="topic-metadata">

**Author:** [@John\_James](https://forum.ansible.com/u/John_James)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 3:28pm UTC](https://forum.ansible.com/t/awx-tower-install-failure-2-separate-servers/31703 "2019-11-21T15:28:08Z")

</div>

Good Morning, I am pretty new to Ansible, I had built an AWX Tower some months ago, but had to let it sit. Last week I started working on it again when that instance got stuck in an upgrade loop. I spent a few days tryi…

---

## [Need to use the cloud-init option to have it run the PowerShell script that enables WinRM. Use of cloud-init](https://forum.ansible.com/t/need-to-use-the-cloud-init-option-to-have-it-run-the-powershell-script-that-enables-winrm-use-of-cloud-init/31699)

<div class="topic-metadata">

**Author:** [@Rahul\_Rawat](https://forum.ansible.com/u/Rahul_Rawat)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 2:08pm UTC](https://forum.ansible.com/t/need-to-use-the-cloud-init-option-to-have-it-run-the-powershell-script-that-enables-winrm-use-of-cloud-init/31699 "2019-11-21T14:08:41Z")

</div>

Hi, I have used oci-ansible-modules to create VM on oracle cloud. Now, I need to use cloud-init to enable winrm on boot. regards, Rahul Rawat

---

## [Clone created form template with vmware\_guest gets same IP](https://forum.ansible.com/t/clone-created-form-template-with-vmware-guest-gets-same-ip/31695)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 1:40pm UTC](https://forum.ansible.com/t/clone-created-form-template-with-vmware-guest-gets-same-ip/31695 "2019-11-21T13:40:16Z")

</div>

I create an ubuntu 18.04 clone vm from an template using ansible and vmware\_guest. All is fine except that all the machines that I create get the same IP address as the first one. The mac address is different but I thin…

---

## [Blacklisting hosts of a group in inventory file](https://forum.ansible.com/t/blacklisting-hosts-of-a-group-in-inventory-file/31696)

<div class="topic-metadata">

**Author:** [@chavali\_shruti](https://forum.ansible.com/u/chavali_shruti)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 12:48pm UTC](https://forum.ansible.com/t/blacklisting-hosts-of-a-group-in-inventory-file/31696 "2019-11-21T12:48:27Z")

</div>

Suppose I want to blacklist a host of a group, in the inventory file, so as not to allow the running of any other tasks on it. How can i do it? I do want it in my hosts list and later, after i run a playbook on it… i wa…

---

## [Lookup vault in memory](https://forum.ansible.com/t/lookup-vault-in-memory/31691)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 7\
**Last updated:** [November 21, 2019, 12:00pm UTC](https://forum.ansible.com/t/lookup-vault-in-memory/31691 "2019-11-21T12:00:35Z")

</div>

Hi, I have a question about lookup and memory: When I use a lookup with vault, is the pass is store in memory when I use it directly in a task or pass it through a variable in an inventory ? Is there a significant diff…

---

## [Ansible - How attribute 2 value in one variable](https://forum.ansible.com/t/ansible-how-attribute-2-value-in-one-variable/31698)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 11:02am UTC](https://forum.ansible.com/t/ansible-how-attribute-2-value-in-one-variable/31698 "2019-11-21T11:02:26Z")

</div>

Hello guy !! :slight\_smile: I have any problem, can you help me please ? I have 2 remote hosts, and i must deploy one template file. The problem is i want one variable for one host and not for the both, exemple : The…

---

## [Job output not visible AWX 8.0.0](https://forum.ansible.com/t/job-output-not-visible-awx-8-0-0/31697)

<div class="topic-metadata">

**Author:** [@Jarkko\_Perttula](https://forum.ansible.com/u/Jarkko_Perttula)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 10:34am UTC](https://forum.ansible.com/t/job-output-not-visible-awx-8-0-0/31697 "2019-11-21T10:34:17Z")

</div>

Hi, we’ve had an issue with AWX Ansible over the time with disappearing job outputs in UI. Currently we’re running AWX 8.0.0 with external Postgresql 10. We are getting rid of the issue by stopping the docker containers…

---

## [How to convert json to csv](https://forum.ansible.com/t/how-to-convert-json-to-csv/31688)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 4\
**Last updated:** [November 21, 2019, 5:37am UTC](https://forum.ansible.com/t/how-to-convert-json-to-csv/31688 "2019-11-21T05:37:01Z")

</div>

Hi Team, Anybody knows how to convert json to csv in ansible? Thanks, Pushparaj

---

## [AWS Ansible Python Boto - Profile Not Found Error](https://forum.ansible.com/t/aws-ansible-python-boto-profile-not-found-error/31658)

<div class="topic-metadata">

**Author:** [@kingston\_vedanayagam](https://forum.ansible.com/u/kingston_vedanayagam)\
**Replies:** 7\
**Last updated:** [November 21, 2019, 2:15am UTC](https://forum.ansible.com/t/aws-ansible-python-boto-profile-not-found-error/31658 "2019-11-21T02:15:47Z")

</div>

Hi All, I have a simple playbook to create an EC2 instance in my account which is failing with “ProfileNotFoundError” when runs. \[root@ansibleserver ~\]# cat /etc/system-release CentOS Linux release 7.6.1810 (Core) \[…

---

## [vmware\_guest and MAC problem on template clone](https://forum.ansible.com/t/vmware-guest-and-mac-problem-on-template-clone/31689)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 7:23pm UTC](https://forum.ansible.com/t/vmware-guest-and-mac-problem-on-template-clone/31689 "2019-11-20T19:23:11Z")

</div>

Hi, I am cloning a template in vmware to create a new VM. The script works but when I create an other VM the new one gets created with the same MAC address for the network card. Is there a way form vmware\_guest to force…

---

## [Getting cisco command output based on matched condition](https://forum.ansible.com/t/getting-cisco-command-output-based-on-matched-condition/31694)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 0\
**Last updated:** [November 20, 2019, 3:57pm UTC](https://forum.ansible.com/t/getting-cisco-command-output-based-on-matched-condition/31694 "2019-11-20T15:57:47Z")

</div>

Hi Team I want get output of “show mac add int {{ item.key }}” as report for each interface, Can anyone guide me how to export the command output only matched condition as text file? Playbook: roles: - ansible-networ…

---

## [Ansible find module not accepting fatal: \[127.0.0.1\]: FAILED! =\> {"changed": false, "msg": "Unsupported parameters for (find) module: become Supported parameters include: age, age\_stamp, contains, depth, excludes, file\_type, follow, get\_checksum, hid](https://forum.ansible.com/t/ansible-find-module-not-accepting-fatal-127-0-0-1-failed-changed-false-msg-unsupported-parameters-for-find-module-become-supported-parameters-include-age-age-stamp-contains-depth-excludes-file-type-follow-get-checksum-hid/31692)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 3:32pm UTC](https://forum.ansible.com/t/ansible-find-module-not-accepting-fatal-127-0-0-1-failed-changed-false-msg-unsupported-parameters-for-find-module-become-supported-parameters-include-age-age-stamp-contains-depth-excludes-file-type-follow-get-checksum-hid/31692 "2019-11-20T15:32:56Z")

</div>

I want to access a directory as sudo user of Linux when i gave Below is the code for the same which i tried; name: Ansible delete files older than 1 minutes example find: paths: ‘{{diskclrpath}}’ age: ‘{{fileage}}’ …

---

## [Import sql script to rds database](https://forum.ansible.com/t/import-sql-script-to-rds-database/31693)

<div class="topic-metadata">

**Author:** [@Biraj\_Sahu](https://forum.ansible.com/u/Biraj_Sahu)\
**Replies:** 0\
**Last updated:** [November 20, 2019, 2:06pm UTC](https://forum.ansible.com/t/import-sql-script-to-rds-database/31693 "2019-11-20T14:06:24Z")

</div>

Hello Friends, I am in need of some help in ansible. I am pretty new to ansible and I want to achieve the following as part of my work: As part of regular deployment of our application, we would have a sql script(whi…

---

## [How do i get set\_fact variable in another play ?](https://forum.ansible.com/t/how-do-i-get-set-fact-variable-in-another-play/31690)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [November 20, 2019, 11:21am UTC](https://forum.ansible.com/t/how-do-i-get-set-fact-variable-in-another-play/31690 "2019-11-20T11:21:00Z")

</div>

I have a playbook where i first \[Play 1\] add dynamic host to group “desthosts” In Play 2 I append a string variable “storerecords” with filenames. Sample playbook below: In Play 3 I try to remove duplicate entries in “…

---

## [Get project directory in a playbook](https://forum.ansible.com/t/get-project-directory-in-a-playbook/31678)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 11:01am UTC](https://forum.ansible.com/t/get-project-directory-in-a-playbook/31678 "2019-11-20T11:01:26Z")

</div>

Hi all, For a playbook I need to get the projects directory in order not to hardcode it in the playbook or create an bash variable. Is this possible? The project is on git and is cloned using awx project with git as so…

---

## [Conditions with vlan id](https://forum.ansible.com/t/conditions-with-vlan-id/31472)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 3\
**Last updated:** [November 20, 2019, 6:57am UTC](https://forum.ansible.com/t/conditions-with-vlan-id/31472 "2019-11-20T06:57:57Z")

</div>

Hi Team, I need to push the line in cisco switch if vlan id =25 or vlan id = 100-119. what module should I use? I parsed show interfaces status and got below structured output. please help. “Gi1/0/12”: { “data”: { “…

---

## [Ansible - regex help](https://forum.ansible.com/t/ansible-regex-help/31686)

<div class="topic-metadata">

**Author:** [@Michael3](https://forum.ansible.com/u/Michael3)\
**Replies:** 3\
**Last updated:** [November 20, 2019, 5:15am UTC](https://forum.ansible.com/t/ansible-regex-help/31686 "2019-11-20T05:15:11Z")

</div>

I’m creating a script that dynamically generates a response file for an uninstall and stores the response file in a var for reuse in the uninstall command. My play :

---

## [how to get group\_vars/all data into dynamic inventory plugin?](https://forum.ansible.com/t/how-to-get-group-vars-all-data-into-dynamic-inventory-plugin/31681)

<div class="topic-metadata">

**Author:** [@Mohamed\_Javeed](https://forum.ansible.com/u/Mohamed_Javeed)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 3:36am UTC](https://forum.ansible.com/t/how-to-get-group-vars-all-data-into-dynamic-inventory-plugin/31681 "2019-11-20T03:36:47Z")

</div>

Hi All, I am developing a Dynamic inventory plugin. is there a way I can get group\_vars/all data into my inventory plugin? Thanks Mohamed Javeed

---

## [Appending a string at the end of line](https://forum.ansible.com/t/appending-a-string-at-the-end-of-line/31687)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 11:08pm UTC](https://forum.ansible.com/t/appending-a-string-at-the-end-of-line/31687 "2019-11-19T23:08:32Z")

</div>

Hi , I have a file : cat test.txt Baseline: ABC ABC1 ABC23 ABC24 +ABC33 ABC\_PAD +ABC\_PAD\_CAD Now i want to add +TEST\_ABC at the end of Line : Desired O/P : Baseline: ABC ABC1 ABC23 ABC24 +ABC33 ABC\_PAD +ABC\_PAD\_CAD…

---

## [Will Ansible work in case of Windows Jump Server?](https://forum.ansible.com/t/will-ansible-work-in-case-of-windows-jump-server/31676)

<div class="topic-metadata">

**Author:** [@pratik\_ghodekar](https://forum.ansible.com/u/pratik_ghodekar)\
**Replies:** 1\
**Last updated:** [November 19, 2019, 8:55pm UTC](https://forum.ansible.com/t/will-ansible-work-in-case-of-windows-jump-server/31676 "2019-11-19T20:55:26Z")

</div>

Hello, I wanted to know if we have Windows jump server instead or bastion server will Ansible work? if yes how can we achieve this

---

## [multiple playbooks or one playbook per function?](https://forum.ansible.com/t/multiple-playbooks-or-one-playbook-per-function/31679)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 8:46pm UTC](https://forum.ansible.com/t/multiple-playbooks-or-one-playbook-per-function/31679 "2019-11-19T20:46:43Z")

</div>

By playbook per function I mean something like a web.yml playbook which defines how all the webservers are put together. Of course we could then define variables associated with host groups and hosts themselves to tak…

---

## [Not able to install  Ansible tower due to awx](https://forum.ansible.com/t/not-able-to-install-ansible-tower-due-to-awx/31685)

<div class="topic-metadata">

**Author:** [@Rahul2](https://forum.ansible.com/u/Rahul2)\
**Replies:** 1\
**Last updated:** [November 19, 2019, 6:08pm UTC](https://forum.ansible.com/t/not-able-to-install-ansible-tower-due-to-awx/31685 "2019-11-19T18:08:27Z")

</div>

I’m not able to install ansible tower on centOS 7. Getting below error. Any help would be appreciated. TASK \[awx\_install : update ansible-tower service configuration\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

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

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