# Ansible Project

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

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

**Page:** 54

---

## [Add Windows-Control Node support](https://forum.ansible.com/t/add-windows-control-node-support/36248)

<div class="topic-metadata">

**Author:** [@Arpad\_Toth](https://forum.ansible.com/u/Arpad_Toth)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 8:38pm UTC](https://forum.ansible.com/t/add-windows-control-node-support/36248 "2022-01-26T20:38:03Z")

</div>

Hi All, Love the idea of ansible, but why can’t we support Windows 7/10 Control Nodes? What’s the point of using python in non portable way? I can simply do Putty into linux client, Windows can also be ansible receiva…

---

## [Adhoc commands hang when connecting to Juniper devices](https://forum.ansible.com/t/adhoc-commands-hang-when-connecting-to-juniper-devices/36251)

<div class="topic-metadata">

**Author:** [@Thomas\_Whittle](https://forum.ansible.com/u/Thomas_Whittle)\
**Replies:** 0\
**Last updated:** [January 26, 2022, 5:00pm UTC](https://forum.ansible.com/t/adhoc-commands-hang-when-connecting-to-juniper-devices/36251 "2022-01-26T17:00:08Z")

</div>

Hi all, I’m new to Ansible and I’m trying to get started connecting to the devices in my lab. I’m starting with adhoc commands and will move onto playbooks as soon as I’m confortable with Adhoc. When I run the below c…

---

## [Correct Login link for Ansible Galaxy](https://forum.ansible.com/t/correct-login-link-for-ansible-galaxy/36171)

<div class="topic-metadata">

**Author:** [@lee](https://forum.ansible.com/u/lee)\
**Replies:** 6\
**Last updated:** [January 25, 2022, 9:15am UTC](https://forum.ansible.com/t/correct-login-link-for-ansible-galaxy/36171 "2022-01-25T09:15:00Z")

</div>

Hi, What is the correct login link for Ansible Galaxy? This one https://galaxy.ansible.com/accounts/login/ is giving Server Error (500) Thanks

---

## [ActiveState of a systemd service](https://forum.ansible.com/t/activestate-of-a-systemd-service/36156)

<div class="topic-metadata">

**Author:** [@lee](https://forum.ansible.com/u/lee)\
**Replies:** 14\
**Last updated:** [January 25, 2022, 7:30am UTC](https://forum.ansible.com/t/activestate-of-a-systemd-service/36156 "2022-01-25T07:30:00Z")

</div>

Hi, I am trying to write a playbook that displays the ActiveState of some services on a machine. I tried various tips from google but could not get the information I wanted, which is the "service.ActiveState" . Below…

---

## [Obtaining software versions of Windows servers](https://forum.ansible.com/t/obtaining-software-versions-of-windows-servers/36238)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [January 24, 2022, 7:40pm UTC](https://forum.ansible.com/t/obtaining-software-versions-of-windows-servers/36238 "2022-01-24T19:40:42Z")

</div>

Occassionally, at my office, we get security alerts for vulnerabilities. I have a playbook that will get run “rpm -q” on the package name and it returns the version installed. For example, google-chrome-stable. How can …

---

## [How to test if playbook is being run interactively](https://forum.ansible.com/t/how-to-test-if-playbook-is-being-run-interactively/36241)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [January 24, 2022, 3:07pm UTC](https://forum.ansible.com/t/how-to-test-if-playbook-is-being-run-interactively/36241 "2022-01-24T15:07:31Z")

</div>

Hi Somewhere halfway through one of our playbooks there is a ‘pause’ task that prompts for input: name: Database restoration - timestamp selection pause: prompt: | Select the number of a backup date to restore from…

---

## [Assign different variables to each server from vmware dynamic inventory](https://forum.ansible.com/t/assign-different-variables-to-each-server-from-vmware-dynamic-inventory/36243)

<div class="topic-metadata">

**Author:** [@Amjad\_Saleem1](https://forum.ansible.com/u/Amjad_Saleem1)\
**Replies:** 0\
**Last updated:** [January 23, 2022, 7:13pm UTC](https://forum.ansible.com/t/assign-different-variables-to-each-server-from-vmware-dynamic-inventory/36243 "2022-01-23T19:13:10Z")

</div>

I am getting vms from vcenter using vmware inventory plugin. The vms are mix of windows and linux. I want to assign ansible\_connection: ssh if the vm is linux and ansible\_connection: winrm if windows. Using compose as be…

---

## [create single vmware dynamic inventory from multiple vcenters](https://forum.ansible.com/t/create-single-vmware-dynamic-inventory-from-multiple-vcenters/36242)

<div class="topic-metadata">

**Author:** [@Amjad\_Saleem1](https://forum.ansible.com/u/Amjad_Saleem1)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 5:46pm UTC](https://forum.ansible.com/t/create-single-vmware-dynamic-inventory-from-multiple-vcenters/36242 "2022-01-23T17:46:43Z")

</div>

I am trying to collect all vms in four different vcenters to create inventory and further act on the that inventory. Using vmware\_vm\_inventory, I can target one vcenter and hostname does not support a list: plugin: vmwa…

---

## [MacOS unable to use VMWARE\_GUEST module](https://forum.ansible.com/t/macos-unable-to-use-vmware-guest-module/36167)

<div class="topic-metadata">

**Author:** [@D\_I](https://forum.ansible.com/u/D_I)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 3:57am UTC](https://forum.ansible.com/t/macos-unable-to-use-vmware-guest-module/36167 "2022-01-23T03:57:32Z")

</div>

Hi Everybody, I am having this issue while I am running from my Mac where ansible doesn’t recognize VMWARE\_GUEST modules though they are installed. Any idea why its not able to recognize? I am using OS Monterey 12.1. C…

---

## [Can we trigger the Ansible Palaybook from JumpBox?](https://forum.ansible.com/t/can-we-trigger-the-ansible-palaybook-from-jumpbox/36225)

<div class="topic-metadata">

**Author:** [@Vinay\_Korrapati](https://forum.ansible.com/u/Vinay_Korrapati)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 6:04pm UTC](https://forum.ansible.com/t/can-we-trigger-the-ansible-palaybook-from-jumpbox/36225 "2022-01-22T18:04:25Z")

</div>

Hi Team, Created the Playbook which changes the registry setting of the respective machine. I would like to trigger that Playbook by using powershell from my jumpbox And playbook should be execute on respective machine…

---

## [I have a query regarding how to print difference between an ansible output and customer expected value.](https://forum.ansible.com/t/i-have-a-query-regarding-how-to-print-difference-between-an-ansible-output-and-customer-expected-value/36233)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 5:59pm UTC](https://forum.ansible.com/t/i-have-a-query-regarding-how-to-print-difference-between-an-ansible-output-and-customer-expected-value/36233 "2022-01-22T17:59:19Z")

</div>

As per my role \[root@ansible-master tasks\]# cat main.yml — # tasks file for Security\_Info\_Tab8 - shell: grep -v ^# /etc/xinetd.d/telnet | grep -i disable register: telnet\_setting changed\_when: false - assert: that: - lo…

---

## [seeking help with problem when using gather\_facts](https://forum.ansible.com/t/seeking-help-with-problem-when-using-gather-facts/36240)

<div class="topic-metadata">

**Author:** [@Zack\_May](https://forum.ansible.com/u/Zack_May)\
**Replies:** 2\
**Last updated:** [January 22, 2022, 5:47pm UTC](https://forum.ansible.com/t/seeking-help-with-problem-when-using-gather-facts/36240 "2022-01-22T17:47:12Z")

</div>

I’m hoping someone can help me figure out what is going on within my ansible environment. When I try and use gather\_facts inside a playbook I get a failure to connect over ssh to that system. However, if I do not gather\_…

---

## [to\_json filter (sometimes) turns values into strings](https://forum.ansible.com/t/to-json-filter-sometimes-turns-values-into-strings/36239)

<div class="topic-metadata">

**Author:** [@jriendeau](https://forum.ansible.com/u/jriendeau)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 1:45am UTC](https://forum.ansible.com/t/to-json-filter-sometimes-turns-values-into-strings/36239 "2022-01-22T01:45:41Z")

</div>

Hi all, It seems like the to\_json filter behaves differently depending on: Whether it’s passed the result of a template call directly, or whether the result of the template call is placed into a fact first Whether the…

---

## [Ansible playbook for DNS addition for windows servers](https://forum.ansible.com/t/ansible-playbook-for-dns-addition-for-windows-servers/36226)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 8:44pm UTC](https://forum.ansible.com/t/ansible-playbook-for-dns-addition-for-windows-servers/36226 "2022-01-21T20:44:18Z")

</div>

Hi Guys, Please help me for windows dns addition playbook for adding A record, PTR record and Cname record. If anyone had any sample playbook that will be helpful. Thank you in advance.

---

## [Add/substract to list items - but without a loop](https://forum.ansible.com/t/add-substract-to-list-items-but-without-a-loop/36235)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 5\
**Last updated:** [January 21, 2022, 7:05pm UTC](https://forum.ansible.com/t/add-substract-to-list-items-but-without-a-loop/36235 "2022-01-21T19:05:30Z")

</div>

Hi I have this list of ints: selection: 1 4 5 7 I’d like to subtract 1 from each item, so that I will end up with: selection: 0 3 4 6 I’d like to avoid adding an intermediary set\_fact loop to do the math. If I …

---

## [Use ansible-test with custom yamllint config](https://forum.ansible.com/t/use-ansible-test-with-custom-yamllint-config/36237)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 6:45pm UTC](https://forum.ansible.com/t/use-ansible-test-with-custom-yamllint-config/36237 "2022-01-21T18:45:08Z")

</div>

I am trying to use ansible-test to test my collections. So far, ansile-test seems too opinionated of a tool for general-purpose use. For instance, I am trying to use a custom yamlling config with it but i cant find a way…

---

## [is ~/.bashrc of a become\_user read upon TASK execution?](https://forum.ansible.com/t/is-bashrc-of-a-become-user-read-upon-task-execution/36222)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 8\
**Last updated:** [January 21, 2022, 4:08pm UTC](https://forum.ansible.com/t/is-bashrc-of-a-become-user-read-upon-task-execution/36222 "2022-01-21T16:08:44Z")

</div>

can anybody tell me whether the ~/.bashrc of a become\_user is being read on TASK execution, so you could rely on aliases, environment variables or PATH to be effective?

---

## [file ... directory only created on 2nd run](https://forum.ansible.com/t/file-directory-only-created-on-2nd-run/36232)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 12:48pm UTC](https://forum.ansible.com/t/file-directory-only-created-on-2nd-run/36232 "2022-01-21T12:48:07Z")

</div>

I have this TASK in a roles tasks/main.yml it reliably (almost 100% of the occassions I’d say) fails to create the directory ‘data’ on the 1st run of the playbook. Also with 100% reliabilty it succeeds with this on a 2…

---

## [Pip upgrade pip failing in ansible](https://forum.ansible.com/t/pip-upgrade-pip-failing-in-ansible/36234)

<div class="topic-metadata">

**Author:** [@Morgan\_Pimblett](https://forum.ansible.com/u/Morgan_Pimblett)\
**Replies:** 0\
**Last updated:** [January 21, 2022, 12:12pm UTC](https://forum.ansible.com/t/pip-upgrade-pip-failing-in-ansible/36234 "2022-01-21T12:12:33Z")

</div>

I’ve upgraded my virtualbox to bento/ubuntu-20.04 and I’m trying to rebuild the vm. The machine boots OK. I’ve had to make some changes to the ansible playbook but I’m stuck on the upgrade pip task. name: upgrade pip …

---

## [ansible playbook to create aws storage gateway](https://forum.ansible.com/t/ansible-playbook-to-create-aws-storage-gateway/36230)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 9:24am UTC](https://forum.ansible.com/t/ansible-playbook-to-create-aws-storage-gateway/36230 "2022-01-21T09:24:19Z")

</div>

I create an ec2 appliance with ansible. now I want to have another role to create the file storage gateway any idea how to do this? I dont see anything for aws storage gateway in ansible doc

---

## [roles - apply variable values from /defaults/main.yml](https://forum.ansible.com/t/roles-apply-variable-values-from-defaults-main-yml/36228)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 3\
**Last updated:** [January 21, 2022, 6:50am UTC](https://forum.ansible.com/t/roles-apply-variable-values-from-defaults-main-yml/36228 "2022-01-21T06:50:39Z")

</div>

using roles with this type of structure and face a problem with variable values apparently not being applied from the /defaults/main.yml role01 \_\_/tasks \_\_main.yml \_\_/defaults \_\_main.yml As far my un…

---

## [The "mount' module and adding a mount option](https://forum.ansible.com/t/the-mount-module-and-adding-a-mount-option/36213)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 2\
**Last updated:** [January 21, 2022, 3:32am UTC](https://forum.ansible.com/t/the-mount-module-and-adding-a-mount-option/36213 "2022-01-21T03:32:29Z")

</div>

I’ve got a variety of mounts that I want to ensure specific flags are set on each. For other reasons, the mounts don’t have the same flags. I mistakenly thought the ‘mount’ module would ensure each had the flag, but ins…

---

## [Looping over l2\_interfaces only show the interface name](https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229)

<div class="topic-metadata">

**Author:** [@L\_Jankok](https://forum.ansible.com/u/L_Jankok)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 8:53pm UTC](https://forum.ansible.com/t/looping-over-l2-interfaces-only-show-the-interface-name/36229 "2022-01-20T20:53:00Z")

</div>

Hi, In the past when I have used ansible\_network\_resources.l2\_interfaces it provided me with a dictionary. But now I am getting a class type list variable instead of a dictionary (which is odd). Therefore I am missing a…

---

## [Ansible + ACI very slow execution](https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227)

<div class="topic-metadata">

**Author:** [@JP1](https://forum.ansible.com/u/JP1)\
**Replies:** 0\
**Last updated:** [January 20, 2022, 8:13am UTC](https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227 "2022-01-20T08:13:46Z")

</div>

Hi, I wrote playbook that should assign static port mappings in 130 EPG for 25 interfaces and it took about 1 hour to execute. Playbook : name: Do static port mapping include: do\_static\_binding.yaml with\_items: “{{…

---

## [Can I modify Ansible 'remote\_tmp' on a per task basis?](https://forum.ansible.com/t/can-i-modify-ansible-remote-tmp-on-a-per-task-basis/36217)

<div class="topic-metadata">

**Author:** [@BOB\_BOB](https://forum.ansible.com/u/BOB_BOB)\
**Replies:** 3\
**Last updated:** [January 19, 2022, 6:50pm UTC](https://forum.ansible.com/t/can-i-modify-ansible-remote-tmp-on-a-per-task-basis/36217 "2022-01-19T18:50:49Z")

</div>

I am running some tasks with delegate\_to. When those tasks run, they use the same remote\_tmp directory setup from the ansible.cfg. However, due to permissions and directory size issues, I need to change the remote\_tmp di…

---

## [ansible\_fqdn only contains the hostname](https://forum.ansible.com/t/ansible-fqdn-only-contains-the-hostname/19494)

<div class="topic-metadata">

**Author:** [@Toby\_Corkindale](https://forum.ansible.com/u/Toby_Corkindale)\
**Replies:** 6\
**Last updated:** [January 19, 2022, 3:35pm UTC](https://forum.ansible.com/t/ansible-fqdn-only-contains-the-hostname/19494 "2022-01-19T15:35:42Z")

</div>

I’ve been having trouble with this for a while… On Ubuntu 14.04 (current LTS), the ansible\_fqdn variable often only contains the hostname, not the hostname+domainname. I’ve tried to fix this by having ansible insert a …

---

## [I cannot see your replies to my post](https://forum.ansible.com/t/i-cannot-see-your-replies-to-my-post/36224)

<div class="topic-metadata">

**Author:** [@Kevin\_Y](https://forum.ansible.com/u/Kevin_Y)\
**Replies:** 1\
**Last updated:** [January 19, 2022, 3:23pm UTC](https://forum.ansible.com/t/i-cannot-see-your-replies-to-my-post/36224 "2022-01-19T15:23:32Z")

</div>

Hi please see the below. It looks like my post has 3 replies. but when i clicked on it, I can see no body’s reply. what is wrong? Thank you

---

## [Error while re-directing ansible playbook output.](https://forum.ansible.com/t/error-while-re-directing-ansible-playbook-output/36223)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 11:02am UTC](https://forum.ansible.com/t/error-while-re-directing-ansible-playbook-output/36223 "2022-01-19T11:02:59Z")

</div>

Hi All, I have a simple playbook where I am re-directing output of crontab -l command. However its gives me an empty output file once the playbook is executed. Any suggestion please.

---

## [Install lxml for community.general.xml](https://forum.ansible.com/t/install-lxml-for-community-general-xml/36221)

<div class="topic-metadata">

**Author:** [@Jason\_Wood](https://forum.ansible.com/u/Jason_Wood)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 5:45am UTC](https://forum.ansible.com/t/install-lxml-for-community-general-xml/36221 "2022-01-19T05:45:01Z")

</div>

I am running Ansible on Ubuntu 20.04. I’d like to use the community.general.xml module. I get a “ModuleNotFoundError” relating to lxml when I try to run the playbook. I tried sudo apt-get install python3-lxml There w…

---

## [Help with acme\_certificate / letsencrypt and empty challenge\_data](https://forum.ansible.com/t/help-with-acme-certificate-letsencrypt-and-empty-challenge-data/36214)

<div class="topic-metadata">

**Author:** [@Jason\_Wood](https://forum.ansible.com/u/Jason_Wood)\
**Replies:** 9\
**Last updated:** [January 19, 2022, 12:43am UTC](https://forum.ansible.com/t/help-with-acme-certificate-letsencrypt-and-empty-challenge-data/36214 "2022-01-19T00:43:17Z")

</div>

I’m fairly new to this. I’m using ansible 2.9.6 on Ubuntu 20.04. I followed the Digital Ocean tutorial to get started with letsencrypt/acme\_certificate The problem I run into is that if I run the play again, I get an e…

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

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