# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=186

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

**Page:** 187

---

## [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

---

## [Two sets of arguments/parameters for one module?](https://forum.ansible.com/t/two-sets-of-arguments-parameters-for-one-module/33365)

<div class="topic-metadata">

**Author:** [@Rory\_G](https://forum.ansible.com/u/Rory_G)\
**Replies:** 4\
**Last updated:** [July 13, 2020, 7:21pm UTC](https://forum.ansible.com/t/two-sets-of-arguments-parameters-for-one-module/33365 "2020-07-13T19:21:03Z")

</div>

Hi all, I’m new to Ansible and a writing a few python network modules. I was wondering if it is possible to write a module that uses one of two different sets of parameters based on a version parameter. For example, I h…

---

## [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.

---

## [Package compatibility with RedHat image](https://forum.ansible.com/t/package-compatibility-with-redhat-image/33324)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 2\
**Last updated:** [July 12, 2020, 10:33am UTC](https://forum.ansible.com/t/package-compatibility-with-redhat-image/33324 "2020-07-12T10:33:19Z")

</div>

Hi Team, We do not have direct internet access to install AWX and also we dont have Centos image for building AWX image, So we are going to build image using RedHat minimal image We want the below packages installed us…

---

## [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…

---

## [Ensuring code executes even if user interrupted](https://forum.ansible.com/t/ensuring-code-executes-even-if-user-interrupted/33371)

<div class="topic-metadata">

**Author:** [@afeller](https://forum.ansible.com/u/afeller)\
**Replies:** 0\
**Last updated:** [July 10, 2020, 6:30pm UTC](https://forum.ansible.com/t/ensuring-code-executes-even-if-user-interrupted/33371 "2020-07-10T18:30:20Z")

</div>

Ansible’s block/rescue and handlers are mechanisms for flow control, however they don’t guarantee execution whenever the control machine is interrupted. Are there any other hooks that signal handling will perform best at…

---

## [Ansible Contributor Survey](https://forum.ansible.com/t/ansible-contributor-survey/33370)

<div class="topic-metadata">

**Author:** [@Carol\_Chen1](https://forum.ansible.com/u/Carol_Chen1)\
**Replies:** 0\
**Last updated:** [July 10, 2020, 3:01pm UTC](https://forum.ansible.com/t/ansible-contributor-survey/33370 "2020-07-10T15:01:21Z")

</div>

Hi everyone! We had a successful Contributor Summit + Hackathon earlier this week (July 6-8). Thank you for your interest/attendance! Here is a Contributor Survey that we have put together: https://www.surveymonkey…

---

## [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…

---

## [Inventory shows different host counts](https://forum.ansible.com/t/inventory-shows-different-host-counts/33340)

<div class="topic-metadata">

**Author:** [@Roman](https://forum.ansible.com/u/Roman)\
**Replies:** 1\
**Last updated:** [July 9, 2020, 4:15pm UTC](https://forum.ansible.com/t/inventory-shows-different-host-counts/33340 "2020-07-09T16:15:38Z")

</div>

My project has “inventory” directory, in which I have 3 files for various environments. If I create separate inventories for each of those files, in total I would have 283 hosts. But if I import inventory as a folder “…

---

## [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…

---

## [Set GRUB\_DEFAULT by kernel version](https://forum.ansible.com/t/set-grub-default-by-kernel-version/33360)

<div class="topic-metadata">

**Author:** [@jabb\_degen](https://forum.ansible.com/u/jabb_degen)\
**Replies:** 0\
**Last updated:** [July 9, 2020, 1:00pm UTC](https://forum.ansible.com/t/set-grub-default-by-kernel-version/33360 "2020-07-09T13:00:59Z")

</div>

Hey guys, I want set the GRUB\_DEFAULT Variable accordingly to a specified kernel version. I’m not quite sure how to do it in an ansible clean way. Pseudo code which explains the desired task (attachments)func (902 Byt…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=185)

[Next page](https://forum.ansible.com/c/archives/31.md?page=187)
