# Ansible Project

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

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

**Page:** 80

---

## [need assistance in using regex filter to extract a data](https://forum.ansible.com/t/need-assistance-in-using-regex-filter-to-extract-a-data/35016)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 6\
**Last updated:** [April 20, 2021, 3:04pm UTC](https://forum.ansible.com/t/need-assistance-in-using-regex-filter-to-extract-a-data/35016 "2021-04-20T15:04:56Z")

</div>

Hi, I went through ansible documentation for regex filter and it’s various example. But please excuse my incomprehension, iam stuck on using regex to extract the integers. Below is the output on which i want to use reg…

---

## [The error was: 'unicode object' has no attribute 'stdout'](https://forum.ansible.com/t/the-error-was-unicode-object-has-no-attribute-stdout/35014)

<div class="topic-metadata">

**Author:** [@Cornelis\_van\_Ginkel](https://forum.ansible.com/u/Cornelis_van_Ginkel)\
**Replies:** 4\
**Last updated:** [April 20, 2021, 6:44am UTC](https://forum.ansible.com/t/the-error-was-unicode-object-has-no-attribute-stdout/35014 "2021-04-20T06:44:43Z")

</div>

Hi All, I have the following in my role: - name: "UPTOM\_30 - Determine version from Tomcat file {{ uptom\_tomcat\_tar\_src }}" shell: "echo '{{ uptom\_tomcat\_tar\_src }}' | awk -F '-' '{print $NF}' | sed 's/.tar.gz//g'" re…

---

## [Looping over inventory while reading variables from dict](https://forum.ansible.com/t/looping-over-inventory-while-reading-variables-from-dict/35002)

<div class="topic-metadata">

**Author:** [@Anurag\_Bhatia](https://forum.ansible.com/u/Anurag_Bhatia)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 11:41pm UTC](https://forum.ansible.com/t/looping-over-inventory-while-reading-variables-from-dict/35002 "2021-04-19T23:41:27Z")

</div>

Hello, I am having a hard time in finding syntax needed for playbooks to loop over inventory with 30 routers (R1 to R30) where some values (IP addresses) are stored in an external .yml file. Example of file storing IP …

---

## [Failed to get token for NT AUTHORITY\\SYSTEM required for become as a service account or an account without a password](https://forum.ansible.com/t/failed-to-get-token-for-nt-authority-system-required-for-become-as-a-service-account-or-an-account-without-a-password/34992)

<div class="topic-metadata">

**Author:** [@vijay\_varma\_penumats](https://forum.ansible.com/u/vijay_varma_penumats)\
**Replies:** 5\
**Last updated:** [April 19, 2021, 7:10pm UTC](https://forum.ansible.com/t/failed-to-get-token-for-nt-authority-system-required-for-become-as-a-service-account-or-an-account-without-a-password/34992 "2021-04-19T19:10:46Z")

</div>

We are trying to install patches from Ansible on Windows servers and it used to work fine well, but recently few changes happened from AD or GPO which is causing the below error while executing the Windows updates script…

---

## [How to launch AWX workflows sequentially](https://forum.ansible.com/t/how-to-launch-awx-workflows-sequentially/35012)

<div class="topic-metadata">

**Author:** [@Mike\_Measel](https://forum.ansible.com/u/Mike_Measel)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 3:08pm UTC](https://forum.ansible.com/t/how-to-launch-awx-workflows-sequentially/35012 "2021-04-19T15:08:41Z")

</div>

I have a dynamic inventory that has dynamic groups ( I don’t know them ahead of time ) and each group requires a special tunnel be setup and then torn down before/after each groups hosts plays are processed. I thought t…

---

## [How to send ansible tower metrics to prometheus](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 8\
**Last updated:** [April 19, 2021, 2:02pm UTC](https://forum.ansible.com/t/how-to-send-ansible-tower-metrics-to-prometheus/34716 "2021-04-19T14:02:52Z")

</div>

Hi Ansible experts, We are trying to push Ansible metrics to Prometheus and create a Grafana dashboard. Can you please provide a sample playbook/ note to hook up Ansible metrics to Prometheus?

---

## [How to use variables to dynamically add vars in playbook](https://forum.ansible.com/t/how-to-use-variables-to-dynamically-add-vars-in-playbook/35011)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 0\
**Last updated:** [April 19, 2021, 2:00pm UTC](https://forum.ansible.com/t/how-to-use-variables-to-dynamically-add-vars-in-playbook/35011 "2021-04-19T14:00:57Z")

</div>

Hello All, I am using Ansible Datadog role and trying to install and configure datadog agents in target servers however, i am stuck at a point where i need to use host variables and update a section of the playbook us…

---

## [Inventory custom script](https://forum.ansible.com/t/inventory-custom-script/35009)

<div class="topic-metadata">

**Author:** [@Antony\_Stone](https://forum.ansible.com/u/Antony_Stone)\
**Replies:** 0\
**Last updated:** [April 19, 2021, 9:22am UTC](https://forum.ansible.com/t/inventory-custom-script/35009 "2021-04-19T09:22:03Z")

</div>

Please at least tell us exactly what the errors are. Antony.

---

## [Local (to user) path](https://forum.ansible.com/t/local-to-user-path/35007)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 0\
**Last updated:** [April 19, 2021, 1:47am UTC](https://forum.ansible.com/t/local-to-user-path/35007 "2021-04-19T01:47:03Z")

</div>

If I install ansible from the repo to my account, would it supersede the system-installed one? I want to test a few things without messing with the production stuff.

---

## [Need a parser that will help me compare free space of member switches](https://forum.ansible.com/t/need-a-parser-that-will-help-me-compare-free-space-of-member-switches/35006)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [April 18, 2021, 4:46pm UTC](https://forum.ansible.com/t/need-a-parser-that-will-help-me-compare-free-space-of-member-switches/35006 "2021-04-18T16:46:16Z")

</div>

In a stacked switch, ‘ansible\_net\_filesystems\_info’ of ios\_facts module only shows free space of master switch. It doesn’t show space of member switches. But I need to write a script that will check for certain amt of fr…

---

## [community.general.ssh\_config: ModuleNotFoundError: No module named 'storm'](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001)

<div class="topic-metadata">

**Author:** [@Amedee\_Van\_Gasse](https://forum.ansible.com/u/Amedee_Van_Gasse)\
**Replies:** 4\
**Last updated:** [April 18, 2021, 10:40am UTC](https://forum.ansible.com/t/community-general-ssh-config-modulenotfounderror-no-module-named-storm/35001 "2021-04-18T10:40:58Z")

</div>

I’m doing this: name: Add Bitbucket in the SSH configuration community.general.ssh\_config: user: “{{ jenkins\_user }}” host: bitbucket remote\_user: git hostname: “{{ bitbucket\_hostname }}” port: ‘7999’ identity\_f…

---

## [How to adjust variables in ansible role dependency of a role dependency?](https://forum.ansible.com/t/how-to-adjust-variables-in-ansible-role-dependency-of-a-role-dependency/35005)

<div class="topic-metadata">

**Author:** [@dweipert](https://forum.ansible.com/u/dweipert)\
**Replies:** 0\
**Last updated:** [April 17, 2021, 9:53am UTC](https://forum.ansible.com/t/how-to-adjust-variables-in-ansible-role-dependency-of-a-role-dependency/35005 "2021-04-17T09:53:45Z")

</div>

I posted this on stackoverflow as well: https://stackoverflow.com/questions/67130834/how-to-adjust-variables-in-ansible-role-dependency-of-a-role-dependency

---

## [Inventory file parsing in Copy Module](https://forum.ansible.com/t/inventory-file-parsing-in-copy-module/34999)

<div class="topic-metadata">

**Author:** [@Pawan\_Kumar1](https://forum.ansible.com/u/Pawan_Kumar1)\
**Replies:** 0\
**Last updated:** [April 16, 2021, 9:01am UTC](https://forum.ansible.com/t/inventory-file-parsing-in-copy-module/34999 "2021-04-16T09:01:10Z")

</div>

Hi Team, I want to parse inventory file using ansible playbook to copy ssh public id . Something like ,contents of inventory file should be used as source of copy module …

---

## [how to handle the log message if free strategy is used](https://forum.ansible.com/t/how-to-handle-the-log-message-if-free-strategy-is-used/34998)

<div class="topic-metadata">

**Author:** [@maple.f](https://forum.ansible.com/u/maple.f)\
**Replies:** 0\
**Last updated:** [April 16, 2021, 3:36am UTC](https://forum.ansible.com/t/how-to-handle-the-log-message-if-free-strategy-is-used/34998 "2021-04-16T03:36:52Z")

</div>

Hi, I tried to use free strategy instead of default linear strategy, task didn’t wait all hosts any more, hosts finished tasks in different speed. Yet, it introduce another problem that log message is almost a mess, you…

---

## [Windows Playbook how to not have a remote connection for every task](https://forum.ansible.com/t/windows-playbook-how-to-not-have-a-remote-connection-for-every-task/34996)

<div class="topic-metadata">

**Author:** [@Daniel2](https://forum.ansible.com/u/Daniel2)\
**Replies:** 3\
**Last updated:** [April 15, 2021, 9:55pm UTC](https://forum.ansible.com/t/windows-playbook-how-to-not-have-a-remote-connection-for-every-task/34996 "2021-04-15T21:55:04Z")

</div>

Working on a playbook, using the following windows modules: win\_mapped\_drive and win\_robocopy. I have been using net use commands since the late 80’s with 3Com Lan Manager, so I know what I am doing and I can do what I …

---

## [Copy files from remote to remote](https://forum.ansible.com/t/copy-files-from-remote-to-remote/34988)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 9:37pm UTC](https://forum.ansible.com/t/copy-files-from-remote-to-remote/34988 "2021-04-15T21:37:35Z")

</div>

Hi All, Is there anyway to copy files from one remote node to another without using delegate\_to in ansible. Regards, Sivaraman P

---

## [Will collections support namespaced tasks?](https://forum.ansible.com/t/will-collections-support-namespaced-tasks/34985)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 1\
**Last updated:** [April 15, 2021, 5:56pm UTC](https://forum.ansible.com/t/will-collections-support-namespaced-tasks/34985 "2021-04-15T17:56:54Z")

</div>

I remember quite some time ago reading somewhere a proposed structure for collections that included a tasks folder, along with playbooks, roles, etc. Is support for tasks in collections still planned, so that they can be…

---

## [how to flush handlers in a role.](https://forum.ansible.com/t/how-to-flush-handlers-in-a-role/34993)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 0\
**Last updated:** [April 15, 2021, 3:12pm UTC](https://forum.ansible.com/t/how-to-flush-handlers-in-a-role/34993 "2021-04-15T15:12:12Z")

</div>

I am wondering how can i use : meta: flush\_handlers in a role. so that the handlers are executed immediately after a task in the role has changed. i have these tasks in a role: name: key from MX shell: cat /server…

---

## [Manage ambri service via using api](https://forum.ansible.com/t/manage-ambri-service-via-using-api/34991)

<div class="topic-metadata">

**Author:** [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Replies:** 0\
**Last updated:** [April 15, 2021, 11:12am UTC](https://forum.ansible.com/t/manage-ambri-service-via-using-api/34991 "2021-04-15T11:12:35Z")

</div>

Hi Team, I need to start/stop ambri service via api in ansibile playbook, please share some examples if anybody have any idea

---

## [k8s\_facts just does not work](https://forum.ansible.com/t/k8s-facts-just-does-not-work/34984)

<div class="topic-metadata">

**Author:** [@Nic\_H](https://forum.ansible.com/u/Nic_H)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 5:46am UTC](https://forum.ansible.com/t/k8s-facts-just-does-not-work/34984 "2021-04-15T05:46:58Z")

</div>

well another thing I try and just does not work as per the doc the example from the official doc does not even work : ansibe 2.8 / python3.6 , openshift / kubernetes pip modules 0.11 (0.12 is broken too). - name: Sear…

---

## [Ansible Query](https://forum.ansible.com/t/ansible-query/34982)

<div class="topic-metadata">

**Author:** [@Monica](https://forum.ansible.com/u/Monica)\
**Replies:** 4\
**Last updated:** [April 14, 2021, 5:04pm UTC](https://forum.ansible.com/t/ansible-query/34982 "2021-04-14T17:04:45Z")

</div>

Hello Everyone, Can anyone answer this? What are the different ways other than SSH by which Ansible can connect to remote hosts? Thanks in advance

---

## [Create VM from iso file](https://forum.ansible.com/t/create-vm-from-iso-file/34980)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 2:36pm UTC](https://forum.ansible.com/t/create-vm-from-iso-file/34980 "2021-04-14T14:36:29Z")

</div>

Please someone help me. I am creating two vms with iso file to be installed but get this error. I dont know what to do again. failed: \[127.0.0.1 → localhost\] (item=my\_vm\_01) =\> {“ansible\_facts”: {“discovered\_interpreter…

---

## [how to prevent apt module from desinstall something when installing a package ?](https://forum.ansible.com/t/how-to-prevent-apt-module-from-desinstall-something-when-installing-a-package/34978)

<div class="topic-metadata">

**Author:** [@Daniel\_Caillibaud](https://forum.ansible.com/u/Daniel_Caillibaud)\
**Replies:** 0\
**Last updated:** [April 14, 2021, 10:43am UTC](https://forum.ansible.com/t/how-to-prevent-apt-module-from-desinstall-something-when-installing-a-package/34978 "2021-04-14T10:43:50Z")

</div>

Hi, When a package install is conflicting with other, apt module desinstall all packages in conflict to install the asked one, without notifying anything (except change). I didn't see any option to prevent this on ht…

---

## [mysql\_db and pymysql error](https://forum.ansible.com/t/mysql-db-and-pymysql-error/34943)

<div class="topic-metadata">

**Author:** [@Nic\_H](https://forum.ansible.com/u/Nic_H)\
**Replies:** 9\
**Last updated:** [April 14, 2021, 12:59am UTC](https://forum.ansible.com/t/mysql-db-and-pymysql-error/34943 "2021-04-14T00:59:18Z")

</div>

I am trying to move to python 3.6 on centos 7.8 and ansible 2.8.12 Mysql\_db module fails importing connections from PyMySQL pip module. At least with recent versions ( 0.9 ,1.0.2 ) using 0.7 pass. the error seems to b…

---

## [Pattern for "assemble"ing fragments across roles?](https://forum.ansible.com/t/pattern-for-assemble-ing-fragments-across-roles/34975)

<div class="topic-metadata">

**Author:** [@Rich\_Rauenzahn](https://forum.ansible.com/u/Rich_Rauenzahn)\
**Replies:** 0\
**Last updated:** [April 14, 2021, 12:13am UTC](https://forum.ansible.com/t/pattern-for-assemble-ing-fragments-across-roles/34975 "2021-04-14T00:13:37Z")

</div>

I’m trying to come up with some roles for configuring hashicorp vault agent. In the end I’d like to build up then agent’s config file to pull different secrets from a vault and then call scripts in response. I have a ro…

---

## [Gathering facts from hosts](https://forum.ansible.com/t/gathering-facts-from-hosts/34972)

<div class="topic-metadata">

**Author:** [@Werner\_Flamme](https://forum.ansible.com/u/Werner_Flamme)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 5:11pm UTC](https://forum.ansible.com/t/gathering-facts-from-hosts/34972 "2021-04-13T17:11:24Z")

</div>

Hi list, I wonder if there is a dynamic way of providing facts about hosts. I only find the possibility to include facts that are hardcoded in one file (or multiple), but they are static, and maybe outdated. This I se…

---

## [Optimizing 'gather\_facts' response time over networking devices](https://forum.ansible.com/t/optimizing-gather-facts-response-time-over-networking-devices/34955)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 5\
**Last updated:** [April 13, 2021, 4:43pm UTC](https://forum.ansible.com/t/optimizing-gather-facts-response-time-over-networking-devices/34955 "2021-04-13T16:43:36Z")

</div>

With: ansible 3.2.0 (pip3) ansible-base 2.10.7 (pip3) The goal is twofold:- gather the facts only from the local cache when the cache is not empty and its timeout \<fact\_caching\_timeout\> has not expired contact the r…

---

## [Ansible "block" error](https://forum.ansible.com/t/ansible-block-error/34974)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 4:22pm UTC](https://forum.ansible.com/t/ansible-block-error/34974 "2021-04-13T16:22:55Z")

</div>

How do I troubleshoot the Ansible Error “block is not a valid attribute for a Play”? Or, is there a better attribute to use here? Ansible Version: ansible 2.9.18 config file = /etc/ansible/ansible.cfg configured modu…

---

## [Cannot create multiple VMs](https://forum.ansible.com/t/cannot-create-multiple-vms/34970)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 23\
**Last updated:** [April 13, 2021, 1:35pm UTC](https://forum.ansible.com/t/cannot-create-multiple-vms/34970 "2021-04-13T13:35:16Z")

</div>

I want to create two VMs with ansible but keep getting this error with the with\_items Please I need help. I am very new to ansible. ERROR! Syntax Error while loading YAML. did not find expected ‘-’ indicator The erro…

---

## [ThrottlingException in KMS](https://forum.ansible.com/t/throttlingexception-in-kms/34962)

<div class="topic-metadata">

**Author:** [@Jayesh\_Mahajan](https://forum.ansible.com/u/Jayesh_Mahajan)\
**Replies:** 3\
**Last updated:** [April 13, 2021, 8:02am UTC](https://forum.ansible.com/t/throttlingexception-in-kms/34962 "2021-04-13T08:02:26Z")

</div>

Dear All, I am facing throttling issue in AWS KMS. I just want to understand why? I am using below task to perform upgrade on instances. aws\_kms\_facts: region: “{{ region }}” filters: alias: “{{ envrn }}-{{ region…

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

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