# Ansible Project

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

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

**Page:** 120

---

## [The ipaddr filter requires python's netaddr be installed on the ansible controller"](https://forum.ansible.com/t/the-ipaddr-filter-requires-pythons-netaddr-be-installed-on-the-ansible-controller/33175)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 2\
**Last updated:** [June 14, 2020, 6:54pm UTC](https://forum.ansible.com/t/the-ipaddr-filter-requires-pythons-netaddr-be-installed-on-the-ansible-controller/33175 "2020-06-14T18:54:01Z")

</div>

any idea what this error is? TASK \[vcsa-deploy : Create a task from the template to deploy VCSA with embedded PSC\]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* task path: /home/tony/ansible-vmware/vsphere-…

---

## [Ansible config file in current directory not used](https://forum.ansible.com/t/ansible-config-file-in-current-directory-not-used/33173)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [June 14, 2020, 6:39pm UTC](https://forum.ansible.com/t/ansible-config-file-in-current-directory-not-used/33173 "2020-06-14T18:39:25Z")

</div>

According to the docs (https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#ansible-configuration-settings-locations), Ansible is supposed to use ansible.cfg from the current directory as the second o…

---

## [Inject JSON file using URI](https://forum.ansible.com/t/inject-json-file-using-uri/33176)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 1\
**Last updated:** [June 14, 2020, 6:33pm UTC](https://forum.ansible.com/t/inject-json-file-using-uri/33176 "2020-06-14T18:33:22Z")

</div>

hey guys, I need to inject a .json file into an application using ansible. I know that we have a module called URI. However this application accepts only by Content-Type: “application/x-www-form-urlencoded” … in this c…

---

## [filter on attribute value](https://forum.ansible.com/t/filter-on-attribute-value/33016)

<div class="topic-metadata">

**Author:** [@Anuj\_Agrawal](https://forum.ansible.com/u/Anuj_Agrawal)\
**Replies:** 3\
**Last updated:** [June 14, 2020, 6:18pm UTC](https://forum.ansible.com/t/filter-on-attribute-value/33016 "2020-06-14T18:18:26Z")

</div>

I want to validate my inventory to have only a certain number of hosts to have a certain value. I tried to do that using assert but I am unable to find a way to do so. Example inventory (ini) file: \[nginx\] 10.52.130…

---

## [\--ask-become-pass](https://forum.ansible.com/t/ask-become-pass/33174)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 0\
**Last updated:** [June 14, 2020, 6:01pm UTC](https://forum.ansible.com/t/ask-become-pass/33174 "2020-06-14T18:01:02Z")

</div>

how do i store the --ask-become-password for sudo to a vaults file?

---

## [vcsa deploy error](https://forum.ansible.com/t/vcsa-deploy-error/33171)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 0\
**Last updated:** [June 14, 2020, 1:56pm UTC](https://forum.ansible.com/t/vcsa-deploy-error/33171 "2020-06-14T13:56:26Z")

</div>

I am trying to deploy vcsa with this role vcsa-deploy

---

## [Unable to run command via Ansible to Sonus and Acme/Oracle SBC](https://forum.ansible.com/t/unable-to-run-command-via-ansible-to-sonus-and-acme-oracle-sbc/25450)

<div class="topic-metadata">

**Author:** [@Maithreyi\_Narasimha](https://forum.ansible.com/u/Maithreyi_Narasimha)\
**Replies:** 16\
**Last updated:** [June 14, 2020, 9:27am UTC](https://forum.ansible.com/t/unable-to-run-command-via-ansible-to-sonus-and-acme-oracle-sbc/25450 "2020-06-14T09:27:28Z")

</div>

Hi All, We have been unsuccessful in trying to run a basic “show version” or any show command on both Sonus and Acme/Oracle SBC via Ansible using the command or shell or raw module. The version of the Sonus box(Sonus 5…

---

## [Making Small Command Modules using Ansible](https://forum.ansible.com/t/making-small-command-modules-using-ansible/33153)

<div class="topic-metadata">

**Author:** [@Ashwajit\_Bhoutkar](https://forum.ansible.com/u/Ashwajit_Bhoutkar)\
**Replies:** 3\
**Last updated:** [June 14, 2020, 3:36am UTC](https://forum.ansible.com/t/making-small-command-modules-using-ansible/33153 "2020-06-14T03:36:02Z")

</div>

Hello, I’ve question related to a scenario which I can accomplish using Python but would like to achieve the same using Ansible. In the scenario, I first execute “show run int” command to see if it has IP address alloc…

---

## [user change](https://forum.ansible.com/t/user-change/33168)

<div class="topic-metadata">

**Author:** [@Rajeeb\_sahoo](https://forum.ansible.com/u/Rajeeb_sahoo)\
**Replies:** 7\
**Last updated:** [June 13, 2020, 5:53pm UTC](https://forum.ansible.com/t/user-change/33168 "2020-06-13T17:53:52Z")

</div>

user change form root to new\_user at the time of playbook running like a user created and one service will run under root and 2 nd service will run as new\_user

---

## [check ping SSH connection for multiple host and uptime  using playbook](https://forum.ansible.com/t/check-ping-ssh-connection-for-multiple-host-and-uptime-using-playbook/33169)

<div class="topic-metadata">

**Author:** [@Avinash\_Jadhav](https://forum.ansible.com/u/Avinash_Jadhav)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 5:18pm UTC](https://forum.ansible.com/t/check-ping-ssh-connection-for-multiple-host-and-uptime-using-playbook/33169 "2020-06-13T17:18:18Z")

</div>

Hello All, I am trying to develop playbook check the ping, ssh, and uptime for multiple server /host Ping if is successfully then print Yes otherwise No SSH if successfully then checks for uptime and print Y and Uptim…

---

## [Run multiple plays in parallel.](https://forum.ansible.com/t/run-multiple-plays-in-parallel/33170)

<div class="topic-metadata">

**Author:** [@bmohanraj](https://forum.ansible.com/u/bmohanraj)\
**Replies:** 0\
**Last updated:** [June 13, 2020, 12:32pm UTC](https://forum.ansible.com/t/run-multiple-plays-in-parallel/33170 "2020-06-13T12:32:52Z")

</div>

Hello, I have a query in running multiple plays in parallel. Below playbook which runs plays which are independent of each other but it runs sequentially. \`

---

## [ansible tower - command works BUT playbook fails to connect to the host via ssh](https://forum.ansible.com/t/ansible-tower-command-works-but-playbook-fails-to-connect-to-the-host-via-ssh/33165)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 1:06am UTC](https://forum.ansible.com/t/ansible-tower-command-works-but-playbook-fails-to-connect-to-the-host-via-ssh/33165 "2020-06-13T01:06:21Z")

</div>

In my ansible tower I can execute a command successfully on a remote server, however when I try to run a playbook I get: { "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'hostname,10.1.4.66'…

---

## [chaining psrp through multiple bastion hosts](https://forum.ansible.com/t/chaining-psrp-through-multiple-bastion-hosts/33167)

<div class="topic-metadata">

**Author:** [@Simon\_Tyler](https://forum.ansible.com/u/Simon_Tyler)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 7:19pm UTC](https://forum.ansible.com/t/chaining-psrp-through-multiple-bastion-hosts/33167 "2020-06-12T19:19:12Z")

</div>

Hello Ansible Citizens, I am able to connect to a windows machine through a linux bastion host. This is a central jump server that is connected to all of our client networks. Each client network has it’s own linux jump …

---

## [group\_by with random key values](https://forum.ansible.com/t/group-by-with-random-key-values/33158)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 5:35pm UTC](https://forum.ansible.com/t/group-by-with-random-key-values/33158 "2020-06-12T17:35:07Z")

</div>

I am trying to develop a playbook to set a common password on groups of servers. The concept is that all servers within a given group would receive one randomly generated password, all servers within the next group would…

---

## ['when: item not in' conditional issues?](https://forum.ansible.com/t/when-item-not-in-conditional-issues/33163)

<div class="topic-metadata">

**Author:** [@Doug\_OLeary](https://forum.ansible.com/u/Doug_OLeary)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 1:56pm UTC](https://forum.ansible.com/t/when-item-not-in-conditional-issues/33163 "2020-06-12T13:56:27Z")

</div>

Hey; I’m trying to execute pvcreate on a disk but would like to ensure I don’t run it on a disk that’s already defined. I have a short playbook that gathers facts, displays ansible\_lvm.pvs.keys() and then: \` name: r…

---

## [accessing yaml dictionary in playbook](https://forum.ansible.com/t/accessing-yaml-dictionary-in-playbook/33161)

<div class="topic-metadata">

**Author:** [@Doug\_OLeary](https://forum.ansible.com/u/Doug_OLeary)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 12:45pm UTC](https://forum.ansible.com/t/accessing-yaml-dictionary-in-playbook/33161 "2020-06-12T12:45:51Z")

</div>

Hi I have a dictionary of disks in my host vars: \` disks: sdc: dev: sdc vg: vg01 lv: app mp: ‘/opt/app’ sdd: dev: sdd vg: vg02tmp lv: shared mp: ‘/opt/app/oracle/shared’ \` A very basic playbook, just to ac…

---

## [how to pass same  variable value multiple times in a list](https://forum.ansible.com/t/how-to-pass-same-variable-value-multiple-times-in-a-list/33126)

<div class="topic-metadata">

**Author:** [@Diyawary](https://forum.ansible.com/u/Diyawary)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 11:32am UTC](https://forum.ansible.com/t/how-to-pass-same-variable-value-multiple-times-in-a-list/33126 "2020-06-12T11:32:41Z")

</div>

Hi Team, I am using with\_togather so i have two list one is mserver and other is domain, problem is i want to pass same mserver two times in the list ,but it is giving error and using only last defined value. My requir…

---

## [Accessing Network Devices via Jump Hosts](https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156)

<div class="topic-metadata">

**Author:** [@Ashwajit\_Bhoutkar](https://forum.ansible.com/u/Ashwajit_Bhoutkar)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 7:58am UTC](https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156 "2020-06-12T07:58:19Z")

</div>

Hi, I’ve a general question related to Ansible for accessing the network devices. While going through the ansible documentations, I understood that the control host is directly connected to the network elements and send…

---

## [domainadminpass](https://forum.ansible.com/t/domainadminpass/33154)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 3:20am UTC](https://forum.ansible.com/t/domainadminpass/33154 "2020-06-12T03:20:00Z")

</div>

how do I specify a dominadminpass password to a vault file?

---

## [Cisco MDS | nxos\_zone\_zoneset](https://forum.ansible.com/t/cisco-mds-nxos-zone-zoneset/33128)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 7:24pm UTC](https://forum.ansible.com/t/cisco-mds-nxos-zone-zoneset/33128 "2020-06-11T19:24:50Z")

</div>

Alrighty So I’ve run into a bit of a head scratcher New MDS deployment, right? all of 0 customers running across it so far, 2 admins poking at it, one being myself trying to get Ansible playbooks to play nicely with …

---

## [deploy VM from template and customize guest](https://forum.ansible.com/t/deploy-vm-from-template-and-customize-guest/33115)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 11\
**Last updated:** [June 11, 2020, 6:09pm UTC](https://forum.ansible.com/t/deploy-vm-from-template-and-customize-guest/33115 "2020-06-11T18:09:19Z")

</div>

I am trying to deploy VM from VM template with ansible. I got the playbook to deploy the VM. but how do I customize the guest: I need to rename the guest name to VM name join domain put it in an specific OU any udea? …

---

## [VM not joining domain](https://forum.ansible.com/t/vm-not-joining-domain/33146)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 3:18pm UTC](https://forum.ansible.com/t/vm-not-joining-domain/33146 "2020-06-11T15:18:42Z")

</div>

any idea why my Vm is not joining domain? Credentials are correct

---

## [Multi threading support in Ansible](https://forum.ansible.com/t/multi-threading-support-in-ansible/33095)

<div class="topic-metadata">

**Author:** [@Jagadeeshkumar\_Ditta](https://forum.ansible.com/u/Jagadeeshkumar_Ditta)\
**Replies:** 8\
**Last updated:** [June 11, 2020, 3:02pm UTC](https://forum.ansible.com/t/multi-threading-support-in-ansible/33095 "2020-06-11T15:02:57Z")

</div>

I am a newbie to ansible but I got to explore how to run a tasks in parallel by spawing a thread for each task instead of a process. My requirement is to run the playbook on my localhost and there is no remote task execu…

---

## [simplify always the same conditionals - evaluate contents of a string in conditionals (changed\_when, failed\_when, ...)](https://forum.ansible.com/t/simplify-always-the-same-conditionals-evaluate-contents-of-a-string-in-conditionals-changed-when-failed-when/33132)

<div class="topic-metadata">

**Author:** [@Michael\_K](https://forum.ansible.com/u/Michael_K)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 12:24pm UTC](https://forum.ansible.com/t/simplify-always-the-same-conditionals-evaluate-contents-of-a-string-in-conditionals-changed-when-failed-when/33132 "2020-06-11T12:24:22Z")

</div>

Hi there, while working with fortinet.fortios I’ve engineered that the modules need some help to track the changed and failed status. So I’ve added the following parameters to each module called: \` name: “{{ device …

---

## [List all variables only defined in hosts file corresponding to a host](https://forum.ansible.com/t/list-all-variables-only-defined-in-hosts-file-corresponding-to-a-host/33150)

<div class="topic-metadata">

**Author:** [@utkarsh\_srivastava](https://forum.ansible.com/u/utkarsh_srivastava)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 7:23am UTC](https://forum.ansible.com/t/list-all-variables-only-defined-in-hosts-file-corresponding-to-a-host/33150 "2020-06-11T07:23:18Z")

</div>

Hi I want to list all variable and it’s value defined in hosts file corresponding to a host for example: \[hostgroup1\] host1 variable1=value1 variable2=value2 variable3=value3 so i want to list all variables defined …

---

## [Need help to develop a playbook to take vm snapshot by choosing only os disk in RHV environment](https://forum.ansible.com/t/need-help-to-develop-a-playbook-to-take-vm-snapshot-by-choosing-only-os-disk-in-rhv-environment/33151)

<div class="topic-metadata">

**Author:** [@Ramakrishna\_V](https://forum.ansible.com/u/Ramakrishna_V)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 6:02am UTC](https://forum.ansible.com/t/need-help-to-develop-a-playbook-to-take-vm-snapshot-by-choosing-only-os-disk-in-rhv-environment/33151 "2020-06-11T06:02:20Z")

</div>

Need help to develop a playbook to select only os disk in RHV while taking VM snapshot. The use case to develop a playbook to take vm snapshot by choosing only os disk in RHV environment. Ansible version is 2.8 and RHV …

---

## [ansible vmware 0:7 reserved scsi controller card](https://forum.ansible.com/t/ansible-vmware-0-7-reserved-scsi-controller-card/33145)

<div class="topic-metadata">

**Author:** [@Bhanu\_Prakash](https://forum.ansible.com/u/Bhanu_Prakash)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 3:44am UTC](https://forum.ansible.com/t/ansible-vmware-0-7-reserved-scsi-controller-card/33145 "2020-06-11T03:44:17Z")

</div>

Hello Team, I need to add 15 disks , I am getting error because of 0:7 reservation. Is there any automation …please find my below code and help name: Add disks vmware\_guest\_disk: hostname: “{{location}}” username:…

---

## [The vault password file /home/user./vault was not found](https://forum.ansible.com/t/the-vault-password-file-home-user-vault-was-not-found/33149)

<div class="topic-metadata">

**Author:** [@ssn7819](https://forum.ansible.com/u/ssn7819)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 8:54pm UTC](https://forum.ansible.com/t/the-vault-password-file-home-user-vault-was-not-found/33149 "2020-06-10T20:54:42Z")

</div>

Hi Guys Initially I was using a vault file to store sensitive information and pass them in. It was working. Now I removed any reference to the vault file as I wanted to test something else. Now I keep getting the belo…

---

## [Answer to prompt not passing when used cli\_command module](https://forum.ansible.com/t/answer-to-prompt-not-passing-when-used-cli-command-module/33143)

<div class="topic-metadata">

**Author:** [@bmohanraj](https://forum.ansible.com/u/bmohanraj)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 1:01pm UTC](https://forum.ansible.com/t/answer-to-prompt-not-passing-when-used-cli-command-module/33143 "2020-06-10T13:01:25Z")

</div>

Hello, I am trying to upgrade cat9k switch using ansible, facing issues when trying to run the command “install Activate”. when run “install Activate” command manually in cat9k switch, I am getting the prompt within in…

---

## [What does the output from the dynamic inventory software look like?](https://forum.ansible.com/t/what-does-the-output-from-the-dynamic-inventory-software-look-like/33130)

<div class="topic-metadata">

**Author:** [@Martin\_Ward](https://forum.ansible.com/u/Martin_Ward)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 12:16pm UTC](https://forum.ansible.com/t/what-does-the-output-from-the-dynamic-inventory-software-look-like/33130 "2020-06-10T12:16:36Z")

</div>

Hi, I am running Ansible 2.9.7 and am looking at the dynamic inventory scripts. I don’t have any of the various software listed (AWS, OpenStack etc) in the examples section and I need something where I can automatically…

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

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