# Archives

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

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

**Page:** 209

---

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

---

## [AWX 10 with multiple instances - webui is not updated while job's running](https://forum.ansible.com/t/awx-10-with-multiple-instances-webui-is-not-updated-while-jobs-running/32646)

<div class="topic-metadata">

**Author:** [@Wilfried\_HUMBERT](https://forum.ansible.com/u/Wilfried_HUMBERT)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 1:52pm UTC](https://forum.ansible.com/t/awx-10-with-multiple-instances-webui-is-not-updated-while-jobs-running/32646 "2020-04-20T13:52:22Z")

</div>

Hi folks, I’ve only been working on Ansible for a short time and I don’t have a production instance yet. It’s all new to me. I’m trying to install AWX/ansible in multiple instances mode. Initially, I based my work on …

---

## [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/32716)

<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/32716 "2020-04-20T12:07:57Z")

</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…

---

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

---

## [Become plugin](https://forum.ansible.com/t/become-plugin/31406)

<div class="topic-metadata">

**Author:** [@Torrpenn356](https://forum.ansible.com/u/Torrpenn356)\
**Replies:** 5\
**Last updated:** [April 19, 2020, 7:11pm UTC](https://forum.ansible.com/t/become-plugin/31406 "2020-04-19T19:11:04Z")

</div>

Hello, I hope, I am posting my question on the right group, if not, please tell me I need to use a dedicated become method and want to know, if it is possible, or, if only the “official” ones are authorized. If it is …

---

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

---

## [need to run powershell script without copying to target host](https://forum.ansible.com/t/need-to-run-powershell-script-without-copying-to-target-host/32717)

<div class="topic-metadata">

**Author:** [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 7:55pm UTC](https://forum.ansible.com/t/need-to-run-powershell-script-without-copying-to-target-host/32717 "2020-04-17T19:55:01Z")

</div>

Hi All, i have machien Ansible running in RHEL 7 Target host: Windows server 2019 i was able run powershell script by copying from RHEL to windows ,working fine name: Copy a single file win\_copy: src: “{{ playboo…

---

## [New Ansible releases 2.9.7, 2.8.11, and 2.7.17 \[Revised\]](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17-revised/32719)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 6:11pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17-revised/32719 "2020-04-17T18:11:30Z")

</div>

This is an updated version of the original release announcement. It has been updated to include CVE details in the “What’s new” section. Hi all- we’re happy to announce that the general release of Ansible 2.9.7, 2.8.1…

---

## [New Ansible releases 2.9.7, 2.8.11, and 2.7.17 \[Revised\]](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17-revised/32718)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 6:11pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-7-2-8-11-and-2-7-17-revised/32718 "2020-04-17T18:11:23Z")

</div>

This is an updated version of the original release announcement. It has been updated to include CVE details in the “What’s new” section. Hi all- we’re happy to announce that the general release of Ansible 2.9.7, 2.8.1…

---

## [\[HOSTVARS\]\[MERGED\] Unexpected behavior with merge variables of different host which are in several groups](https://forum.ansible.com/t/hostvars-merged-unexpected-behavior-with-merge-variables-of-different-host-which-are-in-several-groups/32675)

<div class="topic-metadata">

**Author:** [@Baptiste\_Doublet](https://forum.ansible.com/u/Baptiste_Doublet)\
**Replies:** 5\
**Last updated:** [April 17, 2020, 3:00pm UTC](https://forum.ansible.com/t/hostvars-merged-unexpected-behavior-with-merge-variables-of-different-host-which-are-in-several-groups/32675 "2020-04-17T15:00:30Z")

</div>

Hi Everybody, I have a problem that I can’t resolve on my own. I want to deploy an etcd cluster with postgresql on the same servers I have three servers and this is my inventory file: all: children: etcd\_cluster: # …

---

## [Aruba\_command no output to my Bash](https://forum.ansible.com/t/aruba-command-no-output-to-my-bash/32713)

<div class="topic-metadata">

**Author:** [@Mac](https://forum.ansible.com/u/Mac)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 12:47pm UTC](https://forum.ansible.com/t/aruba-command-no-output-to-my-bash/32713 "2020-04-17T12:47:49Z")

</div>

Hi As a newbie to Ansible i have simple question for my understanding , if do a “show version” via a Playbook on any Network device i will get the output to the bash is started the playbook right ? for Example i to a …

---

## [vpshere: how to change port group for 2nd NIC on VM via ansible](https://forum.ansible.com/t/vpshere-how-to-change-port-group-for-2nd-nic-on-vm-via-ansible/28636)

<div class="topic-metadata">

**Author:** [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 12:32pm UTC](https://forum.ansible.com/t/vpshere-how-to-change-port-group-for-2nd-nic-on-vm-via-ansible/28636 "2020-04-17T12:32:19Z")

</div>

Scenario: VM on ESXi with 2 NICS Network\_adapter1: Fixed port group/VLAN Network\_adapter2: Variable port group/VLAN So all i am trying to achieve with ansible is to modify the port group/VLAN of Network\_adapter2, is t…

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

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