# Ansible Project

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

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

**Page:** 131

---

## [yum repolist -v Output to Vars/Dict and use the data](https://forum.ansible.com/t/yum-repolist-v-output-to-vars-dict-and-use-the-data/32697)

<div class="topic-metadata">

**Author:** [@Spoonless](https://forum.ansible.com/u/Spoonless)\
**Replies:** 7\
**Last updated:** [April 21, 2020, 9:01pm UTC](https://forum.ansible.com/t/yum-repolist-v-output-to-vars-dict-and-use-the-data/32697 "2020-04-21T21:01:58Z")

</div>

Hi all, I am having some difficulty in getting my head around the use of variables, facts and dicts. The Ansible yum module does not give me output from an equivalent yum repolist -v command, so I am using shell for th…

---

## [How to replace IP using nios\_host\_record](https://forum.ansible.com/t/how-to-replace-ip-using-nios-host-record/32750)

<div class="topic-metadata">

**Author:** [@Naveen\_Chandra\_Sekha](https://forum.ansible.com/u/Naveen_Chandra_Sekha)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 5:14pm UTC](https://forum.ansible.com/t/how-to-replace-ip-using-nios-host-record/32750 "2020-04-21T17:14:10Z")

</div>

As of now we can replace the name only. Is it possible to replace IP on an existing host record? Thanks for your reply

---

## [How to create Multiple Guest Vms Snapshot](https://forum.ansible.com/t/how-to-create-multiple-guest-vms-snapshot/32734)

<div class="topic-metadata">

**Author:** [@Arvind\_Kumar](https://forum.ansible.com/u/Arvind_Kumar)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 4:54pm UTC](https://forum.ansible.com/t/how-to-create-multiple-guest-vms-snapshot/32734 "2020-04-21T16:54:57Z")

</div>

HI, I have Created a playbook to take a snapshot before patching of servers but this playbook has only one Guest\_vm define so it working perfectly for me. - name: Vmware guest snapshot create hosts: test-hypervisor ta…

---

## [Proxmox VM provisioning with ansible - how to run task on created vm?](https://forum.ansible.com/t/proxmox-vm-provisioning-with-ansible-how-to-run-task-on-created-vm/32747)

<div class="topic-metadata">

**Author:** [@Lukasz\_Boczkaja](https://forum.ansible.com/u/Lukasz_Boczkaja)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 12:07pm UTC](https://forum.ansible.com/t/proxmox-vm-provisioning-with-ansible-how-to-run-task-on-created-vm/32747 "2020-04-21T12:07:09Z")

</div>

Hi, I want to create a role that would do all of this tasks: Create vm from template with preconfigured IP address Modify vm parameters Power up and wait for vm to be network reachable Connect to newly creat…

---

## [How to schedule a task which should be run after every 30 mins](https://forum.ansible.com/t/how-to-schedule-a-task-which-should-be-run-after-every-30-mins/32743)

<div class="topic-metadata">

**Author:** [@Samir\_Kothawade](https://forum.ansible.com/u/Samir_Kothawade)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 8:53am UTC](https://forum.ansible.com/t/how-to-schedule-a-task-which-should-be-run-after-every-30-mins/32743 "2020-04-21T08:53:41Z")

</div>

Hi, I want to execute specified task in ansible playbook after every 30 mins. Task is not just a command, so “at” module does not work in my case or may be I am not doing it in proper way : Here is my play book. Playbo…

---

## [Deprecation of merge hash\_behavior](https://forum.ansible.com/t/deprecation-of-merge-hash-behavior/32746)

<div class="topic-metadata">

**Author:** [@oxedions](https://forum.ansible.com/u/oxedions)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 8:29am UTC](https://forum.ansible.com/t/deprecation-of-merge-hash-behavior/32746 "2020-04-21T08:29:35Z")

</div>

Dear Ansible community, First, I would like to express my thanks for all the work done around Ansible. We are using it each day, and we love it. We even made a whole cluster stack around it! Part is opensource, other p…

---

## [Relation between Ansible and SDN](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732)

<div class="topic-metadata">

**Author:** [@nabil\_hama](https://forum.ansible.com/u/nabil_hama)\
**Replies:** 10\
**Last updated:** [April 21, 2020, 6:05am UTC](https://forum.ansible.com/t/relation-between-ansible-and-sdn/32732 "2020-04-21T06:05:56Z")

</div>

Hello, Please, could explain to me, that is the relation between Ansible and SDN, how it can work together? with what architecture? thanks in advance BR

---

## [LDAP integration with ldap\_entry module.](https://forum.ansible.com/t/ldap-integration-with-ldap-entry-module/30044)

<div class="topic-metadata">

**Author:** [@Nikhil1](https://forum.ansible.com/u/Nikhil1)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 5:17am UTC](https://forum.ansible.com/t/ldap-integration-with-ldap-entry-module/30044 "2020-04-21T05:17:52Z")

</div>

Hi, Am trying to interface with LDAP on Linux and creating a new user. if uid doesn’t exist, then it should ideally create one. However, am getting below error. My ansible playbbok is as below: name: LDAP user check …

---

## [How can I use the ip in a playbook when inventory has ansible\_host](https://forum.ansible.com/t/how-can-i-use-the-ip-in-a-playbook-when-inventory-has-ansible-host/32740)

<div class="topic-metadata">

**Author:** [@Scott\_Fella](https://forum.ansible.com/u/Scott_Fella)\
**Replies:** 5\
**Last updated:** [April 21, 2020, 5:09am UTC](https://forum.ansible.com/t/how-can-i-use-the-ip-in-a-playbook-when-inventory-has-ansible-host/32740 "2020-04-21T05:09:40Z")

</div>

Currently trying to see if there is a way I can grab the ip defined in the ansible\_host and use that in a playbook. I know there is inventory\_hostaname, but these for example are not in dns. hosts inventory example: \[a…

---

## [Concatenate strings using with\_items and assign to a variable in Ansible](https://forum.ansible.com/t/concatenate-strings-using-with-items-and-assign-to-a-variable-in-ansible/24015)

<div class="topic-metadata">

**Author:** [@charan.sevakula](https://forum.ansible.com/u/charan.sevakula)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 4:39am UTC](https://forum.ansible.com/t/concatenate-strings-using-with-items-and-assign-to-a-variable-in-ansible/24015 "2020-04-21T04:39:37Z")

</div>

I need to save two 2 IPs to a variable in a vars\_file when launching ec2\_instances, which are used later during deployment. This is how I am saving a single server ip: - name: Save server public IP to vars file linei…

---

## [fortigate backup cfg](https://forum.ansible.com/t/fortigate-backup-cfg/32741)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 3:29am UTC](https://forum.ansible.com/t/fortigate-backup-cfg/32741 "2020-04-21T03:29:29Z")

</div>

Dear All: I have some problem， I ran ansible fortigate backup cfg it’s file have in path but ansible have error msg { “msg”: “Failed while reading configuration backup”} I don’t know what happened This is my ansible …

---

## [Help with a Windows target node](https://forum.ansible.com/t/help-with-a-windows-target-node/32683)

<div class="topic-metadata">

**Author:** [@NoobSkywalker](https://forum.ansible.com/u/NoobSkywalker)\
**Replies:** 3\
**Last updated:** [April 20, 2020, 5:05pm UTC](https://forum.ansible.com/t/help-with-a-windows-target-node/32683 "2020-04-20T17:05:02Z")

</div>

---

## [REST API to add host to inventory for Ansible Tower is Not working!](https://forum.ansible.com/t/rest-api-to-add-host-to-inventory-for-ansible-tower-is-not-working/32714)

<div class="topic-metadata">

**Author:** [@Vivek\_Mandal](https://forum.ansible.com/u/Vivek_Mandal)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 5:03pm UTC](https://forum.ansible.com/t/rest-api-to-add-host-to-inventory-for-ansible-tower-is-not-working/32714 "2020-04-20T17:03:57Z")

</div>

Hi, I have been trying to execute a REST API to Add a host to an inventory.Below is the API. /api/v2/inventories/{id}/hosts/ Unfortunately, This API doesn't work. It gives the response as 200(Ok). But only display…

---

## [I can read the key from KV but cannot pass it on as a private key.](https://forum.ansible.com/t/i-can-read-the-key-from-kv-but-cannot-pass-it-on-as-a-private-key/32738)

<div class="topic-metadata">

**Author:** [@Ali\_Shaik](https://forum.ansible.com/u/Ali_Shaik)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 3:34pm UTC](https://forum.ansible.com/t/i-can-read-the-key-from-kv-but-cannot-pass-it-on-as-a-private-key/32738 "2020-04-20T15:34:57Z")

</div>

At the time of running the playbook, ansible should be able to source the key from Azure Key Vault and use that key to log in to the hosts. With managed keys in KV it is possible to capture the key at the run time, but …

---

## [DNS Update (AD)](https://forum.ansible.com/t/dns-update-ad/32737)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 2:51pm UTC](https://forum.ansible.com/t/dns-update-ad/32737 "2020-04-20T14:51:53Z")

</div>

Doesn’t the win\_dns\_record module just do everything already? Just one task and be done with it?

---

## [Loop functionality is failing when i use add\_host module inventory in other playbook](https://forum.ansible.com/t/loop-functionality-is-failing-when-i-use-add-host-module-inventory-in-other-playbook/32715)

<div class="topic-metadata">

**Author:** [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 12:07pm UTC](https://forum.ansible.com/t/loop-functionality-is-failing-when-i-use-add-host-module-inventory-in-other-playbook/32715 "2020-04-20T12:07:12Z")

</div>

Hi Ansible team, I am using the CSV file as below for nfs volume migration as we have 1000 servers with 100 volumes. Hence, i would like to make to host inventory using add\_host file instead using inventory file. Howeve…

---

## [win\_regedit software restriction HKCU](https://forum.ansible.com/t/win-regedit-software-restriction-hkcu/32735)

<div class="topic-metadata">

**Author:** [@Kumaresh\_kulal](https://forum.ansible.com/u/Kumaresh_kulal)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 11:34am UTC](https://forum.ansible.com/t/win-regedit-software-restriction-hkcu/32735 "2020-04-20T11:34:53Z")

</div>

I am working on win\_regedit playbook to restrict software. So far the win\_regedit playbook gets created for HKEY\_LOCAL\_MACHINE below is the playbook:

---

## [How generate dynamic host file with only IP of concrete vendor (by MAC)](https://forum.ansible.com/t/how-generate-dynamic-host-file-with-only-ip-of-concrete-vendor-by-mac/32731)

<div class="topic-metadata">

**Author:** [@Michal\_Siman](https://forum.ansible.com/u/Michal_Siman)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 11:33am UTC](https://forum.ansible.com/t/how-generate-dynamic-host-file-with-only-ip-of-concrete-vendor-by-mac/32731 "2020-04-20T11:33:08Z")

</div>

Hello to everybody. I would like run ansible playbook on all RPi (raspberry) in our network (at this moment we have around 300 pieces). All RPi have a IP dynamic from DHCP server. My idea is scann complete network found …

---

## [How to define a register per server](https://forum.ansible.com/t/how-to-define-a-register-per-server/32733)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 11:18am UTC](https://forum.ansible.com/t/how-to-define-a-register-per-server/32733 "2020-04-20T11:18:54Z")

</div>

Hi, Have a task that disables Ipv6. The task should run only if the ipv6 folder exists. In order to implement the above, I have 2 tasks, the first task checks if a folder exists and saves the output to a register, the…

---

## [After failed task on 99% of my server  , the rest of the playbook is running only on the 1% servers that passed the tasks](https://forum.ansible.com/t/after-failed-task-on-99-of-my-server-the-rest-of-the-playbook-is-running-only-on-the-1-servers-that-passed-the-tasks/32730)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 6:52am UTC](https://forum.ansible.com/t/after-failed-task-on-99-of-my-server-the-rest-of-the-playbook-is-running-only-on-the-1-servers-that-passed-the-tasks/32730 "2020-04-20T06:52:41Z")

</div>

Hi , I have a main playbook that uses “include” to call other playbooks. In one of the playbooks, I have 5 tasks. The second task falls on all my servers except for one server - From that point, the entire playbook (ma…

---

## [How to mix a reboot handler with a service restart handler in the same Ansible playbook?](https://forum.ansible.com/t/how-to-mix-a-reboot-handler-with-a-service-restart-handler-in-the-same-ansible-playbook/32729)

<div class="topic-metadata">

**Author:** [@Ricardo\_Amaral](https://forum.ansible.com/u/Ricardo_Amaral)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 5:53pm UTC](https://forum.ansible.com/t/how-to-mix-a-reboot-handler-with-a-service-restart-handler-in-the-same-ansible-playbook/32729 "2020-04-19T17:53:20Z")

</div>

I’m writing an Ansible playbook to set up my Raspberry Pi so that I can keep a versioned configuration and a way for me to quickly get a Pi up and running in case I need to reset it or start from scratch. This playbook …

---

## [How to change remote hosts' terminal screen size/resolution in Ansible](https://forum.ansible.com/t/how-to-change-remote-hosts-terminal-screen-size-resolution-in-ansible/32724)

<div class="topic-metadata">

**Author:** [@Samir\_Kothawade](https://forum.ansible.com/u/Samir_Kothawade)\
**Replies:** 15\
**Last updated:** [April 19, 2020, 7:00am UTC](https://forum.ansible.com/t/how-to-change-remote-hosts-terminal-screen-size-resolution-in-ansible/32724 "2020-04-19T07:00:44Z")

</div>

Hi, Here is the brief about scenario: login to Debian host machine using ansible Go to corresponding directory where the binary is and execute that binary. (This binary is written in c and C++. After execution it ask …

---

## [Ansible-playbook](https://forum.ansible.com/t/ansible-playbook/32728)

<div class="topic-metadata">

**Author:** [@Orkhan\_Mammadov](https://forum.ansible.com/u/Orkhan_Mammadov)\
**Replies:** 1\
**Last updated:** [April 19, 2020, 12:04am UTC](https://forum.ansible.com/t/ansible-playbook/32728 "2020-04-19T00:04:08Z")

</div>

Hi guys, I have created file under /etc/sudoers.d/ directory with this entry: ansible ALL=(ALL) NOPASSWD:ALL and copied to managed hosts in order to install some service such as vsftpd on those hosts. I can ssh and ins…

---

## [Module name not misspelled, but didn't exist yet](https://forum.ansible.com/t/module-name-not-misspelled-but-didnt-exist-yet/32727)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [April 18, 2020, 8:31pm UTC](https://forum.ansible.com/t/module-name-not-misspelled-but-didnt-exist-yet/32727 "2020-04-18T20:31:19Z")

</div>

Hi The "misspelled module name" issue seems to be a recurring one. In the majority of cases the spelling is actually correct, it's just that that module didn't exist yet in the version of ansible that raises the err…

---

## [Try to put 1 Ansible facts from multiple servers into one list](https://forum.ansible.com/t/try-to-put-1-ansible-facts-from-multiple-servers-into-one-list/32722)

<div class="topic-metadata">

**Author:** [@gregor](https://forum.ansible.com/u/gregor)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 5:00pm UTC](https://forum.ansible.com/t/try-to-put-1-ansible-facts-from-multiple-servers-into-one-list/32722 "2020-04-18T17:00:28Z")

</div>

I feel this should be easy. I’m trying to put a fact I set on each server into one central list. sat\_id is the Big List sat\_id\_raw is the variable that I set earlier in the automation. What am I missing here? Thanks…

---

## [Task Status at Playbook runtime](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726)

<div class="topic-metadata">

**Author:** [@Ashish\_Sagar](https://forum.ansible.com/u/Ashish_Sagar)\
**Replies:** 3\
**Last updated:** [April 18, 2020, 4:50pm UTC](https://forum.ansible.com/t/task-status-at-playbook-runtime/32726 "2020-04-18T16:50:42Z")

</div>

Hi Folks, Is there anyway to get specific Task status like Changed, ignored or failed during Playbook runtime in synchronous mode ? Thanks Ashish

---

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

<div class="topic-metadata">

**Author:** [@George\_James](https://forum.ansible.com/u/George_James)\
**Replies:** 6\
**Last updated:** [April 18, 2020, 2:56pm UTC](https://forum.ansible.com/t/failed-to-lock-apt-for-exclusive-operation/32725 "2020-04-18T14:56:00Z")

</div>

I create a new user using ansible called nginx, nginx is part of the sudo group a, but when I try to do an apt install with this user I get the below error : FAILED! =\> {"changed": false, "msg": "Failed to lock apt for …

---

## [how to use suexec su in ansible](https://forum.ansible.com/t/how-to-use-suexec-su-in-ansible/32721)

<div class="topic-metadata">

**Author:** [@Pradeep\_Tiwari](https://forum.ansible.com/u/Pradeep_Tiwari)\
**Replies:** 1\
**Last updated:** [April 18, 2020, 8:40am UTC](https://forum.ansible.com/t/how-to-use-suexec-su-in-ansible/32721 "2020-04-18T08:40:00Z")

</div>

Hi All, I did look at various privilege escalation tools available but i dont see suexec listed there. Could you please guide me how to achieve this become method

---

## [Combine 2 dictionary in ansible / jinja2 (simple)](https://forum.ansible.com/t/combine-2-dictionary-in-ansible-jinja2-simple/32723)

<div class="topic-metadata">

**Author:** [@Tom\_Cheung](https://forum.ansible.com/u/Tom_Cheung)\
**Replies:** 0\
**Last updated:** [April 18, 2020, 5:47am UTC](https://forum.ansible.com/t/combine-2-dictionary-in-ansible-jinja2-simple/32723 "2020-04-18T05:47:12Z")

</div>

Hi friends, I want to use ansible to merge below 2 dictionary to become 1. I have been stucking for few days already. Headache. I have 2 variables now. 1. variable “my\_directories”: { "directoryA": \[ "/bar/foo/file1…

---

## [Ansible invoking aws\_s3 windows host in block/rescue failed error which hard to understand](https://forum.ansible.com/t/ansible-invoking-aws-s3-windows-host-in-block-rescue-failed-error-which-hard-to-understand/32712)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 6\
**Last updated:** [April 17, 2020, 8:13pm UTC](https://forum.ansible.com/t/ansible-invoking-aws-s3-windows-host-in-block-rescue-failed-error-which-hard-to-understand/32712 "2020-04-17T20:13:09Z")

</div>

this block working fine in Linux ! i trying to use aws\_s3 to download package and using fall back to download from web if its fail but im getting error which is hard to understand and pin point the couse of the error : …

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

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