# Ansible Developer

**URL:** https://forum.ansible.com/c/archives/ansible-developer/29.md?page=13

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

**Page:** 14

---

## [Ansible Yum Update](https://forum.ansible.com/t/ansible-yum-update/34201)

<div class="topic-metadata">

**Author:** [@HtetAung](https://forum.ansible.com/u/HtetAung)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 5:24am UTC](https://forum.ansible.com/t/ansible-yum-update/34201 "2020-11-17T05:24:04Z")

</div>

Hi Guys, I have been using ansible for 3 months now and I updated my servers’ packages using yum module. My goal is to update all the packages in those servers to latest. The command line will be “yum -y update” As st…

---

## [error while running uptime.py](https://forum.ansible.com/t/error-while-running-uptime-py/34050)

<div class="topic-metadata">

**Author:** [@nikhil\_gupta](https://forum.ansible.com/u/nikhil_gupta)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 6:31pm UTC](https://forum.ansible.com/t/error-while-running-uptime-py/34050 "2020-11-15T18:31:01Z")

</div>

Hello I am new to Ansilbe. I downloaded the ansible source code zip from GitHub. I am trying to run uptime.py under examples/scripts. I am getting below error. Please let me know the steps to run this. UP \*\*\*\*\*\*\*\*\*\*\* …

---

## [How to catch and re-raise errors from inner blocks](https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 9:44pm UTC](https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198 "2020-11-13T21:44:46Z")

</div>

I don't know if anyone else has run into this, or if this is the right way to handle this case, but it works for me in Ansible 2.9 and 2.10: https://richm.github.io/how-to-catch-and-reraise-errors-in-ansible

---

## [multi hosts in block/rescue](https://forum.ansible.com/t/multi-hosts-in-block-rescue/34191)

<div class="topic-metadata">

**Author:** [@ken\_partridge](https://forum.ansible.com/u/ken_partridge)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 7:47pm UTC](https://forum.ansible.com/t/multi-hosts-in-block-rescue/34191 "2020-11-12T19:47:56Z")

</div>

Hello, We are writing a simple block/rescue playbook, where we see if a box is online and if its not we want to notify another box to this fact. I apologize in advance but it look like another hosts parameters can not …

---

## [GET IP AND HOST NAME AND SAVE IT TO FILE IN LOCALHOST](https://forum.ansible.com/t/get-ip-and-host-name-and-save-it-to-file-in-localhost/34185)

<div class="topic-metadata">

**Author:** [@gr00t](https://forum.ansible.com/u/gr00t)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 3:33pm UTC](https://forum.ansible.com/t/get-ip-and-host-name-and-save-it-to-file-in-localhost/34185 "2020-11-12T15:33:51Z")

</div>

HI, I am trying to create a task that will get the host target IP address and host-name that are in the inventory then save it to a file in the local directory. Would love to save the data like this: hostname:ip-add…

---

## [Custom module: Using Display() to print messages (ideally in real time) over a local connection](https://forum.ansible.com/t/custom-module-using-display-to-print-messages-ideally-in-real-time-over-a-local-connection/20957)

<div class="topic-metadata">

**Author:** [@Florin\_Lipan](https://forum.ansible.com/u/Florin_Lipan)\
**Replies:** 3\
**Last updated:** [November 9, 2020, 9:04am UTC](https://forum.ansible.com/t/custom-module-using-display-to-print-messages-ideally-in-real-time-over-a-local-connection/20957 "2020-11-09T09:04:26Z")

</div>

I’m running a set of custom Ansible modules which are ment for local connections only. I was trying to use Display() to print out some custom output - ideally in real time. I’m using Ansible 2.0.1.0 on Ubuntu 14.04. Th…

---

## [Credential Plugin KV development](https://forum.ansible.com/t/credential-plugin-kv-development/34135)

<div class="topic-metadata">

**Author:** [@Surbhi\_Jain](https://forum.ansible.com/u/Surbhi_Jain)\
**Replies:** 0\
**Last updated:** [October 31, 2020, 3:59am UTC](https://forum.ansible.com/t/credential-plugin-kv-development/34135 "2020-10-31T03:59:20Z")

</div>

Hi Guys, We are working on developing KV Plugin. Could someone can answer few questions of mine: Should we follow Hashicorp/Cyberark AIM Code flow, or any new developement undergoing ? We have dependency on external …

---

## [Ansible Contributor Summit recap and SURVEY!](https://forum.ansible.com/t/ansible-contributor-summit-recap-and-survey/34130)

<div class="topic-metadata">

**Author:** [@Carol\_Chen1](https://forum.ansible.com/u/Carol_Chen1)\
**Replies:** 0\
**Last updated:** [October 29, 2020, 10:01pm UTC](https://forum.ansible.com/t/ansible-contributor-summit-recap-and-survey/34130 "2020-10-29T22:01:55Z")

</div>

Hi everyone, Earlier this month (October 12 and 15), we held a virtual Ansible Contributor Summit, as part of AnsibleFest 2020. Here is a Contributor Survey that we have put together: https://www.surveymonkey.co.uk/r/5D…

---

## [New release candidate: ansible 2.9.15rc1 and 2.8.17rc1](https://forum.ansible.com/t/new-release-candidate-ansible-2-9-15rc1-and-2-8-17rc1/34111)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [October 27, 2020, 1:21am UTC](https://forum.ansible.com/t/new-release-candidate-ansible-2-9-15rc1-and-2-8-17rc1/34111 "2020-10-27T01:21:59Z")

</div>

Hi all- we're happy to announce that the release candidate of Ansible 2.9.15rc1 and 2.8.17rc1 are now available! This is a release candidate that you can use for testing the next available minor release of ansible. H…

---

## [New release candidate: ansible-base 2.10.3rc1](https://forum.ansible.com/t/new-release-candidate-ansible-base-2-10-3rc1/34110)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [October 27, 2020, 1:19am UTC](https://forum.ansible.com/t/new-release-candidate-ansible-base-2-10-3rc1/34110 "2020-10-27T01:19:51Z")

</div>

Hi all- we're happy to announce that the release candidate of ansible-base 2.10.3rc1 is now available! This is a release candidate that you can use for testing the next available minor release of ansible-base. How to…

---

## [ansible-playbook don't see the custom connection plugin](https://forum.ansible.com/t/ansible-playbook-dont-see-the-custom-connection-plugin/34089)

<div class="topic-metadata">

**Author:** [@Valentin\_Gusarin](https://forum.ansible.com/u/Valentin_Gusarin)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 11:49am UTC](https://forum.ansible.com/t/ansible-playbook-dont-see-the-custom-connection-plugin/34089 "2020-10-23T11:49:27Z")

</div>

Hi! I try to develope custom connection plugin. Plugin placed in ~/.ansible/plugins/connection folder and correctly seen by ansible-doc. But, when I try to run playbook, I have a message: {“msg”: “the connection plugi…

---

## [Ansible package proposal to remove .rst files from tarballs](https://forum.ansible.com/t/ansible-package-proposal-to-remove-rst-files-from-tarballs/34076)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 0\
**Last updated:** [October 21, 2020, 3:58pm UTC](https://forum.ansible.com/t/ansible-package-proposal-to-remove-rst-files-from-tarballs/34076 "2020-10-21T15:58:00Z")

</div>

Hi folks - Currently, the Ansible package tarballs and the individual collection tarballs include .RST files. This adds to the overall size of these packages, so we are considering removing them, and instead, creating a…

---

## [Accessing cached facts from custom module](https://forum.ansible.com/t/accessing-cached-facts-from-custom-module/34036)

<div class="topic-metadata">

**Author:** [@Zeek3000](https://forum.ansible.com/u/Zeek3000)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 10:48am UTC](https://forum.ansible.com/t/accessing-cached-facts-from-custom-module/34036 "2020-10-20T10:48:00Z")

</div>

Hello, I’m trying to access facts that are cached in AWX from within my custom network module, preferably without having to make an API call. I need to check if an element already exists in the fact cache so that it doe…

---

## [Accessing values from cfg/ini file and using that in playbook](https://forum.ansible.com/t/accessing-values-from-cfg-ini-file-and-using-that-in-playbook/34053)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar](https://forum.ansible.com/u/Akshay_Kumar)\
**Replies:** 1\
**Last updated:** [October 19, 2020, 2:21pm UTC](https://forum.ansible.com/t/accessing-values-from-cfg-ini-file-and-using-that-in-playbook/34053 "2020-10-19T14:21:33Z")

</div>

Hi Team, I am trying to do the following , would appreciate if someone has a better idea to workout for the scenario: Cfg file----- Section1: ls: first: DirName: /home/kumar/DevFileLocation User: kumar Section2: …

---

## [ASSIST IN ANSIBLE](https://forum.ansible.com/t/assist-in-ansible/34024)

<div class="topic-metadata">

**Author:** [@gr00t](https://forum.ansible.com/u/gr00t)\
**Replies:** 3\
**Last updated:** [October 15, 2020, 2:29am UTC](https://forum.ansible.com/t/assist-in-ansible/34024 "2020-10-15T02:29:54Z")

</div>

Hey Guys, Need some help … been trying to place multiple tasks in one block with tags but I keep getting an error include task files must contain a list of tasks… Below is one of my ansible block … hosts: local tags…

---

## [is there a way to define a range of data?](https://forum.ansible.com/t/is-there-a-way-to-define-a-range-of-data/34030)

<div class="topic-metadata">

**Author:** [@lou](https://forum.ansible.com/u/lou)\
**Replies:** 2\
**Last updated:** [October 14, 2020, 3:41pm UTC](https://forum.ansible.com/t/is-there-a-way-to-define-a-range-of-data/34030 "2020-10-14T15:41:39Z")

</div>

Hi Ansible experts, Is there a way to simplify writing the following (vlan):

---

## [misunderstanding inventory ?](https://forum.ansible.com/t/misunderstanding-inventory/34032)

<div class="topic-metadata">

**Author:** [@AnsibleJunior](https://forum.ansible.com/u/AnsibleJunior)\
**Replies:** 0\
**Last updated:** [October 14, 2020, 9:49am UTC](https://forum.ansible.com/t/misunderstanding-inventory/34032 "2020-10-14T09:49:59Z")

</div>

Hi everybody, I hope this the good place to post my problem. I have declared this inventory in yml all: children: server\_country\_prod: hosts: server1.com: vars: … server\_country\_preprod: hosts: server2.com: …

---

## [SPLINTER: An opinionated provisioning tool for macOS automated with Ansible](https://forum.ansible.com/t/splinter-an-opinionated-provisioning-tool-for-macos-automated-with-ansible/34022)

<div class="topic-metadata">

**Author:** [@Marco\_Massari\_Calder](https://forum.ansible.com/u/Marco_Massari_Calder)\
**Replies:** 0\
**Last updated:** [October 13, 2020, 3:41pm UTC](https://forum.ansible.com/t/splinter-an-opinionated-provisioning-tool-for-macos-automated-with-ansible/34022 "2020-10-13T15:41:45Z")

</div>

Hello guys, how are you doing? In the past months, I have been working to create a tool called Splinter (like the ninja rat) that I wanted to introduce to you because I would really appreciate your opinions and suggesti…

---

## [RFC: Execution Environments for Ansible Automation](https://forum.ansible.com/t/rfc-execution-environments-for-ansible-automation/34009)

<div class="topic-metadata">

**Author:** [@maxamillion](https://forum.ansible.com/u/maxamillion)\
**Replies:** 0\
**Last updated:** [October 12, 2020, 1:35pm UTC](https://forum.ansible.com/t/rfc-execution-environments-for-ansible-automation/34009 "2020-10-12T13:35:43Z")

</div>

Hello ansible-devel! Today the Ansible Engineering Team would like to announce an idea we’ve been working on called “Execution Environments” which we are introducing in order to garner feedback and contributions f…

---

## [ansible.builtin.setup does not always report the partition UUID](https://forum.ansible.com/t/ansible-builtin-setup-does-not-always-report-the-partition-uuid/33996)

<div class="topic-metadata">

**Author:** [@Claude\_Robitaille](https://forum.ansible.com/u/Claude_Robitaille)\
**Replies:** 0\
**Last updated:** [October 9, 2020, 3:08pm UTC](https://forum.ansible.com/t/ansible-builtin-setup-does-not-always-report-the-partition-uuid/33996 "2020-10-09T15:08:58Z")

</div>

Hello, ansible.builtin.setup is not reliable in reporting the partition UUIDs. It uses /dev/disk/by-uuid (in linux.py: get\_partition\_uuid(partname)), which is not a reliable source of information. I have a situation whe…

---

## [How to specify No Value for a key in Ansible yaml?](https://forum.ansible.com/t/how-to-specify-no-value-for-a-key-in-ansible-yaml/33983)

<div class="topic-metadata">

**Author:** [@skwok](https://forum.ansible.com/u/skwok)\
**Replies:** 0\
**Last updated:** [October 7, 2020, 7:37pm UTC](https://forum.ansible.com/t/how-to-specify-no-value-for-a-key-in-ansible-yaml/33983 "2020-10-07T19:37:45Z")

</div>

I’m a newbie in Ansible and I’d like to use the aws\_ec2 plugin to return a list of ec2 instances with 2 tags: env=stage and a=(empty). I’m using “filters” with “tag” like the followings: filters: tag:Env: - stage tag:a:…

---

## [Ansible Tower](https://forum.ansible.com/t/ansible-tower/33978)

<div class="topic-metadata">

**Author:** [@Abdulrazzaq\_shaik](https://forum.ansible.com/u/Abdulrazzaq_shaik)\
**Replies:** 0\
**Last updated:** [October 7, 2020, 3:27am UTC](https://forum.ansible.com/t/ansible-tower/33978 "2020-10-07T03:27:52Z")

</div>

Hi All, Please help with docs on Ansible Tower and configuring nodes, Regards Abdul Razzaq

---

## [Ansible Tower Copy Module can't find file on Ansible Controller](https://forum.ansible.com/t/ansible-tower-copy-module-cant-find-file-on-ansible-controller/33941)

<div class="topic-metadata">

**Author:** [@td784](https://forum.ansible.com/u/td784)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 1:23pm UTC](https://forum.ansible.com/t/ansible-tower-copy-module-cant-find-file-on-ansible-controller/33941 "2020-10-01T13:23:57Z")

</div>

Hi all, Hoping to get some feedback and help here as I am lost on this one… Issue: When running the below code through Tower: name: “Copy cert file to target host” become: yes copy: src: “/tmp/my.jks” dest: “{{ …

---

## [Can't use pydantic library in lookup plugin](https://forum.ansible.com/t/cant-use-pydantic-library-in-lookup-plugin/33926)

<div class="topic-metadata">

**Author:** [@thlanzer](https://forum.ansible.com/u/thlanzer)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 12:09am UTC](https://forum.ansible.com/t/cant-use-pydantic-library-in-lookup-plugin/33926 "2020-09-30T00:09:35Z")

</div>

Hi there I tried to embed some python code as a plugin that uses pydantic library. Seems that this does not work in combination with Ansible. Did anybody have similiar issues? I would really appreciate if you can giv…

---

## [New release candidate: ansible-base 2.10.2rc1](https://forum.ansible.com/t/new-release-candidate-ansible-base-2-10-2rc1/33917)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 11:33pm UTC](https://forum.ansible.com/t/new-release-candidate-ansible-base-2-10-2rc1/33917 "2020-09-28T23:33:34Z")

</div>

Hi all- we're happy to announce that the general release of ansible-base 2.10.2rc1 is now available! These are release candidates that you can use for testing the next available minor releases of ansible-base. How to …

---

## [New release candidates: ansible 2.8.16rc1, 2.9.14rc1](https://forum.ansible.com/t/new-release-candidates-ansible-2-8-16rc1-2-9-14rc1/33916)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [September 28, 2020, 11:27pm UTC](https://forum.ansible.com/t/new-release-candidates-ansible-2-8-16rc1-2-9-14rc1/33916 "2020-09-28T23:27:11Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.9.14rc1 and 2.8.16rc1 are now available! These are release candidates that you can use for testing the next available minor releases of Ansible. Ho…

---

## [How to have stateful python class during play execution? (singleton?](https://forum.ansible.com/t/how-to-have-stateful-python-class-during-play-execution-singleton/33904)

<div class="topic-metadata">

**Author:** [@thlanzer](https://forum.ansible.com/u/thlanzer)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 7:46pm UTC](https://forum.ansible.com/t/how-to-have-stateful-python-class-during-play-execution-singleton/33904 "2020-09-28T19:46:49Z")

</div>

Hi guys I would like to parse specifc JSON files, create objects from them and store them in memory for further lookup (for my usecase I can’t use jmespath). So I plan to read once the whole json file into dictionary w…

---

## [searching multi lines using regex](https://forum.ansible.com/t/searching-multi-lines-using-regex/33860)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 5:22am UTC](https://forum.ansible.com/t/searching-multi-lines-using-regex/33860 "2020-09-28T05:22:39Z")

</div>

How to search multiple lines using regex in Ansible? I tried below pattern and it is not working regex: ^line con.(?:\\n^\\s.) line console 0 password

---

## [Is there a way to denote modules/plugins that are private to a collection?](https://forum.ansible.com/t/is-there-a-way-to-denote-modules-plugins-that-are-private-to-a-collection/33890)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 5:43pm UTC](https://forum.ansible.com/t/is-there-a-way-to-denote-modules-plugins-that-are-private-to-a-collection/33890 "2020-09-24T17:43:51Z")

</div>

The linux-system-roles project has several roles that have modules that are used in the implementation of the role. However, once we convert to collections, all of these modules will be part of the public API of the col…

---

## [Converting roles to collections semantically with Ansible and ruamel](https://forum.ansible.com/t/converting-roles-to-collections-semantically-with-ansible-and-ruamel/33868)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 0\
**Last updated:** [September 22, 2020, 8:01pm UTC](https://forum.ansible.com/t/converting-roles-to-collections-semantically-with-ansible-and-ruamel/33868 "2020-09-22T20:01:54Z")

</div>

If you are converting your roles into a collection, and have to keep supporting the old roles format for the foreseeable future, and want to change your Ansible YAML files into collections format such that they match the…

[Previous page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=12)

[Next page](https://forum.ansible.com/c/archives/ansible-developer/29.md?page=14)
