# Ansible Project

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

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

**Page:** 59

---

## [Encrypt files on remote host](https://forum.ansible.com/t/encrypt-files-on-remote-host/36035)

<div class="topic-metadata">

**Author:** [@Roman\_Steinhart](https://forum.ansible.com/u/Roman_Steinhart)\
**Replies:** 4\
**Last updated:** [December 1, 2021, 12:31pm UTC](https://forum.ansible.com/t/encrypt-files-on-remote-host/36035 "2021-12-01T12:31:53Z")

</div>

Hi all, I want to encrypt a file on a remote host. I was looking through the existing modules and couldn’t find any that is able to do that? My use case is that I want to create a backup (tar file) on a remote host, en…

---

## [NRM creation](https://forum.ansible.com/t/nrm-creation/36047)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 0\
**Last updated:** [November 30, 2021, 7:20am UTC](https://forum.ansible.com/t/nrm-creation/36047 "2021-11-30T07:20:30Z")

</div>

Hi, If I need to create a NRM for an object then below which one is a better approach :- Points to be considered is ,The object has 3 different lists which has 3 different keys for each. Creating a single Model with …

---

## [Model creation](https://forum.ansible.com/t/model-creation/36046)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 0\
**Last updated:** [November 30, 2021, 7:06am UTC](https://forum.ansible.com/t/model-creation/36046 "2021-11-30T07:06:57Z")

</div>

Hi, I have seen a generic Model template for creation of Ansible collection which has a config block which contains configurable attributes for the particular object and state has operations supported for the particular…

---

## [\--start-at-task - not working with roles or do I get the syntax wrong?](https://forum.ansible.com/t/start-at-task-not-working-with-roles-or-do-i-get-the-syntax-wrong/36039)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 10:00am UTC](https://forum.ansible.com/t/start-at-task-not-working-with-roles-or-do-i-get-the-syntax-wrong/36039 "2021-11-29T10:00:16Z")

</div>

hy everybody, I am trying a barman installation via Ansible which makes use of 4 roles. Now I want to skip most of the tasks and utilize --start.at-task “name of a task”. I am running into a ‘task not found’ error. I …

---

## [Shared Playbooks best practices](https://forum.ansible.com/t/shared-playbooks-best-practices/36037)

<div class="topic-metadata">

**Author:** [@Alex\_Price](https://forum.ansible.com/u/Alex_Price)\
**Replies:** 2\
**Last updated:** [November 27, 2021, 10:45pm UTC](https://forum.ansible.com/t/shared-playbooks-best-practices/36037 "2021-11-27T22:45:16Z")

</div>

Hi Im very new to Ansible and I’m planning to use it to manage a number of windows servers. I have setup Ansible using Debian and I have created a few test playbooks but where is the best place to store shared playbook…

---

## [Ansible 4.9.0 has been released](https://forum.ansible.com/t/ansible-4-9-0-has-been-released/36031)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [November 24, 2021, 8:24pm UTC](https://forum.ansible.com/t/ansible-4-9-0-has-been-released/36031 "2021-11-24T20:24:38Z")

</div>

Hi all, We're happy to announce that the ansible-4.9.0 package has been released to PyPi: https://pypi.org/project/ansible/4.9.0/ This new version contains bug fixes as well as new, backwards compatible features in …

---

## [Ansible 5.0.0rc1 available for testing](https://forum.ansible.com/t/ansible-5-0-0rc1-available-for-testing/36029)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 4:46pm UTC](https://forum.ansible.com/t/ansible-5-0-0rc1-available-for-testing/36029 "2021-11-23T16:46:23Z")

</div>

Hi all, We're happy to announce that the Ansible 5.0.0rc1 package is now available for testing ! Unless there are issues with this version, it will be released as Ansible 5.0.0 on 2021-11-30. This version is based o…

---

## [become root user using custom command in ansible](https://forum.ansible.com/t/become-root-user-using-custom-command-in-ansible/36026)

<div class="topic-metadata">

**Author:** [@Hanumantha\_Reddy\_Bas](https://forum.ansible.com/u/Hanumantha_Reddy_Bas)\
**Replies:** 3\
**Last updated:** [November 23, 2021, 2:28pm UTC](https://forum.ansible.com/t/become-root-user-using-custom-command-in-ansible/36026 "2021-11-23T14:28:20Z")

</div>

Hello All, In target server need to run a command like “mcs cmh” which prompts for password to become root user… how can I achieve the same in become method? Thanks, BHR.

---

## [persistent cache while using inventory\_plugin with python](https://forum.ansible.com/t/persistent-cache-while-using-inventory-plugin-with-python/36027)

<div class="topic-metadata">

**Author:** [@steve\_missoh](https://forum.ansible.com/u/steve_missoh)\
**Replies:** 2\
**Last updated:** [November 23, 2021, 1:44pm UTC](https://forum.ansible.com/t/persistent-cache-while-using-inventory-plugin-with-python/36027 "2021-11-23T13:44:10Z")

</div>

Hi all, Can anyone point me to good resource detailing how to make use of jsonfile cache plugin in order to make it work with my custom inventory plugin (written in python) ? HELP !

---

## [Create a playbook to copy local directory to s3 bucket](https://forum.ansible.com/t/create-a-playbook-to-copy-local-directory-to-s3-bucket/36024)

<div class="topic-metadata">

**Author:** [@Sumit\_Debnath](https://forum.ansible.com/u/Sumit_Debnath)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 9:14am UTC](https://forum.ansible.com/t/create-a-playbook-to-copy-local-directory-to-s3-bucket/36024 "2021-11-23T09:14:20Z")

</div>

I have some directory which i want to copy on s3 bucket using aws s3 module ansible i have tried this aws\_s3: aws\_secret\_key: “{{ AWS\_SECRET\_KEY }}” aws\_access\_key: “{{ AWS\_ACCESS\_KEY }}” bucket: “{{ BUCKET }}” obje…

---

## [Keeping directory content in sync](https://forum.ansible.com/t/keeping-directory-content-in-sync/36025)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 2\
**Last updated:** [November 22, 2021, 8:14pm UTC](https://forum.ansible.com/t/keeping-directory-content-in-sync/36025 "2021-11-22T20:14:07Z")

</div>

I am working on a role for work, and it needs to keep the source directory ( that lives on the ansible controlnode ), and the destination ( lives on teh remote ) in sync. I know that the copy module can keep the changes/…

---

## [how fetch remore server /etc/ directories using ansible](https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 2\
**Last updated:** [November 22, 2021, 5:09pm UTC](https://forum.ansible.com/t/how-fetch-remore-server-etc-directories-using-ansible/36019 "2021-11-22T17:09:48Z")

</div>

how fetch remore server /etc/ directories using ansible I tried using fetch module but it only does with files. We need exactly same as what fetch doing but with all the files and directories. on control machine we exp…

---

## [Calculate partition space used in jinja](https://forum.ansible.com/t/calculate-partition-space-used-in-jinja/36016)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 3\
**Last updated:** [November 22, 2021, 1:53pm UTC](https://forum.ansible.com/t/calculate-partition-space-used-in-jinja/36016 "2021-11-22T13:53:38Z")

</div>

I have a playbook that uses gather facts, then I use the ansible\_mounts fact in a jinja2 template. In this template, I can print out each partition, the total size and total available. What I’d like to do is to also calc…

---

## [How to set hostname with running number](https://forum.ansible.com/t/how-to-set-hostname-with-running-number/36020)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [November 22, 2021, 8:19am UTC](https://forum.ansible.com/t/how-to-set-hostname-with-running-number/36020 "2021-11-22T08:19:30Z")

</div>

Hi, In my inventory file i have 3 server, I need to set the hostname including prefix1-3 web1 web2 web3 Inventory fie: \[web\] 192.168.0.47 192.168.0.48 192.168.0.49 Playbook hosts: web become: true any\_e…

---

## [Regarding Issue 44013 - Junk after JSON on Termination](https://forum.ansible.com/t/regarding-issue-44013-junk-after-json-on-termination/29407)

<div class="topic-metadata">

**Author:** [@Randall\_Becker](https://forum.ansible.com/u/Randall_Becker)\
**Replies:** 1\
**Last updated:** [November 21, 2021, 3:48am UTC](https://forum.ansible.com/t/regarding-issue-44013-junk-after-json-on-termination/29407 "2021-11-21T03:48:15Z")

</div>

G’day. I was looking at this particular closed case, https://github.com/ansible/ansible/issues/44013. In particular, the HPE NonStop platform’s SSH always reports a termination message for SSH sessions that results in a…

---

## [Gather Data using ansible playbook](https://forum.ansible.com/t/gather-data-using-ansible-playbook/36018)

<div class="topic-metadata">

**Author:** [@Abhiroxxx](https://forum.ansible.com/u/Abhiroxxx)\
**Replies:** 6\
**Last updated:** [November 21, 2021, 2:08am UTC](https://forum.ansible.com/t/gather-data-using-ansible-playbook/36018 "2021-11-21T02:08:19Z")

</div>

Hello Guys, Can someone let me know how can we gather filesystem extension from one task and how can we use that result as variable in next task in ansible playbook.? Thanks in advance… Regard’s Abhi

---

## [Create and attach additional Azure Nic](https://forum.ansible.com/t/create-and-attach-additional-azure-nic/36017)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 10:32pm UTC](https://forum.ansible.com/t/create-and-attach-additional-azure-nic/36017 "2021-11-19T22:32:09Z")

</div>

How can we add additional Azure NICs to a VM , while it is being built. Sometimes we have a need for more than 1 NIC to be used to a VM, being built. Current code for name: Create a network interface with dns servers …

---

## [az modules with limited configuration](https://forum.ansible.com/t/az-modules-with-limited-configuration/36013)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 7:28am UTC](https://forum.ansible.com/t/az-modules-with-limited-configuration/36013 "2021-11-19T07:28:58Z")

</div>

Hello All In azure.azcollection.azure\_rm\_storageaccount module, I am looking for below configuration but cant find in the documentation. Enable blob change feed: Yes Enable hierarchical namespace: Yes why az modules …

---

## [I would like to know how can I disable a Snapshot\_policy to a NetApp Volume](https://forum.ansible.com/t/i-would-like-to-know-how-can-i-disable-a-snapshot-policy-to-a-netapp-volume/36012)

<div class="topic-metadata">

**Author:** [@Imanol\_Fontaina\_Ferv](https://forum.ansible.com/u/Imanol_Fontaina_Ferv)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 7:17am UTC](https://forum.ansible.com/t/i-would-like-to-know-how-can-i-disable-a-snapshot-policy-to-a-netapp-volume/36012 "2021-11-19T07:17:17Z")

</div>

Hi, I’m working with NetApp volumes, the netapp.ontap collection and their modules. I’m unable to see what is the way to set a volume without snapshot\_policy. I have seen the netapp command “vol nosnap=on vol\_name”. In…

---

## [What all things are been installed in isolated node in ansible tower to execute the jobs?](https://forum.ansible.com/t/what-all-things-are-been-installed-in-isolated-node-in-ansible-tower-to-execute-the-jobs/36006)

<div class="topic-metadata">

**Author:** [@Komal\_Suthar](https://forum.ansible.com/u/Komal_Suthar)\
**Replies:** 2\
**Last updated:** [November 19, 2021, 3:52am UTC](https://forum.ansible.com/t/what-all-things-are-been-installed-in-isolated-node-in-ansible-tower-to-execute-the-jobs/36006 "2021-11-19T03:52:31Z")

</div>

What all things are been installed in isolated node in ansible tower to execute the jobs as we don’t install the tower in the Isolated node Itself and still the controller give the jobs to run so what are that all things…

---

## [Access expiration date for a user](https://forum.ansible.com/t/access-expiration-date-for-a-user/36000)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 9\
**Last updated:** [November 19, 2021, 1:04am UTC](https://forum.ansible.com/t/access-expiration-date-for-a-user/36000 "2021-11-19T01:04:00Z")

</div>

I’m using the freeipa APIs in a playbook to get a user’s LDAP information. I can get the krbpasswordexpiration fine: “krbpasswordexpiration”: \[ { “datetime”: “20220207191401Z” } But I can’t figure out how to access …

---

## [Ansible occasionally crashes during task execution](https://forum.ansible.com/t/ansible-occasionally-crashes-during-task-execution/36010)

<div class="topic-metadata">

**Author:** [@Maksym\_Iliev](https://forum.ansible.com/u/Maksym_Iliev)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 8:43pm UTC](https://forum.ansible.com/t/ansible-occasionally-crashes-during-task-execution/36010 "2021-11-18T20:43:57Z")

</div>

When running a task which runs a script in Ansible 2.9.27 it occasionally crashes during the execution. This issue is intermittent. A GitHub issue has been created for this bug: (1) Ansible occasionally crashes during t…

---

## [Deploying GCP Instance using Ansible](https://forum.ansible.com/t/deploying-gcp-instance-using-ansible/36009)

<div class="topic-metadata">

**Author:** [@Xavier](https://forum.ansible.com/u/Xavier)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 7:06pm UTC](https://forum.ansible.com/t/deploying-gcp-instance-using-ansible/36009 "2021-11-18T19:06:44Z")

</div>

Hello All, To start I am a newbie & started to learn Ansible with Jeff Geerlings video on youtube soo excuse me if I dont always understand on the first shot. I’ve been trying to deploy gcp instances using the ansible …

---

## [Ansible not working with remote Python virtual environments on Mac](https://forum.ansible.com/t/ansible-not-working-with-remote-python-virtual-environments-on-mac/35989)

<div class="topic-metadata">

**Author:** [@Mike\_Spitzer](https://forum.ansible.com/u/Mike_Spitzer)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 5:32pm UTC](https://forum.ansible.com/t/ansible-not-working-with-remote-python-virtual-environments-on-mac/35989 "2021-11-18T17:32:52Z")

</div>

All actions with the pip module (other than creating the venv) apply to the user context and not the venv on a Mac. The details below are for the pip module. Running the commands when logged into the system works as expe…

---

## [lineinfile in lxc\_container?](https://forum.ansible.com/t/lineinfile-in-lxc-container/36007)

<div class="topic-metadata">

**Author:** [@Richard\_Hector](https://forum.ansible.com/u/Richard_Hector)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 12:42pm UTC](https://forum.ansible.com/t/lineinfile-in-lxc-container/36007 "2021-11-18T12:42:51Z")

</div>

Hi all, I'm using ansible to set up lxc containers, using delegation to the container host. One task looks like this: - name: add ansible user to sudoers lineinfile: dest: "/var/lib/lxc/{{ inventory\_hostname…

---

## [how to stop ansible from ignoring syntax errors](https://forum.ansible.com/t/how-to-stop-ansible-from-ignoring-syntax-errors/36005)

<div class="topic-metadata">

**Author:** [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 9:35am UTC](https://forum.ansible.com/t/how-to-stop-ansible-from-ignoring-syntax-errors/36005 "2021-11-18T09:35:59Z")

</div>

Hi all, is there a central knob to stop ansible from continuing after a syntax error? Also, it seems that ansible continues after failed tasks in included roles or included tasks. How can I let ansible stop on all tho…

---

## [querry about ansible inventory](https://forum.ansible.com/t/querry-about-ansible-inventory/36003)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 5:59pm UTC](https://forum.ansible.com/t/querry-about-ansible-inventory/36003 "2021-11-17T17:59:49Z")

</div>

Hi Team, how to create customized inventory \[/etc/ansible/hosts\] in such away it should ping both the fqdn and also with the server ip ansible -m ping SERVER IP and also ansible -m ping FQDN

---

## [Error AnsiballZ\_setup.py line 27](https://forum.ansible.com/t/error-ansiballz-setup-py-line-27/35939)

<div class="topic-metadata">

**Author:** [@Jagannath\_Pattar](https://forum.ansible.com/u/Jagannath_Pattar)\
**Replies:** 7\
**Last updated:** [November 17, 2021, 10:16am UTC](https://forum.ansible.com/t/error-ansiballz-setup-py-line-27/35939 "2021-11-17T10:16:46Z")

</div>

Hi, I am getting following error even though I have python 2.7.18 in my host system.Can someone help me to resolve the issue? LAY \[label\_ansible\_yes\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Can't find error in jinja2 expression](https://forum.ansible.com/t/cant-find-error-in-jinja2-expression/36002)

<div class="topic-metadata">

**Author:** [@Axel\_Rau](https://forum.ansible.com/u/Axel_Rau)\
**Replies:** 2\
**Last updated:** [November 17, 2021, 10:05am UTC](https://forum.ansible.com/t/cant-find-error-in-jinja2-expression/36002 "2021-11-17T10:05:39Z")

</div>

Hi all, in a template, I have: data\_directory = '{{ {{ i.data }}/{{ postgresql\_version }}/data }}‘ but I’m getting: "AnsibleError: template error while templating string: expected token ':', got ‚}' In the calling a…

---

## [Feedback Wanted: New table design for Ansible module documentation](https://forum.ansible.com/t/feedback-wanted-new-table-design-for-ansible-module-documentation/36001)

<div class="topic-metadata">

**Author:** [@samccann](https://forum.ansible.com/u/samccann)\
**Replies:** 2\
**Last updated:** [November 16, 2021, 9:06pm UTC](https://forum.ansible.com/t/feedback-wanted-new-table-design-for-ansible-module-documentation/36001 "2021-11-16T21:06:31Z")

</div>

Hi folks - We are experimenting with changing the module documentation tables that appear on docs.ansible.com to make them more compatible with smaller screen sizes. This also impacts how it appears on wider screens so …

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

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