# Ansible Project

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

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

**Page:** 7

---

## [Error in huge template - how to find the culprit?](https://forum.ansible.com/t/error-in-huge-template-how-to-find-the-culprit/38663)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 6:37pm UTC](https://forum.ansible.com/t/error-in-huge-template-how-to-find-the-culprit/38663 "2024-01-25T18:37:49Z")

</div>

Hii, I have a template that has a lot of variables and control structures. I get an error during the playbook run: fatal: \[prod\_nagios2\]: FAILED! =\> changed=false msg: |- AnsibleError: Unexpected templating type erro…

---

## [Regarding No space left on device error](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 25\
**Last updated:** [January 25, 2024, 12:27pm UTC](https://forum.ansible.com/t/regarding-no-space-left-on-device-error/38656 "2024-01-25T12:27:57Z")

</div>

Hi All, I have been facing the following issue: /home/ansible/.ansible/tmp/ansible-tmp: No space left on device. I have cleared the space in Ansible server and another server but the issue still persists. Can some on…

---

## [Elasticache Redis clustered mode](https://forum.ansible.com/t/elasticache-redis-clustered-mode/26814)

<div class="topic-metadata">

**Author:** [@WZ1](https://forum.ansible.com/u/WZ1)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 4:14pm UTC](https://forum.ansible.com/t/elasticache-redis-clustered-mode/26814 "2024-01-24T16:14:45Z")

</div>

Hi, I’m trying to spin up a clustered mode of redis instance and it seems like this results in ansible trying to spin up a non clustered mode of redis. There is no parameter for clustered mode, so only way for signifyin…

---

## [\[ansible project\] VM snapshot capture using VMware](https://forum.ansible.com/t/ansible-project-vm-snapshot-capture-using-vmware/38657)

<div class="topic-metadata">

**Author:** [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Replies:** 9\
**Last updated:** [January 23, 2024, 1:52pm UTC](https://forum.ansible.com/t/ansible-project-vm-snapshot-capture-using-vmware/38657 "2024-01-23T13:52:02Z")

</div>

Hi experts, We are doing automation to update RHEL7-\> RHEL8 . Before we upgrade we take the snapshot. The issue is whenever there is an upgrade failure we revert the server to its previous state. But it seems when we …

---

## [syntax error in crontab](https://forum.ansible.com/t/syntax-error-in-crontab/38662)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 3\
**Last updated:** [January 23, 2024, 12:42pm UTC](https://forum.ansible.com/t/syntax-error-in-crontab/38662 "2024-01-23T12:42:52Z")

</div>

Good morning. I am updating a cron job by replacing a line in the crontab file. My error comes when I use the "" (see below) to escape the “(”. Using the escape character works on the command line but Ansible keeps givin…

---

## [Incomprehensible error message](https://forum.ansible.com/t/incomprehensible-error-message/38655)

<div class="topic-metadata">

**Author:** [@HobsonI](https://forum.ansible.com/u/HobsonI)\
**Replies:** 5\
**Last updated:** [January 18, 2024, 7:19pm UTC](https://forum.ansible.com/t/incomprehensible-error-message/38655 "2024-01-18T19:19:40Z")

</div>

Found the problem. The comma separated list of privileges, cannot have spaces after the commas. This is unusually user-hostile! Regards Ian

---

## [Incomprehensible error message](https://forum.ansible.com/t/incomprehensible-error-message/38654)

<div class="topic-metadata">

**Author:** [@HobsonI](https://forum.ansible.com/u/HobsonI)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 3:12pm UTC](https://forum.ansible.com/t/incomprehensible-error-message/38654 "2024-01-18T15:12:11Z")

</div>

Hi All, I am attempting to use Ansible to create a MySQL backup user. It should be able to read and lock tables for everything. The step in the playbook is this. - name: create user - GRANT SELECT, PROCESS, LOCK TABLES…

---

## [backslashes in regex\_replace filter](https://forum.ansible.com/t/backslashes-in-regex-replace-filter/38642)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 9\
**Last updated:** [January 17, 2024, 6:43pm UTC](https://forum.ansible.com/t/backslashes-in-regex-replace-filter/38642 "2024-01-17T18:43:37Z")

</div>

Hi - Does anyone (who understands how backslashes work in Ansible/YAML) know why both of the following tasks work: (ansible2\_15\_8) rowagn@localhost:~#\> cat d.yml hosts: all gather\_facts: no vars: s: ‘This is a stri…

---

## [Issue about defining variable within the task does not work](https://forum.ansible.com/t/issue-about-defining-variable-within-the-task-does-not-work/38651)

<div class="topic-metadata">

**Author:** [@ricardobarbosams](https://forum.ansible.com/u/ricardobarbosams)\
**Replies:** 4\
**Last updated:** [January 15, 2024, 10:01pm UTC](https://forum.ansible.com/t/issue-about-defining-variable-within-the-task-does-not-work/38651 "2024-01-15T22:01:30Z")

</div>

Hello guys I created the following structure: amis: us-east-1: amazonlinux: owner\_id: "137112412989" x86\_64: "ami-01bc990364452ab3e" arm64: "ami-0900a8f768a21540a" user: "ec2-user" ubuntu: owner\_id: "099720109477" x86\_…

---

## [error in asnible ""msg": "Failed to import the required Python library (botocore or boto3)"](https://forum.ansible.com/t/error-in-asnible-msg-failed-to-import-the-required-python-library-botocore-or-boto3/38652)

<div class="topic-metadata">

**Author:** [@user99](https://forum.ansible.com/u/user99)\
**Replies:** 0\
**Last updated:** [January 15, 2024, 2:47am UTC](https://forum.ansible.com/t/error-in-asnible-msg-failed-to-import-the-required-python-library-botocore-or-boto3/38652 "2024-01-15T02:47:26Z")

</div>

After upgrading the ansible version and deploying, errors occur. (Ansible ver 2.9.15 → 2.12.10) “msg”: “Failed to import the required Python library (botocore or boto3) on sap-sch-api01-a’s Python /usr/bin/python3.8. Pl…

---

## [Trying to replace single quote with regex\_replace](https://forum.ansible.com/t/trying-to-replace-single-quote-with-regex-replace/38646)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 10\
**Last updated:** [January 12, 2024, 8:20pm UTC](https://forum.ansible.com/t/trying-to-replace-single-quote-with-regex-replace/38646 "2024-01-12T20:20:31Z")

</div>

Hello, all. I’m working with VMware modules in removing snapshots across all vCenter folders. In order for this to work, I first have to get the folders in which the virtual machines live. Here’s the playbook:

---

## [Ansible Inventory Plugin](https://forum.ansible.com/t/ansible-inventory-plugin/38649)

<div class="topic-metadata">

**Author:** [@Kai\_Pistorius](https://forum.ansible.com/u/Kai_Pistorius)\
**Replies:** 3\
**Last updated:** [January 12, 2024, 3:50pm UTC](https://forum.ansible.com/t/ansible-inventory-plugin/38649 "2024-01-12T15:50:56Z")

</div>

I am trying to develop a Ansible Inventory Plugin based on some examples I found on Github. This is my Yaml File:

---

## [Issue creating symbolic link](https://forum.ansible.com/t/issue-creating-symbolic-link/38648)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 7\
**Last updated:** [January 11, 2024, 8:31pm UTC](https://forum.ansible.com/t/issue-creating-symbolic-link/38648 "2024-01-11T20:31:10Z")

</div>

I know this should be trivial, but I just cannot get it to work. I’m trying to create a symbolic link in my playbook. I’m trying to link /etc/guacamole/guacamole.properties in the /usr/share/tomcat/.guacamole directory a…

---

## [Enable module in Ansible](https://forum.ansible.com/t/enable-module-in-ansible/38647)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 7:23pm UTC](https://forum.ansible.com/t/enable-module-in-ansible/38647 "2024-01-11T19:23:14Z")

</div>

I am working on a role to install Apache Guacamole. One of the dependencies that has to be installed is libssh2-devel, but that’s not available on RHEL 8. Google is telling me that if I install the virt-devel OS module v…

---

## [change of parsing of values? (in ansible.cfg)](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641)

<div class="topic-metadata">

**Author:** [@adriansev](https://forum.ansible.com/u/adriansev)\
**Replies:** 4\
**Last updated:** [January 11, 2024, 5:39pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641 "2024-01-11T17:39:14Z")

</div>

So, after updating of ansible (i do not know the versions that i had) and in the context of setting values for redis fact caching see https://github.com/ansible-collections/community.general/issues/7814 i notice that …

---

## [ansible.builtin.user :: input password appears not to have been hashed](https://forum.ansible.com/t/ansible-builtin-user-input-password-appears-not-to-have-been-hashed/38645)

<div class="topic-metadata">

**Author:** [@adriansev](https://forum.ansible.com/u/adriansev)\
**Replies:** 0\
**Last updated:** [January 10, 2024, 10:27am UTC](https://forum.ansible.com/t/ansible-builtin-user-input-password-appears-not-to-have-been-hashed/38645 "2024-01-10T10:27:53Z")

</div>

Hi! I'm trying to sync users from a "frontend" type server to compute nodes and for this i build a var yml with the information including the hash of the passwords (provided by spwd module attribute sp\_pwdp) sp\_pwdp i…

---

## [ERROR! Unexpected Exception, this is probably a bug: module 'argcomplete' has no attribute 'autocomplete'](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38644)

<div class="topic-metadata">

**Author:** [@Arunkumar\_Paramasiva](https://forum.ansible.com/u/Arunkumar_Paramasiva)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 9:57am UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38644 "2024-01-10T09:57:48Z")

</div>

I installed ansible using homebrew and was working until recent update What am I missing? Any help would be appreciated. Thanks you I tried adding ansible\_python\_interpreter=“/usr/bin/python3”, but no luck. my python …

---

## [ERROR! Unexpected Exception, this is probably a bug: module 'argcomplete' has no attribute 'autocomplete'](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38643)

<div class="topic-metadata">

**Author:** [@Arunkumar\_Paramasiva](https://forum.ansible.com/u/Arunkumar_Paramasiva)\
**Replies:** 0\
**Last updated:** [January 10, 2024, 5:10am UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38643 "2024-01-10T05:10:19Z")

</div>

I installed ansible using homebrew and was working fine for a while and recently started failing with this error message. any help to resolve this woule be appreciated, thank you. ╰─➤ ansible -v ERROR! Unexpected Excep…

---

## [Help Using an .stdout as a VAR Used in a WHEN Condition](https://forum.ansible.com/t/help-using-an-stdout-as-a-var-used-in-a-when-condition/38637)

<div class="topic-metadata">

**Author:** [@Symian](https://forum.ansible.com/u/Symian)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 3:04am UTC](https://forum.ansible.com/t/help-using-an-stdout-as-a-var-used-in-a-when-condition/38637 "2024-01-10T03:04:52Z")

</div>

Hello. New to this wonderful Ansible thing. I am a database guy. I have an Oracle process that spits out a file that looks like this (but the value could be different at each run): \[oracle@lnx0016 scripts\]$ more /tmp/im…

---

## [error in asnible ""msg": "Failed to authenticate: Authentication failed: transport shut down or saw EOF""](https://forum.ansible.com/t/error-in-asnible-msg-failed-to-authenticate-authentication-failed-transport-shut-down-or-saw-eof/38635)

<div class="topic-metadata">

**Author:** [@mohamed\_mostafa](https://forum.ansible.com/u/mohamed_mostafa)\
**Replies:** 1\
**Last updated:** [January 5, 2024, 2:28pm UTC](https://forum.ansible.com/t/error-in-asnible-msg-failed-to-authenticate-authentication-failed-transport-shut-down-or-saw-eof/38635 "2024-01-05T14:28:55Z")

</div>

dears, Kindly help to solve this issue, i have the below error when run ad-hoc command "ios\_ping " \[mohamedlocalhost proj\]$ ansible -m ios\_ping 192.168.1.101 -a “dest=192.168.1.101” SSH password: \[WARNING\]: ansible-p…

---

## [How to set ansible facts to logs](https://forum.ansible.com/t/how-to-set-ansible-facts-to-logs/38639)

<div class="topic-metadata">

**Author:** [@Siddharth\_Thakur](https://forum.ansible.com/u/Siddharth_Thakur)\
**Replies:** 3\
**Last updated:** [January 5, 2024, 8:57am UTC](https://forum.ansible.com/t/how-to-set-ansible-facts-to-logs/38639 "2024-01-05T08:57:37Z")

</div>

I have a scenario where I am executing my Ansible playbook with Jenkins. I have to save the execution output in a txt file which the ansible itself should generate. The naming convention of the log file should be like \_\<…

---

## [add the computer group in ou security group and give full permission](https://forum.ansible.com/t/add-the-computer-group-in-ou-security-group-and-give-full-permission/38640)

<div class="topic-metadata">

**Author:** [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Replies:** 1\
**Last updated:** [January 4, 2024, 6:03pm UTC](https://forum.ansible.com/t/add-the-computer-group-in-ou-security-group-and-give-full-permission/38640 "2024-01-04T18:03:56Z")

</div>

Hi team, do we have any playbook we can add the computer group in ou security group and give full permission

---

## [Seeking Assistance: Pre-made Windows Server Boxes for Ansible Testing](https://forum.ansible.com/t/seeking-assistance-pre-made-windows-server-boxes-for-ansible-testing/38636)

<div class="topic-metadata">

**Author:** [@Leon\_Khan](https://forum.ansible.com/u/Leon_Khan)\
**Replies:** 0\
**Last updated:** [December 25, 2023, 6:15pm UTC](https://forum.ansible.com/t/seeking-assistance-pre-made-windows-server-boxes-for-ansible-testing/38636 "2023-12-25T18:15:13Z")

</div>

Hello Everyone , I hope this message finds you well. I am currently in the process of learning Ansible for managing remote Windows servers. In this regard, I am looking for pre-made Windows Server 2016 or 2022 boxes tha…

---

## [Playbook for VMware help](https://forum.ansible.com/t/playbook-for-vmware-help/38634)

<div class="topic-metadata">

**Author:** [@Dimitri\_Yioulos](https://forum.ansible.com/u/Dimitri_Yioulos)\
**Replies:** 2\
**Last updated:** [December 22, 2023, 4:00pm UTC](https://forum.ansible.com/t/playbook-for-vmware-help/38634 "2023-12-22T16:00:08Z")

</div>

Season’s greetings, all. I’ve created a playbook to generate a report of all VMware guests (vms) which have snapshots:

---

## [How to make ansible-test work with mypy code](https://forum.ansible.com/t/how-to-make-ansible-test-work-with-mypy-code/38633)

<div class="topic-metadata">

**Author:** [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Replies:** 0\
**Last updated:** [December 19, 2023, 10:12pm UTC](https://forum.ansible.com/t/how-to-make-ansible-test-work-with-mypy-code/38633 "2023-12-19T22:12:19Z")

</div>

I’m using the latest ansible-test. Here is the code: def cmd\_options\_params\_definition() → dict\[str, Any\]: … here are the errors: Running sanity test “import” on Python 3.6 ERROR: plugins/module\_utils/ha\_cluster\_lsr…

---

## [error in jinja2 template](https://forum.ansible.com/t/error-in-jinja2-template/38632)

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 5:55am UTC](https://forum.ansible.com/t/error-in-jinja2-template/38632 "2023-12-19T05:55:19Z")

</div>

Hi Team, below is my playbook and j2 template i was failed to create a file actually i am not comfortable wil jinja2 if any one can guide me playbook: name: read data set\_fact: vm\_data: “{{ lookup(‘file’, ‘variabl…

---

## [Print Data Based On Size In Given Server \[need no\_of\_vols\]](https://forum.ansible.com/t/print-data-based-on-size-in-given-server-need-no-of-vols/38631)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 4\
**Last updated:** [December 18, 2023, 7:38pm UTC](https://forum.ansible.com/t/print-data-based-on-size-in-given-server-need-no-of-vols/38631 "2023-12-18T19:38:53Z")

</div>

i want to print Data Based On Size In Given Server and generate the ‘no\_of\_vols’. storage\_device: servername: server1 capacity: no\_of\_vols: 1 size: 10 cap\_unit: GB no\_of\_vols: 2 size: 11 cap\_unit: GB server: serv…

---

## [Generate temaplate file when  having with\_items and array](https://forum.ansible.com/t/generate-temaplate-file-when-having-with-items-and-array/38630)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [December 16, 2023, 12:23pm UTC](https://forum.ansible.com/t/generate-temaplate-file-when-having-with-items-and-array/38630 "2023-12-16T12:23:04Z")

</div>

I need to generate few files based on jinja template , In the first run it is easy when I need to generate single file per user Basic input: user: { username: user1, action: get , file: 1.txt } { username: user2, ac…

---

## [Formatting  multiple lines using variable as loop](https://forum.ansible.com/t/formatting-multiple-lines-using-variable-as-loop/38627)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 4\
**Last updated:** [December 16, 2023, 6:25am UTC](https://forum.ansible.com/t/formatting-multiple-lines-using-variable-as-loop/38627 "2023-12-16T06:25:43Z")

</div>

I have a playbook variable output as below debug: msg: “{{my\_var}}}” TASK \[debug\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[localh…

---

## [How to preserve the formatting of DB command execution output in Ansible](https://forum.ansible.com/t/how-to-preserve-the-formatting-of-db-command-execution-output-in-ansible/38629)

<div class="topic-metadata">

**Author:** [@Know\_Your\_Tech](https://forum.ansible.com/u/Know_Your_Tech)\
**Replies:** 0\
**Last updated:** [December 16, 2023, 4:24am UTC](https://forum.ansible.com/t/how-to-preserve-the-formatting-of-db-command-execution-output-in-ansible/38629 "2023-12-16T04:24:01Z")

</div>

Below is my manual command-line DB command execution output: Note: I changed the connection string on purpose… Let me know if you need the correct connection string to check and test anything real time? mongo --quiet -…

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

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