# Ansible Project

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

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

**Page:** 156

---

## [How to convert o/p of ansible playbook to a proper readable format](https://forum.ansible.com/t/how-to-convert-o-p-of-ansible-playbook-to-a-proper-readable-format/31725)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 6\
**Last updated:** [November 26, 2019, 11:24am UTC](https://forum.ansible.com/t/how-to-convert-o-p-of-ansible-playbook-to-a-proper-readable-format/31725 "2019-11-26T11:24:12Z")

</div>

Hi , I have a role for deleting VM using PWSH script via ansible :

---

## [Need help in upgrading application using ansible in windows operating system](https://forum.ansible.com/t/need-help-in-upgrading-application-using-ansible-in-windows-operating-system/31716)

<div class="topic-metadata">

**Author:** [@Shashidhar](https://forum.ansible.com/u/Shashidhar)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 7:37am UTC](https://forum.ansible.com/t/need-help-in-upgrading-application-using-ansible-in-windows-operating-system/31716 "2019-11-26T07:37:24Z")

</div>

Hi Team, I need help in upgrading windows application using ansible, can you please help with playbook to achieve this. Thanks a lot in advance. Operating System Windows7 /Shashi

---

## [Need help with Playbook run from Ansible core to Playbook](https://forum.ansible.com/t/need-help-with-playbook-run-from-ansible-core-to-playbook/31724)

<div class="topic-metadata">

**Author:** [@Amin\_Rashid](https://forum.ansible.com/u/Amin_Rashid)\
**Replies:** 0\
**Last updated:** [November 25, 2019, 8:00pm UTC](https://forum.ansible.com/t/need-help-with-playbook-run-from-ansible-core-to-playbook/31724 "2019-11-25T20:00:29Z")

</div>

I’m having issues running a playbook that runs well in Ansible Core to make configuration changes to my Palo Alto firewall. The playbook references a vars.yml file that outlines my credentials as well as host that I want…

---

## [Need to filter with\_items values based on specific string](https://forum.ansible.com/t/need-to-filter-with-items-values-based-on-specific-string/31720)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 1:59pm UTC](https://forum.ansible.com/t/need-to-filter-with-items-values-based-on-specific-string/31720 "2019-11-25T13:59:56Z")

</div>

I need to reject “none” value item in ping test task. It has to take only “non- none” values from the with\_items in the task. Please help me to fix this. set\_fact: linux\_ip: “{{ item.stdout\_lines\[0\] }}” unix\_ip: “{…

---

## [Ansible community members are invited to take part in the Express 2019 F/OSS-Firms Survey!](https://forum.ansible.com/t/ansible-community-members-are-invited-to-take-part-in-the-express-2019-f-oss-firms-survey/31717)

<div class="topic-metadata">

**Author:** [@Mathieu\_O\_Neil](https://forum.ansible.com/u/Mathieu_O_Neil)\
**Replies:** 0\
**Last updated:** [November 25, 2019, 10:16am UTC](https://forum.ansible.com/t/ansible-community-members-are-invited-to-take-part-in-the-express-2019-f-oss-firms-survey/31717 "2019-11-25T10:16:00Z")

</div>

Hi everyone We are looking for participants to help us with a study on the sustainability of free and open source software, ‘Mapping the co-production of digital infrastructure by peer projects and firms’, which is fund…

---

## [how do we read a set\_fact variable of a dynamic host into different play localhost ?](https://forum.ansible.com/t/how-do-we-read-a-set-fact-variable-of-a-dynamic-host-into-different-play-localhost/31715)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [November 24, 2019, 2:23pm UTC](https://forum.ansible.com/t/how-do-we-read-a-set-fact-variable-of-a-dynamic-host-into-different-play-localhost/31715 "2019-11-24T14:23:59Z")

</div>

Here is my requirement: I have a playbook where I add the dynamic host to group “desthosts” in \[Play 1\] In \[Play 2\] desthosts group I append a set\_fact variable “storerecords”. In \[Play 3\] I try to read set\_fact…

---

## [custom strategy plugin with end\_host in ansible 2.7.5](https://forum.ansible.com/t/custom-strategy-plugin-with-end-host-in-ansible-2-7-5/31713)

<div class="topic-metadata">

**Author:** [@Gunaseelan](https://forum.ansible.com/u/Gunaseelan)\
**Replies:** 2\
**Last updated:** [November 23, 2019, 12:54pm UTC](https://forum.ansible.com/t/custom-strategy-plugin-with-end-host-in-ansible-2-7-5/31713 "2019-11-23T12:54:54Z")

</div>

I want to create custom strategy\_plugins in ansible 2.7 There is new https://github.com/ansible/ansible/pull/47194/files meta: end\_host is added in ansible v2.8.3 But currently my envirnoment is running with ansible 2.…

---

## [Ansible seems not supporting fundemental user management commands in Arch Linux](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711)

<div class="topic-metadata">

**Author:** [@Bilinmek\_Istemiyor](https://forum.ansible.com/u/Bilinmek_Istemiyor)\
**Replies:** 4\
**Last updated:** [November 23, 2019, 2:58am UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711 "2019-11-23T02:58:55Z")

</div>

Hello, I am building a nas server with manjaro architect (arch based distribution). I try to automate tasks with ansible. However ansible user management is giving me errors stating that "“msg”: “Unsupported parameters …

---

## [Windows ports used](https://forum.ansible.com/t/windows-ports-used/31712)

<div class="topic-metadata">

**Author:** [@Ramakrishnan\_M](https://forum.ansible.com/u/Ramakrishnan_M)\
**Replies:** 4\
**Last updated:** [November 23, 2019, 1:18am UTC](https://forum.ansible.com/t/windows-ports-used/31712 "2019-11-23T01:18:47Z")

</div>

hey, Does the ansible port requirement for Windows change from 5985/5986 to corresponding ntml/kerberos depending on ansible\_winrm\_transport selection of ntlm/kerberos/credssp etc. Thanks in advance

---

## [List of dicts =\> dict of lists](https://forum.ansible.com/t/list-of-dicts-dict-of-lists/31710)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 11:09pm UTC](https://forum.ansible.com/t/list-of-dicts-dict-of-lists/31710 "2019-11-22T23:09:59Z")

</div>

Hi I'm struggling with something seemingly simple. I have this list: instances: - id: i-0fe48c061f6a323a0 type: web - id: i-0403e39813defda31 type: web - id: i-0442f13b528e5e1c6 type: proxy -…

---

## [\## Convert stdout\_lines into json format ##](https://forum.ansible.com/t/convert-stdout-lines-into-json-format/31708)

<div class="topic-metadata">

**Author:** [@Monohar\_Krushna\_Behe](https://forum.ansible.com/u/Monohar_Krushna_Behe)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 10:34pm UTC](https://forum.ansible.com/t/convert-stdout-lines-into-json-format/31708 "2019-11-22T22:34:38Z")

</div>

Hi Team, Greetings of the day!!! Is there any module or plugin available through which we can convert the stdout\_lines of a win\_shell output into json data. if it is available can you help me how to use it. Below is …

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

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

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