# Latest

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

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

**Page:** 419

---

## [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\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [mapping AWS 'Username' tag to ansible\_user inventory var?](https://forum.ansible.com/t/mapping-aws-username-tag-to-ansible-user-inventory-var/31683)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 3\
**Last updated:** [November 19, 2019, 4:28pm UTC](https://forum.ansible.com/t/mapping-aws-username-tag-to-ansible-user-inventory-var/31683 "2019-11-19T16:28:20Z")

</div>

Hi I'm using the ec2.py dynamic inventory, and this appears to work well. My deployment consists of several different distros, and so the ansible\_user is different across the instances. While instantiating from diffe…

---

## [AWX / SAML / OKTA ?](https://forum.ansible.com/t/awx-saml-okta/31684)

<div class="topic-metadata">

**Author:** [@Matt\_Barry](https://forum.ansible.com/u/Matt_Barry)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 4:17pm UTC](https://forum.ansible.com/t/awx-saml-okta/31684 "2019-11-19T16:17:58Z")

</div>

Hello, I’m implementing AWX and attempting to integrate single sign-on using Okta (okta.com). The SAML sign-on button redirects me to Okta correctly, but when I get bounced back I just hit the login page. It seems like …

---

## [Launch template in another template](https://forum.ansible.com/t/launch-template-in-another-template/31682)

<div class="topic-metadata">

**Author:** [@michal.misiak](https://forum.ansible.com/u/michal.misiak)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 10:58am UTC](https://forum.ansible.com/t/launch-template-in-another-template/31682 "2019-11-19T10:58:23Z")

</div>

Hello everyone, I have a playbook which I check a lots of parameters of many systems and next I would like to send result of playbook to CSV file. When I used Ansible in console mode, I send result of playbook to file v…

---

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

<div class="topic-metadata">

**Author:** [@pratik\_ghodekar](https://forum.ansible.com/u/pratik_ghodekar)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 9:47am UTC](https://forum.ansible.com/t/will-ansible-work-in-case-of-windows-jump-server/31677 "2019-11-19T09:47:17Z")

</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

---

## [how to post different payload for different rest api using uri module in ansible playbook with loop](https://forum.ansible.com/t/how-to-post-different-payload-for-different-rest-api-using-uri-module-in-ansible-playbook-with-loop/31675)

<div class="topic-metadata">

**Author:** [@ahamed\_Sultan](https://forum.ansible.com/u/ahamed_Sultan)\
**Replies:** 1\
**Last updated:** [November 18, 2019, 5:30pm UTC](https://forum.ansible.com/t/how-to-post-different-payload-for-different-rest-api-using-uri-module-in-ansible-playbook-with-loop/31675 "2019-11-18T17:30:01Z")

</div>

Hi Team, I am new to ansible, could you help me how to post different payload for different rest api using uri module in ansible playbook with loop(to reduce code) Thanks in advance. Regards Ahamed

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

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