# Ansible Project

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

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

**Page:** 116

---

## [Possible to use more than one hostname/identifier in inventory?](https://forum.ansible.com/t/possible-to-use-more-than-one-hostname-identifier-in-inventory/33348)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 9:00pm UTC](https://forum.ansible.com/t/possible-to-use-more-than-one-hostname-identifier-in-inventory/33348 "2020-07-08T21:00:37Z")

</div>

We gather most of our host inventory using the aws\_ec2 inventory plugin, and from this each host’s private IP address is used as the host identifier. Is there a way we can also gather and use other unique identifiers to …

---

## [add\_host/group\_by how to do sub-groups](https://forum.ansible.com/t/add-host-group-by-how-to-do-sub-groups/33349)

<div class="topic-metadata">

**Author:** [@Chris\_Kiick](https://forum.ansible.com/u/Chris_Kiick)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 8:02pm UTC](https://forum.ansible.com/t/add-host-group-by-how-to-do-sub-groups/33349 "2020-07-08T20:02:10Z")

</div>

Hi, I’m exploring the use of add\_host instead of a rather convoluted dynamic inventory setup. I can create the groups for each host, either by specifying groups in add\_host, or using group\_by. However, these only create…

---

## [User issue while pinging the hosts](https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344)

<div class="topic-metadata">

**Author:** [@Mahesh\_N](https://forum.ansible.com/u/Mahesh_N)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 5:19pm UTC](https://forum.ansible.com/t/user-issue-while-pinging-the-hosts/33344 "2020-07-08T17:19:48Z")

</div>

Facing the below error while logging as my user (mahesh) and performing the actions on service user (service). ERROR: fatal: \[10.0.0.1\]: UNREACHABLE! =\> {“changed”: false, “msg”: “Authentication failure.”, “unreachable…

---

## [Looping CF Templates with items loops and its reporting an error](https://forum.ansible.com/t/looping-cf-templates-with-items-loops-and-its-reporting-an-error/33335)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 4\
**Last updated:** [July 8, 2020, 2:12pm UTC](https://forum.ansible.com/t/looping-cf-templates-with-items-loops-and-its-reporting-an-error/33335 "2020-07-08T14:12:15Z")

</div>

Hello, Here is the tasks/main.yml content roles/patching-cf-ssm/tasks/main.yml --- # tasks file for patching-cf-ssm - name: create a cloudformation stack cloudformation: stack\_name: "ansible-cloudformation" state: "pr…

---

## [Subclassing ansible.utils.display.Display in custom callback plugin](https://forum.ansible.com/t/subclassing-ansible-utils-display-display-in-custom-callback-plugin/33339)

<div class="topic-metadata">

**Author:** [@Pieter\_Voet](https://forum.ansible.com/u/Pieter_Voet)\
**Replies:** 5\
**Last updated:** [July 8, 2020, 1:00pm UTC](https://forum.ansible.com/t/subclassing-ansible-utils-display-display-in-custom-callback-plugin/33339 "2020-07-08T13:00:57Z")

</div>

Hi all, please allow me to ask for any help here… I once wrote a custom callback plugin, where I subclassed ansible.utils.display.Display so I could overrule it’s display() method to manipulate the message to be printe…

---

## [Ansible Command is not completing in playbook](https://forum.ansible.com/t/ansible-command-is-not-completing-in-playbook/33345)

<div class="topic-metadata">

**Author:** [@Jitendra\_Deshmukh](https://forum.ansible.com/u/Jitendra_Deshmukh)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 11:16am UTC](https://forum.ansible.com/t/ansible-command-is-not-completing-in-playbook/33345 "2020-07-08T11:16:15Z")

</div>

Hi have play book to run tcpdump, play run simple command of tcpdump but the command is not getting completed and stuck in play book though command is running sucessfully on remote host but playbook not proceeding to nex…

---

## [expect "Press enter to continue"](https://forum.ansible.com/t/expect-press-enter-to-continue/26033)

<div class="topic-metadata">

**Author:** [@stefano.bianchi](https://forum.ansible.com/u/stefano.bianchi)\
**Replies:** 27\
**Last updated:** [July 8, 2020, 11:15am UTC](https://forum.ansible.com/t/expect-press-enter-to-continue/26033 "2020-07-08T11:15:46Z")

</div>

HI I created an ansble role which install on the target hosts IBM api connect gateways software and enable the service. I would improve this role adding configuration steps. After the installation the APIC gateways ne…

---

## [Booting custom ISO file by ansible hpilo\_boot on a physical server](https://forum.ansible.com/t/booting-custom-iso-file-by-ansible-hpilo-boot-on-a-physical-server/33336)

<div class="topic-metadata">

**Author:** [@DevOps\_Automation](https://forum.ansible.com/u/DevOps_Automation)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 6:04am UTC](https://forum.ansible.com/t/booting-custom-iso-file-by-ansible-hpilo-boot-on-a-physical-server/33336 "2020-07-08T06:04:28Z")

</div>

Hi, Has anyone booted an ISO file through HP ILO by using ansible? If yes, can you please explain how the connection is established between remote and host server. Also the booting procedure. After booting the server …

---

## [Newbie question: Using ansible for runbook automation type of tasks](https://forum.ansible.com/t/newbie-question-using-ansible-for-runbook-automation-type-of-tasks/33343)

<div class="topic-metadata">

**Author:** [@Ravi\_Malghan](https://forum.ansible.com/u/Ravi_Malghan)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 12:37am UTC](https://forum.ansible.com/t/newbie-question-using-ansible-for-runbook-automation-type-of-tasks/33343 "2020-07-08T00:37:53Z")

</div>

I am looking for an application that can be used as a runbook automation tool from a monitoring platform (nagios). From nagios I have the ability to run scripts from the Nagios server. I need to build a simple script tha…

---

## [Conditional wild card usage](https://forum.ansible.com/t/conditional-wild-card-usage/33341)

<div class="topic-metadata">

**Author:** [@sandeep\_athoti](https://forum.ansible.com/u/sandeep_athoti)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 9:35pm UTC](https://forum.ansible.com/t/conditional-wild-card-usage/33341 "2020-07-07T21:35:37Z")

</div>

Is there any way I can use the wild cards or regex in when statements, when: ansible\_distribution\_major\_version|int == 6 or ansible\_fqdn == “test\[0-1\]\[0-9\].example.com” I actually do not want to pass hostname of my ser…

---

## [Ansible playbook is not working on the target host but shows in play recap - OK](https://forum.ansible.com/t/ansible-playbook-is-not-working-on-the-target-host-but-shows-in-play-recap-ok/32030)

<div class="topic-metadata">

**Author:** [@Jimmy1](https://forum.ansible.com/u/Jimmy1)\
**Replies:** 15\
**Last updated:** [July 7, 2020, 4:07pm UTC](https://forum.ansible.com/t/ansible-playbook-is-not-working-on-the-target-host-but-shows-in-play-recap-ok/32030 "2020-07-07T16:07:14Z")

</div>

Nothing changed on the target host, not even rebooted but able to ping and can do a handshake Playbook - PLAY \[windows\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [vmware tools update.completed but shows failed status](https://forum.ansible.com/t/vmware-tools-update-completed-but-shows-failed-status/33332)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 3:33pm UTC](https://forum.ansible.com/t/vmware-tools-update-completed-but-shows-failed-status/33332 "2020-07-07T15:33:55Z")

</div>

I got following to update vmware tools on windows vm

---

## [win\_update to upgrade windows 10 version](https://forum.ansible.com/t/win-update-to-upgrade-windows-10-version/32245)

<div class="topic-metadata">

**Author:** [@Ben\_Lagunilla](https://forum.ansible.com/u/Ben_Lagunilla)\
**Replies:** 3\
**Last updated:** [July 7, 2020, 3:32pm UTC](https://forum.ansible.com/t/win-update-to-upgrade-windows-10-version/32245 "2020-07-07T15:32:39Z")

</div>

Hi, I am using win\_update to install updates using local WSUS server. However, I can’t seem to use win\_update to upgrade windows 10 versions. ‘Upgrades’ category is unknown. Appreciate any help on this. Thanks. – ben

---

## [How to structure variables to distinguish different environments](https://forum.ansible.com/t/how-to-structure-variables-to-distinguish-different-environments/33298)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 2\
**Last updated:** [July 7, 2020, 1:54pm UTC](https://forum.ansible.com/t/how-to-structure-variables-to-distinguish-different-environments/33298 "2020-07-07T13:54:32Z")

</div>

Hello, I want to define a variable for playbook in group\_vars/server\_genre file. However, I don’t know if Ansible can support something like server\_genre@environment syntax notation. Here is the detail: In inventory/en…

---

## [Challenge Response based authentication in ansible](https://forum.ansible.com/t/challenge-response-based-authentication-in-ansible/33338)

<div class="topic-metadata">

**Author:** [@akshay2rathod](https://forum.ansible.com/u/akshay2rathod)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 8:24am UTC](https://forum.ansible.com/t/challenge-response-based-authentication-in-ansible/33338 "2020-07-07T08:24:19Z")

</div>

Hi, I want to maintain linux servers with challenge response based authentication with ansible, not able to find document around it. Please help me out with any useful document.

---

## [How to split value from list](https://forum.ansible.com/t/how-to-split-value-from-list/33328)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 13\
**Last updated:** [July 7, 2020, 6:31am UTC](https://forum.ansible.com/t/how-to-split-value-from-list/33328 "2020-07-07T06:31:09Z")

</div>

Hi Could you pls help me with the splitting value from the list. I need to extract first value anil before (‘’:') grep\_atm.stdout\_lines output below ok: \[localhost\] =\> { “msg”: "anil:x:500:500:Anil:/home/anil:/bin/ba…

---

## [The conditional check 'cmdb\_hwmodel.startswith('HP ')' failed](https://forum.ansible.com/t/the-conditional-check-cmdb-hwmodel-startswith-hp-failed/33323)

<div class="topic-metadata">

**Author:** [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 6:01pm UTC](https://forum.ansible.com/t/the-conditional-check-cmdb-hwmodel-startswith-hp-failed/33323 "2020-07-06T18:01:19Z")

</div>

can you pelase someone let me know what i am missing here: Error: TASK \[hp : hpilo\_info\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [multithread ansible](https://forum.ansible.com/t/multithread-ansible/33333)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 4:13pm UTC](https://forum.ansible.com/t/multithread-ansible/33333 "2020-07-06T16:13:17Z")

</div>

Can ansible do multithread and update all my VMwarte tools all at the same time or does it have to be one by one (one after another) in the host list?

---

## [Bonding with ansible](https://forum.ansible.com/t/bonding-with-ansible/33331)

<div class="topic-metadata">

**Author:** [@bmc1](https://forum.ansible.com/u/bmc1)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 3:13pm UTC](https://forum.ansible.com/t/bonding-with-ansible/33331 "2020-07-06T15:13:57Z")

</div>

I already know hot to bond to interfaces with ansible. But here is were it gets complicated: I need to make a playbook that lists all the facts, filtering just the interfaces, classifying them by speed and bonding them a…

---

## [Conditionals using Ansible\_facts.disks from the win\_disk\_facts](https://forum.ansible.com/t/conditionals-using-ansible-facts-disks-from-the-win-disk-facts/33327)

<div class="topic-metadata">

**Author:** [@Adam\_Dyson](https://forum.ansible.com/u/Adam_Dyson)\
**Replies:** 0\
**Last updated:** [July 6, 2020, 10:14am UTC](https://forum.ansible.com/t/conditionals-using-ansible-facts-disks-from-the-win-disk-facts/33327 "2020-07-06T10:14:03Z")

</div>

Hello world! Hopefully a relatively simple one, I am attempting to add a when condition on a task that will only happen if a certain disk exists on the machine. I want the following task to only take place if Ansible fa…

---

## [action plugin: modify task\_vars?](https://forum.ansible.com/t/action-plugin-modify-task-vars/33304)

<div class="topic-metadata">

**Author:** [@Gregory\_Christy](https://forum.ansible.com/u/Gregory_Christy)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 8:14am UTC](https://forum.ansible.com/t/action-plugin-modify-task-vars/33304 "2020-07-06T08:14:05Z")

</div>

Hello everybody, I have a custom module and would like to set the ansible\_python\_interpreter variable from within a corresponding action plugin. This is what I do in the action plugin: task\_vars\_modified = task\_vars.c…

---

## [Ansible not accepting When condition](https://forum.ansible.com/t/ansible-not-accepting-when-condition/33309)

<div class="topic-metadata">

**Author:** [@Srinivas\_Naram](https://forum.ansible.com/u/Srinivas_Naram)\
**Replies:** 4\
**Last updated:** [July 4, 2020, 10:01am UTC](https://forum.ansible.com/t/ansible-not-accepting-when-condition/33309 "2020-07-04T10:01:26Z")

</div>

when is indented too much. Put it at the level where module name is mentioned.

---

## [Hi](https://forum.ansible.com/t/hi/33318)

<div class="topic-metadata">

**Author:** [@Mujeeb\_k.s](https://forum.ansible.com/u/Mujeeb_k.s)\
**Replies:** 2\
**Last updated:** [July 3, 2020, 6:00pm UTC](https://forum.ansible.com/t/hi/33318 "2020-07-03T18:00:55Z")

</div>

Please remove my mail id from this thread

---

## [基于ansible playbook开发api，不知道callback返回报错的代码位置？](https://forum.ansible.com/t/ansible-playbook-api-callback/33320)

<div class="topic-metadata">

**Author:** [@xiang\_liu](https://forum.ansible.com/u/xiang_liu)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 4:49pm UTC](https://forum.ansible.com/t/ansible-playbook-api-callback/33320 "2020-07-03T16:49:20Z")

</div>

我基于ansible2.9开发了一套api，大部分playbook脚本执行没问题，但是在执行 这两段代码任务时候，执行失败报错 现在我希望知道这个报错是代码执行到哪一步时候报错的。 相关代码： playbook代码

---

## [Run Command On Each Host](https://forum.ansible.com/t/run-command-on-each-host/33285)

<div class="topic-metadata">

**Author:** [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Replies:** 8\
**Last updated:** [July 3, 2020, 12:16pm UTC](https://forum.ansible.com/t/run-command-on-each-host/33285 "2020-07-03T12:16:52Z")

</div>

Hi Team, I want to run multiple commands in shell module, but i want to run 1st command on each hosts than move to next command on each host than third and so on, so that i can get output of same command together from a…

---

## [Using Ansible on cloned VMs?](https://forum.ansible.com/t/using-ansible-on-cloned-vms/33316)

<div class="topic-metadata">

**Author:** [@Victor\_Hooi](https://forum.ansible.com/u/Victor_Hooi)\
**Replies:** 1\
**Last updated:** [July 3, 2020, 11:06am UTC](https://forum.ansible.com/t/using-ansible-on-cloned-vms/33316 "2020-07-03T11:06:46Z")

</div>

We have a small VM cluster we use for testing (Proxmox, with KVM VMs). We’ve created a library of KVM templates, that users can clone to new VMs. Each clone has a unique MAC address, and SMBIOS ID, but is otherwise ide…

---

## [Nxos\_config module issue](https://forum.ansible.com/t/nxos-config-module-issue/33310)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 2\
**Last updated:** [July 3, 2020, 8:28am UTC](https://forum.ansible.com/t/nxos-config-module-issue/33310 "2020-07-03T08:28:58Z")

</div>

Hi Team

---

## [from a list from list of dictionaries](https://forum.ansible.com/t/from-a-list-from-list-of-dictionaries/33312)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 5:20pm UTC](https://forum.ansible.com/t/from-a-list-from-list-of-dictionaries/33312 "2020-07-02T17:20:09Z")

</div>

Hi all, please help to form a list, I have a register variable as below, \[ { "application": { name: "abc" } }, { "service": { "name": "def" } }, { "service": { "name": "ghi" } }, } { "application"…

---

## [Regular Expression in ANSIBLE](https://forum.ansible.com/t/regular-expression-in-ansible/33303)

<div class="topic-metadata">

**Author:** [@Srinivas\_Naram](https://forum.ansible.com/u/Srinivas_Naram)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 1:48pm UTC](https://forum.ansible.com/t/regular-expression-in-ansible/33303 "2020-07-02T13:48:18Z")

</div>

Hello - is this log file located in the server where Ansible is installed or remote server ?

---

## [Trouble with quoting variables](https://forum.ansible.com/t/trouble-with-quoting-variables/33306)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 1:21pm UTC](https://forum.ansible.com/t/trouble-with-quoting-variables/33306 "2020-07-02T13:21:12Z")

</div>

I have a shell command with json on it. I need some assistance, please, in quoting it properly. This is an attempt to execute an aws command-line command. I realize that there are a massive number of aws aws modules, bu…

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

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