# Ansible Project

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

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

**Page:** 115

---

## [Ansible module "template" support for Jinja2 new class "ChainableUndefined"](https://forum.ansible.com/t/ansible-module-template-support-for-jinja2-new-class-chainableundefined/33378)

<div class="topic-metadata">

**Author:** [@Baeschtu](https://forum.ansible.com/u/Baeschtu)\
**Replies:** 3\
**Last updated:** [July 14, 2020, 8:18pm UTC](https://forum.ansible.com/t/ansible-module-template-support-for-jinja2-new-class-chainableundefined/33378 "2020-07-14T20:18:47Z")

</div>

According to the release notes of Jinja2 Version 2.11.0 (released on 2020-01-27) there is a new class named “ChainableUndefined” to handle undefined variables on multiple levels in Jinja2 templates. Currently, I use a an…

---

## [cisco.ios help](https://forum.ansible.com/t/cisco-ios-help/33394)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 6:13pm UTC](https://forum.ansible.com/t/cisco-ios-help/33394 "2020-07-14T18:13:04Z")

</div>

Hi, I am writing a ansible pb to demonstrate the power of ansible to our NetOps team. I know enough about ansible and cisco switches to get around, but I am stuck on something probably really simple. I am trying to cr…

---

## [Centralized Unix Server File system Management](https://forum.ansible.com/t/centralized-unix-server-file-system-management/33393)

<div class="topic-metadata">

**Author:** [@Avinash\_Jadhav](https://forum.ansible.com/u/Avinash_Jadhav)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 2:10pm UTC](https://forum.ansible.com/t/centralized-unix-server-file-system-management/33393 "2020-07-14T14:10:12Z")

</div>

Hello Ansible User/Team, I am trying to developed Centralized Unix Server File system Management using ansible playbook I need help from all of your team, Below is requirement using ansible Problem Statement - Unavai…

---

## [Need help with registered variable](https://forum.ansible.com/t/need-help-with-registered-variable/33367)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 7\
**Last updated:** [July 14, 2020, 12:10pm UTC](https://forum.ansible.com/t/need-help-with-registered-variable/33367 "2020-07-14T12:10:13Z")

</div>

I have a task output like this: name: Print Response of status resource debug: msg: " {{ result }}" ok: \[node-3\] =\> { “msg”: " {‘msg’: u’All items completed’, ‘changed’: False, ‘results’: \[{‘ansible\_loop\_var’: u’it…

---

## [Extracting values from YAML into Jinja template for Ansible playbook](https://forum.ansible.com/t/extracting-values-from-yaml-into-jinja-template-for-ansible-playbook/33389)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 8:16am UTC](https://forum.ansible.com/t/extracting-values-from-yaml-into-jinja-template-for-ansible-playbook/33389 "2020-07-14T08:16:48Z")

</div>

Here is the link for my question https://stackoverflow.com/questions/62879497/extracting-values-from-yaml-into-jinja-template-for-ansible-playbook Regards, Ameya Agashe

---

## [RH294 ansible](https://forum.ansible.com/t/rh294-ansible/33391)

<div class="topic-metadata">

**Author:** [@rocky\_rns](https://forum.ansible.com/u/rocky_rns)\
**Replies:** 2\
**Last updated:** [July 14, 2020, 8:15am UTC](https://forum.ansible.com/t/rh294-ansible/33391 "2020-07-14T08:15:31Z")

</div>

Hi Team, I am planning for RHCE RHEL8 (RH294) ansible certification. Can someone please let me know in exam do we have access to the ansible documentation website( docs.ansible.com). Kind regards Raja.D

---

## [synchronize same remote directories without ssh using password auth](https://forum.ansible.com/t/synchronize-same-remote-directories-without-ssh-using-password-auth/33387)

<div class="topic-metadata">

**Author:** [@Luca\_remix\_tj\_Lorenz](https://forum.ansible.com/u/Luca_remix_tj_Lorenz)\
**Replies:** 0\
**Last updated:** [July 13, 2020, 12:26pm UTC](https://forum.ansible.com/t/synchronize-same-remote-directories-without-ssh-using-password-auth/33387 "2020-07-13T12:26:34Z")

</div>

Hello, i'm hitting a hidden requirement of the synchronize module, which is sshpass, if you're using password authentication. I'm running this task to align the content of a dir with another. The entire playbook is r…

---

## [Ansible 2.9.10 group\_vars and delegate\_to](https://forum.ansible.com/t/ansible-2-9-10-group-vars-and-delegate-to/33385)

<div class="topic-metadata">

**Author:** [@Sergej\_Pioch](https://forum.ansible.com/u/Sergej_Pioch)\
**Replies:** 0\
**Last updated:** [July 13, 2020, 10:20am UTC](https://forum.ansible.com/t/ansible-2-9-10-group-vars-and-delegate-to/33385 "2020-07-13T10:20:40Z")

</div>

So, my playbooks are finally totally messed up after upgrading to Ansible version 2.9.10. I used a task with delegation inside the playbook to get the hostkey of a network device connection through a bastion host. But th…

---

## [ansible playbook - define data in excel sheets](https://forum.ansible.com/t/ansible-playbook-define-data-in-excel-sheets/33376)

<div class="topic-metadata">

**Author:** [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Replies:** 2\
**Last updated:** [July 12, 2020, 6:36pm UTC](https://forum.ansible.com/t/ansible-playbook-define-data-in-excel-sheets/33376 "2020-07-12T18:36:47Z")

</div>

I have excel file data.xslx and it has two sheets: sheet1: Hostname | Mgmt\_ip | | - | Switch-1 | 10.0.0.1 | Switch-2 | 10.0.0.2 | Switch-3 | 10.0.0.3 | sheet2: Interface | Interface\_IP | Description | | - |…

---

## [create role or just use playbook](https://forum.ansible.com/t/create-role-or-just-use-playbook/33381)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 5:40pm UTC](https://forum.ansible.com/t/create-role-or-just-use-playbook/33381 "2020-07-12T17:40:33Z")

</div>

do I create roles with ansible-galaxy or just use playbook? I got a playbook to install nginx

---

## [Storing nginx variables and using in templates](https://forum.ansible.com/t/storing-nginx-variables-and-using-in-templates/33380)

<div class="topic-metadata">

**Author:** [@Ing\_Chrstopher\_Golde](https://forum.ansible.com/u/Ing_Chrstopher_Golde)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 5:39pm UTC](https://forum.ansible.com/t/storing-nginx-variables-and-using-in-templates/33380 "2020-07-12T17:39:43Z")

</div>

I have two problems. I want to store the variables of both examples in the host\_vars/server\_name.yml file. Here are the raw format of the values that I want to store: (1) nginx log formats: log\_format main '$remote\_a…

---

## [Install CloudEndure Agent](https://forum.ansible.com/t/install-cloudendure-agent/33379)

<div class="topic-metadata">

**Author:** [@Naresh\_Kasula](https://forum.ansible.com/u/Naresh_Kasula)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 11:26am UTC](https://forum.ansible.com/t/install-cloudendure-agent/33379 "2020-07-12T11:26:55Z")

</div>

Hi, Am using CloudEndure for migrating servers to AWS, for this we need to install “Agentinstall” on migrate server so that they both can communicate for further process.

---

## [Waiting for Kubernetes Objects](https://forum.ansible.com/t/waiting-for-kubernetes-objects/33377)

<div class="topic-metadata">

**Author:** [@kameshs](https://forum.ansible.com/u/kameshs)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 8:50am UTC](https://forum.ansible.com/t/waiting-for-kubernetes-objects/33377 "2020-07-12T08:50:12Z")

</div>

While using community.kubernetes.k8s module, I am seeing that wait: yes is cause the resource creation to fail in case of definition is a multi document yaml. Is there a way to wait for multi document k8s operations to c…

---

## [Failed to lock apt fgor exclusive operation](https://forum.ansible.com/t/failed-to-lock-apt-fgor-exclusive-operation/33374)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 5\
**Last updated:** [July 12, 2020, 5:16am UTC](https://forum.ansible.com/t/failed-to-lock-apt-fgor-exclusive-operation/33374 "2020-07-12T05:16:52Z")

</div>

I am trying to install httpd on a ubuntu server but keep getting this error any idea?

---

## [need to check the difference of mtab, before and after server reboot, rhel 7 server](https://forum.ansible.com/t/need-to-check-the-difference-of-mtab-before-and-after-server-reboot-rhel-7-server/33375)

<div class="topic-metadata">

**Author:** [@Shreela\_Roy](https://forum.ansible.com/u/Shreela_Roy)\
**Replies:** 0\
**Last updated:** [July 11, 2020, 8:11pm UTC](https://forum.ansible.com/t/need-to-check-the-difference-of-mtab-before-and-after-server-reboot-rhel-7-server/33375 "2020-07-11T20:11:35Z")

</div>

I want to run a yml via ansible tower. Purpose: to take backup of mtab before and after server reboot and compare the differences to let me know what was mounted before reboot/got mounted post reboot. Which module can he…

---

## [Hashicorp Consul Agent Container Installation Ansible Playbook](https://forum.ansible.com/t/hashicorp-consul-agent-container-installation-ansible-playbook/33373)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 0\
**Last updated:** [July 11, 2020, 12:31pm UTC](https://forum.ansible.com/t/hashicorp-consul-agent-container-installation-ansible-playbook/33373 "2020-07-11T12:31:31Z")

</div>

Hello guys, Do you know where I can find an ansible playbook to install HashiCorp Consul container on Docker or Kubernetes? Could you give me any suggestions for the best way to achieve it?

---

## [Using Ansible Collections in molecule test](https://forum.ansible.com/t/using-ansible-collections-in-molecule-test/33372)

<div class="topic-metadata">

**Author:** [@Kamesh\_Sampath1](https://forum.ansible.com/u/Kamesh_Sampath1)\
**Replies:** 3\
**Last updated:** [July 11, 2020, 6:37am UTC](https://forum.ansible.com/t/using-ansible-collections-in-molecule-test/33372 "2020-07-11T06:37:52Z")

</div>

I am trying to use Ansible collections with my molecule test molecule.yml --- dependency: name: galaxy options: requirements-file: molecule/common/requirements.yml driver: name: delegated options: managed: False ansib…

---

## [Ansible regex to search and replace an IP Address in a line](https://forum.ansible.com/t/ansible-regex-to-search-and-replace-an-ip-address-in-a-line/33369)

<div class="topic-metadata">

**Author:** [@Karn\_Gusain](https://forum.ansible.com/u/Karn_Gusain)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 2:20pm UTC](https://forum.ansible.com/t/ansible-regex-to-search-and-replace-an-ip-address-in-a-line/33369 "2020-07-10T14:20:57Z")

</div>

I have an Ansible playbook where I need to change the Server Name in one line and an Specific IP address in another line, as in this line there are a bunch of IP address separated by a comma. I have the below play which…

---

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

<div class="topic-metadata">

**Author:** [@Pradeep\_Ghorpade](https://forum.ansible.com/u/Pradeep_Ghorpade)\
**Replies:** 0\
**Last updated:** [July 10, 2020, 1:07pm UTC](https://forum.ansible.com/t/jinja2-template-error-in-ansible/33368 "2020-07-10T13:07:19Z")

</div>

Hello, I am searching which packages are available to install on windows using win\_update module. for example I am getting 3 package name. I want print them like below. ServerName Patch Details serverA 2019-08 Securit…

---

## [selecting file based on hostname](https://forum.ansible.com/t/selecting-file-based-on-hostname/33366)

<div class="topic-metadata">

**Author:** [@Krushna\_Chandra\_Sahu](https://forum.ansible.com/u/Krushna_Chandra_Sahu)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 10:49am UTC](https://forum.ansible.com/t/selecting-file-based-on-hostname/33366 "2020-07-10T10:49:17Z")

</div>

Hi Team, I need a playbook to update the sudoer file based on os distribution. I have written below code but it is failing. name: Copy sudoers files copy: src: files/{{ file\_name }} dest: /etc/sudoers validate: /u…

---

## [Need help in polling the ansible task](https://forum.ansible.com/t/need-help-in-polling-the-ansible-task/33358)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 5:36am UTC](https://forum.ansible.com/t/need-help-in-polling-the-ansible-task/33358 "2020-07-10T05:36:34Z")

</div>

Hi Geeks , I have a task as below which returns me some data. I want to continuously poll this request until I get a specific attribute in response as true. Here is the response from the playbook sample1.yml: {“\_id”:“…

---

## [How to declare a list of lists of lists](https://forum.ansible.com/t/how-to-declare-a-list-of-lists-of-lists/33363)

<div class="topic-metadata">

**Author:** [@John\_Maag](https://forum.ansible.com/u/John_Maag)\
**Replies:** 4\
**Last updated:** [July 10, 2020, 12:06am UTC](https://forum.ansible.com/t/how-to-declare-a-list-of-lists-of-lists/33363 "2020-07-10T00:06:33Z")

</div>

I need to set up a list of volume groups. for each volume group there will be an attribute name and an attribute state. under each volume group is a list of one or more volumes. For each volume, there are attributes name…

---

## [installing flatpaks](https://forum.ansible.com/t/installing-flatpaks/33364)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 11:23pm UTC](https://forum.ansible.com/t/installing-flatpaks/33364 "2020-07-09T23:23:05Z")

</div>

I am trying to install a list of flatpaks on my Fedora Workstation and getting the following errors when I run my playbook: TASK \[Install the flatpak packages from flathub for current user\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [NameError: global name 'fw offline' is not defined](https://forum.ansible.com/t/nameerror-global-name-fw-offline-is-not-defined/33352)

<div class="topic-metadata">

**Author:** [@knowosielski-SJSU](https://forum.ansible.com/u/knowosielski-SJSU)\
**Replies:** 7\
**Last updated:** [July 9, 2020, 7:12pm UTC](https://forum.ansible.com/t/nameerror-global-name-fw-offline-is-not-defined/33352 "2020-07-09T19:12:06Z")

</div>

I’m working on Ubuntu 18.04.4 LTS using ansible 2.5.1. I’m trying to get this project to work as its exactly what I’m trying to do. I’ve stumbled through and did some troubleshooting and I managed to get the pod create…

---

## [Playbook invocation/role invocation if some tags are specified with some values](https://forum.ansible.com/t/playbook-invocation-role-invocation-if-some-tags-are-specified-with-some-values/33361)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 0\
**Last updated:** [July 9, 2020, 3:29pm UTC](https://forum.ansible.com/t/playbook-invocation-role-invocation-if-some-tags-are-specified-with-some-values/33361 "2020-07-09T15:29:29Z")

</div>

Hi, Please find below my Ansible role and playbook which calls that role to deploy cloudformation template on to an AWS account: main.yml file of patching-cf-ssm role cat main.yml --- - name: Check the mandatory par…

---

## [What is the ansible\_network\_os for FXOS devices.](https://forum.ansible.com/t/what-is-the-ansible-network-os-for-fxos-devices/33357)

<div class="topic-metadata">

**Author:** [@Susethira\_Ramamoorth](https://forum.ansible.com/u/Susethira_Ramamoorth)\
**Replies:** 1\
**Last updated:** [July 9, 2020, 9:28am UTC](https://forum.ansible.com/t/what-is-the-ansible-network-os-for-fxos-devices/33357 "2020-07-09T09:28:29Z")

</div>

Is there any way to automate the FXOS Firepower 2130 devices using ansible? Please reply me for the same

---

## [cisco ios connect ssh error](https://forum.ansible.com/t/cisco-ios-connect-ssh-error/33337)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 4\
**Last updated:** [July 9, 2020, 9:28am UTC](https://forum.ansible.com/t/cisco-ios-connect-ssh-error/33337 "2020-07-09T09:28:24Z")

</div>

I connect cisco switch run playbook show error msg please help thanks. fatal: \[tpesw-01\]: FAILED! =\> { “ansible\_facts”: {}, “changed”: false, “failed\_modules”: { “ios\_facts”: { “exception”: “WARNING: The below tra…

---

## [Question re: Can Ansible boot an ISO file on a bare metal server?](https://forum.ansible.com/t/question-re-can-ansible-boot-an-iso-file-on-a-bare-metal-server/33353)

<div class="topic-metadata">

**Author:** [@DevOps\_Automation](https://forum.ansible.com/u/DevOps_Automation)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 6:10am UTC](https://forum.ansible.com/t/question-re-can-ansible-boot-an-iso-file-on-a-bare-metal-server/33353 "2020-07-09T06:10:22Z")

</div>

Hi, I want to automate the physical server provisioning and build process. Can anyone please let me know that, does Ansible can boot an ISO file on a bare metal server? 1. If yes, can you please explain how the connect…

---

## [ansible debug troubleshooting - script failing](https://forum.ansible.com/t/ansible-debug-troubleshooting-script-failing/33354)

<div class="topic-metadata">

**Author:** [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Replies:** 4\
**Last updated:** [July 9, 2020, 5:59am UTC](https://forum.ansible.com/t/ansible-debug-troubleshooting-script-failing/33354 "2020-07-09T05:59:58Z")

</div>

Hello, I am new to ansible and its troubleshooting. my ansible script is failing. below is output. could you advise why is the script failing? \<10.10.100.59\> attempting to start connection \<10.10.100.59\> using connecti…

---

## [Ansible-lint error](https://forum.ansible.com/t/ansible-lint-error/33347)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 2:25am UTC](https://forum.ansible.com/t/ansible-lint-error/33347 "2020-07-09T02:25:29Z")

</div>

Hi Team I get below error when I run ansible-lint. Any clue why it’s throwing error 0.55s$ ansible-lint . 231Traceback (most recent call last): 232 File “/home/travis/virtualenv/python2.7.15/bin/ansible-lint”, line 1…

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

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