# Ansible Project

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

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

**Page:** 86

---

## [How to make ansible check for free space in EVERY member switches of a stack switch?](https://forum.ansible.com/t/how-to-make-ansible-check-for-free-space-in-every-member-switches-of-a-stack-switch/34715)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [March 3, 2021, 4:57pm UTC](https://forum.ansible.com/t/how-to-make-ansible-check-for-free-space-in-every-member-switches-of-a-stack-switch/34715 "2021-03-03T16:57:34Z")

</div>

Below is the config i use for checking if router flash memory has certain amount of free space and then copy IOS image to it if it has. Now i need to do the same thing for stacked switch. But iam wondering if below conf…

---

## [escape single quotes](https://forum.ansible.com/t/escape-single-quotes/34713)

<div class="topic-metadata">

**Author:** [@Pravin\_V](https://forum.ansible.com/u/Pravin_V)\
**Replies:** 0\
**Last updated:** [March 3, 2021, 1:30pm UTC](https://forum.ansible.com/t/escape-single-quotes/34713 "2021-03-03T13:30:32Z")

</div>

Hello Everyone, I’m trying to pass the numeric values of an variable into JSON. name: Device ID set\_fact: “device\_id”: “{{ device\_item\_netbox.id }}” name: DEBUG - DEVICE ID debug: msg=“{{ device\_id }}” Outpu…

---

## [How to kill/restart ssh remote connection](https://forum.ansible.com/t/how-to-kill-restart-ssh-remote-connection/34709)

<div class="topic-metadata">

**Author:** [@Softestplease](https://forum.ansible.com/u/Softestplease)\
**Replies:** 1\
**Last updated:** [March 3, 2021, 12:22am UTC](https://forum.ansible.com/t/how-to-kill-restart-ssh-remote-connection/34709 "2021-03-03T00:22:51Z")

</div>

Hi all, Could anyone please share some knowledge on how to kill/restart ssh from remote connection in Ansible? Basically, I need to re-login in order the changes to take affect but it seems that Ansible has shared conn…

---

## [Am I missing something or Ansible is uselessly verbose?](https://forum.ansible.com/t/am-i-missing-something-or-ansible-is-uselessly-verbose/34705)

<div class="topic-metadata">

**Author:** [@Istvan\_Kis](https://forum.ansible.com/u/Istvan_Kis)\
**Replies:** 3\
**Last updated:** [March 3, 2021, 12:20am UTC](https://forum.ansible.com/t/am-i-missing-something-or-ansible-is-uselessly-verbose/34705 "2021-03-03T00:20:48Z")

</div>

I am just starting to learn Ansible as I need it for my current job. I am kind of disappointed. Why can’t: become: yes become\_user: root Just be: user: root Can you become anything else other than a user?

---

## [Ansible - User Create Module - Not working with Vault](https://forum.ansible.com/t/ansible-user-create-module-not-working-with-vault/34594)

<div class="topic-metadata">

**Author:** [@penguinpages](https://forum.ansible.com/u/penguinpages)\
**Replies:** 5\
**Last updated:** [March 2, 2021, 11:16pm UTC](https://forum.ansible.com/t/ansible-user-create-module-not-working-with-vault/34594 "2021-03-02T23:16:24Z")

</div>

Still learning Ansible… but I think this is a feature request / maybe a bug? Hoping their is a work around. Goal: Create a user on CentOS host with membership of wheel group, ssh key and use a provided password but NOT…

---

## [Ansible started giving SSH Error: data could not be sent to remote host error in several playbooks and several tasks](https://forum.ansible.com/t/ansible-started-giving-ssh-error-data-could-not-be-sent-to-remote-host-error-in-several-playbooks-and-several-tasks/34619)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 3\
**Last updated:** [March 2, 2021, 10:30pm UTC](https://forum.ansible.com/t/ansible-started-giving-ssh-error-data-could-not-be-sent-to-remote-host-error-in-several-playbooks-and-several-tasks/34619 "2021-03-02T22:30:52Z")

</div>

I have more than 42 ansible playbooks all of which used to run fine and nothing has changed. The SSH connectivity to all the hosts is also good. Since last week we started getting SSH Error: data could not be sent to re…

---

## [remote to remote host copy. using AWX](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701)

<div class="topic-metadata">

**Author:** [@Raj](https://forum.ansible.com/u/Raj)\
**Replies:** 3\
**Last updated:** [March 2, 2021, 8:39pm UTC](https://forum.ansible.com/t/remote-to-remote-host-copy-using-awx/34701 "2021-03-02T20:39:59Z")

</div>

Hi All, I am trying to copy file from remote to remote using below tasks. already I used fetch and copy module through control node. In my scenario as per security reason we won’t copy to control node.

---

## [Is it possible to add async on raw module](https://forum.ansible.com/t/is-it-possible-to-add-async-on-raw-module/34708)

<div class="topic-metadata">

**Author:** [@Arjan\_Goos](https://forum.ansible.com/u/Arjan_Goos)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 3:48pm UTC](https://forum.ansible.com/t/is-it-possible-to-add-async-on-raw-module/34708 "2021-03-02T15:48:47Z")

</div>

I am currently patching firmware on 100+ routers in the field with the raw command. It is doing an ftp get from a file and after that it flashes the router and reboots the router. But ansible hangs. Is it possible to fix…

---

## [Oracle/Python](https://forum.ansible.com/t/oracle-python/34703)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 4\
**Last updated:** [March 2, 2021, 12:55pm UTC](https://forum.ansible.com/t/oracle-python/34703 "2021-03-02T12:55:18Z")

</div>

Hello All, I’m working on a project with Oracle Exalogic engineered systems that run OL 5.x which has Python 2.4 (ansible wants 2.6 +). I deployed a custom-compiled python but it apparently missing lots of python module…

---

## [Clarifications needed for 'prompt' parameter of ios\_command module](https://forum.ansible.com/t/clarifications-needed-for-prompt-parameter-of-ios-command-module/34707)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 9:25am UTC](https://forum.ansible.com/t/clarifications-needed-for-prompt-parameter-of-ios-command-module/34707 "2021-03-02T09:25:12Z")

</div>

When i use ‘prompt’ parameter of ios\_command module for IOS image copying as in Example 1, it fails. But it succeeds as in Example 2. I want to understand why? I am trying to understand why this below syntax works? Des…

---

## [rename datastore in vcenter](https://forum.ansible.com/t/rename-datastore-in-vcenter/34670)

<div class="topic-metadata">

**Author:** [@Jon\_POK](https://forum.ansible.com/u/Jon_POK)\
**Replies:** 11\
**Last updated:** [March 2, 2021, 8:57am UTC](https://forum.ansible.com/t/rename-datastore-in-vcenter/34670 "2021-03-02T08:57:41Z")

</div>

Hello I am trying to execute this task name: Rename Datastores on ESXi host vmware\_host\_datastore: hostname: ‘{{ vcenter\_hostname }}’ username: ‘{{ vcenter\_username }}’ password: ‘{{ vcenter\_password }}’ datacente…

---

## [Using "when" in a template file](https://forum.ansible.com/t/using-when-in-a-template-file/34704)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [March 1, 2021, 8:26pm UTC](https://forum.ansible.com/t/using-when-in-a-template-file/34704 "2021-03-01T20:26:52Z")

</div>

We have a playbook that will start the chronyd service periodically. If the service is down, it will be started. This causes the “changed” condition to be set to 1. This all works well. What I need to figure out is how c…

---

## [Role structure in ansible\_collections/namespace/collection\_name/roles](https://forum.ansible.com/t/role-structure-in-ansible-collections-namespace-collection-name-roles/34699)

<div class="topic-metadata">

**Author:** [@Rohit\_Kainth](https://forum.ansible.com/u/Rohit_Kainth)\
**Replies:** 1\
**Last updated:** [March 1, 2021, 7:18pm UTC](https://forum.ansible.com/t/role-structure-in-ansible-collections-namespace-collection-name-roles/34699 "2021-03-01T19:18:47Z")

</div>

Hi Team, I would like to know whether we have to manually create the role structure within a collection, as when creating a skeleton of collection by the following command: ansible-galaxy collection init namespace.coll…

---

## [email play recap output](https://forum.ansible.com/t/email-play-recap-output/34688)

<div class="topic-metadata">

**Author:** [@Gisbert\_Haas](https://forum.ansible.com/u/Gisbert_Haas)\
**Replies:** 2\
**Last updated:** [March 1, 2021, 7:11pm UTC](https://forum.ansible.com/t/email-play-recap-output/34688 "2021-03-01T19:11:17Z")

</div>

Hi All, anyone got a pride idea how to email the play recap output only? Thanks a million Gisbert

---

## [how community\_vmware\_vmware\_vguest communicate the guest](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 5\
**Last updated:** [March 1, 2021, 6:48pm UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664 "2021-03-01T18:48:57Z")

</div>

Hello Team Can anyone brief me how does vmware\_guest communicate with linux guest machine while assigning the new ipadddress? what authentication method its used.? Note: This is new machine deployment query Thanks in…

---

## [How do i do IOS upgrade of devices sequentially and not simultaneously?](https://forum.ansible.com/t/how-do-i-do-ios-upgrade-of-devices-sequentially-and-not-simultaneously/34695)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 2\
**Last updated:** [March 1, 2021, 6:01pm UTC](https://forum.ansible.com/t/how-do-i-do-ios-upgrade-of-devices-sequentially-and-not-simultaneously/34695 "2021-03-01T18:01:21Z")

</div>

I have written a script to do IOS upgrade of cisco devices. However problem is that each TASK in playbook gets executed SIMULTANEOUSLY on all devices defined in inventory file before moving on to next TASK. But my requi…

---

## [remove vmnic from esxi host](https://forum.ansible.com/t/remove-vmnic-from-esxi-host/34700)

<div class="topic-metadata">

**Author:** [@Jon\_POK](https://forum.ansible.com/u/Jon_POK)\
**Replies:** 0\
**Last updated:** [March 1, 2021, 12:12pm UTC](https://forum.ansible.com/t/remove-vmnic-from-esxi-host/34700 "2021-03-01T12:12:05Z")

</div>

Hello I am testing vswitch module can create add nics but I want to remove nic from vswithc is it possible name: Add a VMware vSwitch with multiple NICs community.vmware.vmware\_vswitch: hostname: ‘{{ esxi\_hostname }}…

---

## [Win\_reboot issue](https://forum.ansible.com/t/win-reboot-issue/34697)

<div class="topic-metadata">

**Author:** [@P\_R\_Music\_video\_s](https://forum.ansible.com/u/P_R_Music_video_s)\
**Replies:** 3\
**Last updated:** [March 1, 2021, 11:30am UTC](https://forum.ansible.com/t/win-reboot-issue/34697 "2021-03-01T11:30:50Z")

</div>

Hi All, I am using win\_reboot model to reboot the windows machines but module is not working properly when windows takes more than 10 mins to reboot is there any alternative for this? Thanks Prajwal h g

---

## [escape square bracket in ansible](https://forum.ansible.com/t/escape-square-bracket-in-ansible/34698)

<div class="topic-metadata">

**Author:** [@Sakshi\_Rathore](https://forum.ansible.com/u/Sakshi_Rathore)\
**Replies:** 4\
**Last updated:** [March 1, 2021, 9:42am UTC](https://forum.ansible.com/t/escape-square-bracket-in-ansible/34698 "2021-03-01T09:42:27Z")

</div>

Hello everyone, Can anyone please advise how to escape square brackets from output in ansible? i need to insert some ip addresses from a file into dynamic inventory file. while doing this i am getting square bracket al…

---

## [Will IOS module apply for ASA as well?](https://forum.ansible.com/t/will-ios-module-apply-for-asa-as-well/34696)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 0\
**Last updated:** [February 28, 2021, 7:41pm UTC](https://forum.ansible.com/t/will-ios-module-apply-for-asa-as-well/34696 "2021-02-28T19:41:42Z")

</div>

I notice that ASA has 4 modules listed in ansible documentation. But i was wondering if i can use IOS modules with ASA as well? I had this doubt as ASA also uses IOS OS and IOS modules offer lot more options and flexibi…

---

## [set custom ssh port when using delegate\_to](https://forum.ansible.com/t/set-custom-ssh-port-when-using-delegate-to/34685)

<div class="topic-metadata">

**Author:** [@Raphael\_Ebner](https://forum.ansible.com/u/Raphael_Ebner)\
**Replies:** 9\
**Last updated:** [February 27, 2021, 9:02am UTC](https://forum.ansible.com/t/set-custom-ssh-port-when-using-delegate-to/34685 "2021-02-27T09:02:25Z")

</div>

Hi Community, I need to delegate one task in my play to another remote linux ssh host with delegate\_to. So far so good. But now the problem: my remote host has a custom ssh port. When running the play I always get “Fail…

---

## [amq7 broker service start command not working through ansible (AWX)](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691)

<div class="topic-metadata">

**Author:** [@Raj](https://forum.ansible.com/u/Raj)\
**Replies:** 5\
**Last updated:** [February 26, 2021, 6:05pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691 "2021-02-26T18:05:33Z")

</div>

service Stop command working fine /bin/artemis-service stop service start command is not working /bin/artemis-service start I used nohup and wrote shell script to start but not working. Could you please help on this…

---

## [Ansible Playbook using ansible\_connection: vmware\_tools](https://forum.ansible.com/t/ansible-playbook-using-ansible-connection-vmware-tools/34687)

<div class="topic-metadata">

**Author:** [@Glen\_Collins](https://forum.ansible.com/u/Glen_Collins)\
**Replies:** 3\
**Last updated:** [February 26, 2021, 3:54pm UTC](https://forum.ansible.com/t/ansible-playbook-using-ansible-connection-vmware-tools/34687 "2021-02-26T15:54:35Z")

</div>

Hello. I am trying to use the ansible\_connection: vmware\_tools in my playbook. I have been successful in connecting and running basic commands. But I am finding when using modules like yum and there is a long task to do…

---

## [Errors in my Playbook](https://forum.ansible.com/t/errors-in-my-playbook/34686)

<div class="topic-metadata">

**Author:** [@Michael\_Cooper](https://forum.ansible.com/u/Michael_Cooper)\
**Replies:** 1\
**Last updated:** [February 26, 2021, 1:28am UTC](https://forum.ansible.com/t/errors-in-my-playbook/34686 "2021-02-26T01:28:32Z")

</div>

Hello Everyone, First time poster here. By the way I am just now learning this. I am having issues with a playbook I am trying to run and I get this after the

---

## [best practices for removing files in a dir when using  Ansible](https://forum.ansible.com/t/best-practices-for-removing-files-in-a-dir-when-using-ansible/34682)

<div class="topic-metadata">

**Author:** [@paneva](https://forum.ansible.com/u/paneva)\
**Replies:** 3\
**Last updated:** [February 25, 2021, 5:01pm UTC](https://forum.ansible.com/t/best-practices-for-removing-files-in-a-dir-when-using-ansible/34682 "2021-02-25T17:01:56Z")

</div>

Hi Ansible wizards! I am currently working on few tasks in a playbook that are going to remove old files. There is a set number of files that I need to keep, say 3 (most recent), and the rest should be removed. I am doi…

---

## [Need help with tags](https://forum.ansible.com/t/need-help-with-tags/34678)

<div class="topic-metadata">

**Author:** [@Mouton\_Noir](https://forum.ansible.com/u/Mouton_Noir)\
**Replies:** 6\
**Last updated:** [February 25, 2021, 4:30pm UTC](https://forum.ansible.com/t/need-help-with-tags/34678 "2021-02-25T16:30:11Z")

</div>

Hi, I’d like to use tags to select tasks I launch. I found documentations about how to limit playbook, role… execution to the tagged tasks l choose from adhoc command (-t option). But I need to do the same from anothe…

---

## [Ansible Without Python?](https://forum.ansible.com/t/ansible-without-python/34679)

<div class="topic-metadata">

**Author:** [@Jon\_Forrest](https://forum.ansible.com/u/Jon_Forrest)\
**Replies:** 9\
**Last updated:** [February 25, 2021, 4:17pm UTC](https://forum.ansible.com/t/ansible-without-python/34679 "2021-02-25T16:17:19Z")

</div>

I had a radical thought the other day. Would it be possible to replace Python as the language used by Ansible with a compiled language, perhaps Go because of its fast compile and link speed? Note that I'm not talking …

---

## [win\_domain\_user | Directory object not found](https://forum.ansible.com/t/win-domain-user-directory-object-not-found/34681)

<div class="topic-metadata">

**Author:** [@Manikumar\_Chandu](https://forum.ansible.com/u/Manikumar_Chandu)\
**Replies:** 0\
**Last updated:** [February 25, 2021, 12:56pm UTC](https://forum.ansible.com/t/win-domain-user-directory-object-not-found/34681 "2021-02-25T12:56:06Z")

</div>

Hi Team, I am trying to create a user in AD with the win\_domain\_user module but at the time adding the user to groups getting below error, { “exception”: “Directory object not found\\r\\nAt line:280 char:29\\r\\n+ … ($gro…

---

## [Need help on how to configure Ansible controller as galaxy server to download and install collections](https://forum.ansible.com/t/need-help-on-how-to-configure-ansible-controller-as-galaxy-server-to-download-and-install-collections/34680)

<div class="topic-metadata">

**Author:** [@Ramakrishna\_V](https://forum.ansible.com/u/Ramakrishna_V)\
**Replies:** 0\
**Last updated:** [February 25, 2021, 9:41am UTC](https://forum.ansible.com/t/need-help-on-how-to-configure-ansible-controller-as-galaxy-server-to-download-and-install-collections/34680 "2021-02-25T09:41:59Z")

</div>

Hi, Need help on how to configure Ansible controller as galaxy server to download and install collections. Basically, as we know by default, collection is getting installed/downloaded from galaxy.ansible.com or github. …

---

## [Changing the target server name](https://forum.ansible.com/t/changing-the-target-server-name/34677)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar\_Singh](https://forum.ansible.com/u/Praveen_Kumar_Singh)\
**Replies:** 4\
**Last updated:** [February 25, 2021, 9:03am UTC](https://forum.ansible.com/t/changing-the-target-server-name/34677 "2021-02-25T09:03:23Z")

</div>

Is there any way to change the target server name in the middle of the playbook? This is for windows. Thanks and Regards, Praveen Singh

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

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