# Archives

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

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

**Page:** 194

---

## [Ansible Modules for HP Switches (Comware 7)](https://forum.ansible.com/t/ansible-modules-for-hp-switches-comware-7/33182)

<div class="topic-metadata">

**Author:** [@gineesh](https://forum.ansible.com/u/gineesh)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 10:36am UTC](https://forum.ansible.com/t/ansible-modules-for-hp-switches-comware-7/33182 "2020-06-15T10:36:37Z")

</div>

Hi Guys, Hope all are doing good. I was developing some latest playbooks for HP Switches (HP 5130 - CMW710) and noticed the 3rd party modules (refer link below) are not working any more with latest Ansible version (ans…

---

## [Using environment with import\_tasks](https://forum.ansible.com/t/using-environment-with-import-tasks/33180)

<div class="topic-metadata">

**Author:** [@Vishal\_Kumar](https://forum.ansible.com/u/Vishal_Kumar)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 9:24am UTC](https://forum.ansible.com/t/using-environment-with-import-tasks/33180 "2020-06-15T09:24:37Z")

</div>

I got a small question regarding ansible regarding import\_tasks and using task specific env variablesPlaybook folder structure common/a.yaml database/sometask.yaml database/sometask1.yaml Content of a.yaml- name: Some…

---

## [ansible-playbook --ask-become-user in vault file?](https://forum.ansible.com/t/ansible-playbook-ask-become-user-in-vault-file/33178)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [June 15, 2020, 2:55am UTC](https://forum.ansible.com/t/ansible-playbook-ask-become-user-in-vault-file/33178 "2020-06-15T02:55:31Z")

</div>

can i put a sudo password and other passwords together in a vault file? when i run thios playbook, i want it to read the vault file w/o asking me for the password anymore ansible-playbook --ask-vault-pass vcenter\_sddc\_…

---

## [Ansible rolling restart in multi-clustered environment](https://forum.ansible.com/t/ansible-rolling-restart-in-multi-clustered-environment/33177)

<div class="topic-metadata">

**Author:** [@Rishabh\_Kumar](https://forum.ansible.com/u/Rishabh_Kumar)\
**Replies:** 0\
**Last updated:** [June 14, 2020, 9:04pm UTC](https://forum.ansible.com/t/ansible-rolling-restart-in-multi-clustered-environment/33177 "2020-06-14T21:04:11Z")

</div>

Hi, I have a use case where I want to execute rolling updates in multiple clusters. As first step, I have created a task to execute serially on the hosts passed to the task which will execute the restart one node at a t…

---

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

---

## [Feature to add retry for replicated servers in ipa\_dnsrecord](https://forum.ansible.com/t/feature-to-add-retry-for-replicated-servers-in-ipa-dnsrecord/33164)

<div class="topic-metadata">

**Author:** [@Nit\_P](https://forum.ansible.com/u/Nit_P)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 3:50pm UTC](https://forum.ansible.com/t/feature-to-add-retry-for-replicated-servers-in-ipa-dnsrecord/33164 "2020-06-12T15:50:57Z")

</div>

Hello, I am working on a FreeIPA replicated setup and have some ansible playbooks which interact with FreeIPA to create DNS records using ipa\_dnsrecord module. The current module seems to support only a single host inst…

---

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

---

## [How to create dynamic inventory in awx ,where password is fetched from ARCOS(PAM tool) vault.](https://forum.ansible.com/t/how-to-create-dynamic-inventory-in-awx-where-password-is-fetched-from-arcos-pam-tool-vault/33159)

<div class="topic-metadata">

**Author:** [@rkn](https://forum.ansible.com/u/rkn)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 9:25am UTC](https://forum.ansible.com/t/how-to-create-dynamic-inventory-in-awx-where-password-is-fetched-from-arcos-pam-tool-vault/33159 "2020-06-12T09:25:24Z")

</div>

I want to create a dynamic inventory in awx where password of hosts should be fetched from ARCOS vault(PAM tool).

---

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

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

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