# Ansible Project

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

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

**Page:** 101

---

## [ansible send an email with "OK" status if url is accessible.](https://forum.ansible.com/t/ansible-send-an-email-with-ok-status-if-url-is-accessible/34002)

<div class="topic-metadata">

**Author:** [@priyanka\_prabhune](https://forum.ansible.com/u/priyanka_prabhune)\
**Replies:** 2\
**Last updated:** [October 10, 2020, 6:15am UTC](https://forum.ansible.com/t/ansible-send-an-email-with-ok-status-if-url-is-accessible/34002 "2020-10-10T06:15:37Z")

</div>

Hi, I have written the ansible playbook to check the url, but I need an email just with “OK” status if the response is 200. Can you please help me with this? Thanks.

---

## [Want some help regrading set\_fact variable when condition](https://forum.ansible.com/t/want-some-help-regrading-set-fact-variable-when-condition/33999)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [October 9, 2020, 3:46pm UTC](https://forum.ansible.com/t/want-some-help-regrading-set-fact-variable-when-condition/33999 "2020-10-09T15:46:21Z")

</div>

Hi team I am using set\_fact module to get output variable with regular expression.

---

## [ansible.builtin.setup does not list partition uuid](https://forum.ansible.com/t/ansible-builtin-setup-does-not-list-partition-uuid/33995)

<div class="topic-metadata">

**Author:** [@Claude\_Robitaille](https://forum.ansible.com/u/Claude_Robitaille)\
**Replies:** 0\
**Last updated:** [October 9, 2020, 1:51pm UTC](https://forum.ansible.com/t/ansible-builtin-setup-does-not-list-partition-uuid/33995 "2020-10-09T13:51:22Z")

</div>

Hello, I am using ansible to setup a machine, after booting it via a usb drive. In my plays I obviously have to partition the disk as needed. For this, I am using community.general.parted without any trouble. After par…

---

## [Issue with using task files/playbook in ad hoc commands and in roles](https://forum.ansible.com/t/issue-with-using-task-files-playbook-in-ad-hoc-commands-and-in-roles/33992)

<div class="topic-metadata">

**Author:** [@Mouton\_Noir](https://forum.ansible.com/u/Mouton_Noir)\
**Replies:** 2\
**Last updated:** [October 9, 2020, 11:53am UTC](https://forum.ansible.com/t/issue-with-using-task-files-playbook-in-ad-hoc-commands-and-in-roles/33992 "2020-10-09T11:53:19Z")

</div>

Hi, Newbie to Ansible, but I already made a lot of things with it. One thing, though, I can’t do is re-use a task file for adhoc commands or re-use a playbook in another playbook : For example, I use a task file (R\_pa…

---

## [Handle multiple users inside a playbook](https://forum.ansible.com/t/handle-multiple-users-inside-a-playbook/33993)

<div class="topic-metadata">

**Author:** [@Daniele\_Calzetti](https://forum.ansible.com/u/Daniele_Calzetti)\
**Replies:** 0\
**Last updated:** [October 9, 2020, 10:27am UTC](https://forum.ansible.com/t/handle-multiple-users-inside-a-playbook/33993 "2020-10-09T10:27:20Z")

</div>

I have a playbook where I access as user without privigiles, then i become root with become: yes and --ask-become-pass. At some point I have few task that require to be executed as another user (apache), for example: n…

---

## [Vagrant box not getting set up running under WSL2](https://forum.ansible.com/t/vagrant-box-not-getting-set-up-running-under-wsl2/33989)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 2\
**Last updated:** [October 8, 2020, 9:32pm UTC](https://forum.ansible.com/t/vagrant-box-not-getting-set-up-running-under-wsl2/33989 "2020-10-08T21:32:32Z")

</div>

Vagrant version: Vagrant 2.2.10 Host OS: Windows 10 (20045, May 2020) Guest OS: Ubuntu 18.04 (tried with 16.04, 20.04) Vagrantfile: Vagrant.configure(“2”) do |config| config.vm.box = “ubuntu/trusty64” config.vm.…

---

## [change in reporting in 2.10.1?](https://forum.ansible.com/t/change-in-reporting-in-2-10-1/33924)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 6\
**Last updated:** [October 8, 2020, 7:35pm UTC](https://forum.ansible.com/t/change-in-reporting-in-2-10-1/33924 "2020-10-08T19:35:38Z")

</div>

After updating (pip uninstall, then re-install) and running an adhoc command, say ansible -m ping all I’m seeing many pages of info messages, of the form task 1: \[Continuously incrementing list of hosts\] ok: HOST ok…

---

## [Ansible Facts vs Ansible OS](https://forum.ansible.com/t/ansible-facts-vs-ansible-os/33960)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 4\
**Last updated:** [October 8, 2020, 3:45pm UTC](https://forum.ansible.com/t/ansible-facts-vs-ansible-os/33960 "2020-10-08T15:45:06Z")

</div>

Hello All, I have a general question! When should I use ansible\_facts.distribution vs ansible\_os\_family or are they interchangeable? Is one better than the other? Thanks,

---

## [Email format validation](https://forum.ansible.com/t/email-format-validation/33982)

<div class="topic-metadata">

**Author:** [@Larry\_Bakun](https://forum.ansible.com/u/Larry_Bakun)\
**Replies:** 3\
**Last updated:** [October 8, 2020, 2:35pm UTC](https://forum.ansible.com/t/email-format-validation/33982 "2020-10-08T14:35:57Z")

</div>

Can someone please help with an example code how to validate email string format with regex? I have a code that doesn’t work: vars: emailRegExpression: “\[1\]+@(\[\\w-\]+\\.)+\[\\w-\]{2,4}$” emailAddress: “myemail@domain.com” …

---

## [Ansible WSL2](https://forum.ansible.com/t/ansible-wsl2/33988)

<div class="topic-metadata">

**Author:** [@Alistair\_MacCallum](https://forum.ansible.com/u/Alistair_MacCallum)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 1:18pm UTC](https://forum.ansible.com/t/ansible-wsl2/33988 "2020-10-08T13:18:52Z")

</div>

Hi All, Trying to move my Ansible install from an Ubuntu 18 VM to WSL2 Ubuntu 18 and running into some weird issues. Installed Ansible fine and cloned repo that includes all my inventory, playbooks, vars etc but when it…

---

## [pip install list of packages](https://forum.ansible.com/t/pip-install-list-of-packages/33969)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 3\
**Last updated:** [October 8, 2020, 12:04pm UTC](https://forum.ansible.com/t/pip-install-list-of-packages/33969 "2020-10-08T12:04:20Z")

</div>

Hi If I'm using pip with name being a list of packages, for instance: - name: Install stuff pip: name: - pyyaml - natsort - passlib Then the module will do "pip install pyyaml natsort pass…

---

## [Push Configuration file into router](https://forum.ansible.com/t/push-configuration-file-into-router/33980)

<div class="topic-metadata">

**Author:** [@L\_T](https://forum.ansible.com/u/L_T)\
**Replies:** 2\
**Last updated:** [October 8, 2020, 11:53am UTC](https://forum.ansible.com/t/push-configuration-file-into-router/33980 "2020-10-08T11:53:18Z")

</div>

Hello all, I am configuring Cisco Router through Ansible tower(2.9). I am able to take backup of the Running configuration in file. How can i push back the same running configuration through file in the router. Pleas…

---

## [Cannot run gcp\_storage\_object module on windows target machine](https://forum.ansible.com/t/cannot-run-gcp-storage-object-module-on-windows-target-machine/33987)

<div class="topic-metadata">

**Author:** [@tejaswini\_tharigopul](https://forum.ansible.com/u/tejaswini_tharigopul)\
**Replies:** 0\
**Last updated:** [October 8, 2020, 7:07am UTC](https://forum.ansible.com/t/cannot-run-gcp-storage-object-module-on-windows-target-machine/33987 "2020-10-08T07:07:45Z")

</div>

Please refer : https://github.com/ansible/ansible/issues/72149#issue-717076951

---

## [can we pass a wildcard in a module's parameter's value ?](https://forum.ansible.com/t/can-we-pass-a-wildcard-in-a-modules-parameters-value/33984)

<div class="topic-metadata">

**Author:** [@Nic\_H](https://forum.ansible.com/u/Nic_H)\
**Replies:** 6\
**Last updated:** [October 8, 2020, 6:41am UTC](https://forum.ansible.com/t/can-we-pass-a-wildcard-in-a-modules-parameters-value/33984 "2020-10-08T06:41:41Z")

</div>

hi, again a very simple use case in appearance but that is driving me nuts to realize with ansible, anyone ever done : tasks: name: run a module any\_module: users: {{item}} # I want to loop first here state: absent …

---

## [Ansible installation-Centos](https://forum.ansible.com/t/ansible-installation-centos/33970)

<div class="topic-metadata">

**Author:** [@Tanvir\_Hossain](https://forum.ansible.com/u/Tanvir_Hossain)\
**Replies:** 3\
**Last updated:** [October 7, 2020, 10:31am UTC](https://forum.ansible.com/t/ansible-installation-centos/33970 "2020-10-07T10:31:44Z")

</div>

My production server is running on Centos 7.7. I want to install ansible. But due to no internet connection available, I am facing issues while installing the rpms , there are so many dependencies, that literally approac…

---

## [lxml.etree.XMLSyntaxError using python3.6](https://forum.ansible.com/t/lxml-etree-xmlsyntaxerror-using-python3-6/33940)

<div class="topic-metadata">

**Author:** [@angelo\_coluni](https://forum.ansible.com/u/angelo_coluni)\
**Replies:** 7\
**Last updated:** [October 6, 2020, 11:31pm UTC](https://forum.ansible.com/t/lxml-etree-xmlsyntaxerror-using-python3-6/33940 "2020-10-06T23:31:24Z")

</div>

Setup: ansible 2.9.13 config file = /etc/ansible/ansible.cfg configured module search path = \[‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’\] ansible python module location = /usr/lib/python3.…

---

## [How to get response of Ansible telnet module](https://forum.ansible.com/t/how-to-get-response-of-ansible-telnet-module/33977)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 8:48pm UTC](https://forum.ansible.com/t/how-to-get-response-of-ansible-telnet-module/33977 "2020-10-06T20:48:49Z")

</div>

Below are couple of IP addresses and their telnet response (output) telnet 10.9.9.112 22Trying 10.9.9.112… telnet 10.9.9.143 22 Trying 10.9.9.143… telnet: connect to address 10.9.9.143: Connection refused. For the f…

---

## [Timeout (12s) waiting for privilege escalation prompt](https://forum.ansible.com/t/timeout-12s-waiting-for-privilege-escalation-prompt/33973)

<div class="topic-metadata">

**Author:** [@SP1](https://forum.ansible.com/u/SP1)\
**Replies:** 1\
**Last updated:** [October 6, 2020, 7:04pm UTC](https://forum.ansible.com/t/timeout-12s-waiting-for-privilege-escalation-prompt/33973 "2020-10-06T19:04:01Z")

</div>

Hi, Am getting “Timeout (12s) waiting for privilege escalation prompt” while using become\_user: test\_user. I opened issue in github and redirected here. https://github.com/ansible/ansible/issues/72111 sudo has been g…

---

## [Minimal ansible 2.10.x installation](https://forum.ansible.com/t/minimal-ansible-2-10-x-installation/33958)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev1](https://forum.ansible.com/u/Anand_Buddhdev1)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 5:05pm UTC](https://forum.ansible.com/t/minimal-ansible-2-10-x-installation/33958 "2020-10-06T17:05:47Z")

</div>

Hi folks, Now that ansible’s code has been reorganised, I have a question about how to do a minimal installation. I am interested in just these 3 things: ansible-base ansible.posix collection community collection I c…

---

## [Are loop devices supported as OSD disks?](https://forum.ansible.com/t/are-loop-devices-supported-as-osd-disks/33974)

<div class="topic-metadata">

**Author:** [@Stephen\_Longofono](https://forum.ansible.com/u/Stephen_Longofono)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 5:01pm UTC](https://forum.ansible.com/t/are-loop-devices-supported-as-osd-disks/33974 "2020-10-06T17:01:22Z")

</div>

I’m working on a minimal ceph deployment onto ubuntu 18.04 server VMs with loop devices. For my osds, the task “run ceph-volume lvm batch --report” is failing, apparently because the size key is never populated in ceph\_v…

---

## [Include\_roles with block/always(rescue)](https://forum.ansible.com/t/include-roles-with-block-always-rescue/33961)

<div class="topic-metadata">

**Author:** [@Dorin\_RuV](https://forum.ansible.com/u/Dorin_RuV)\
**Replies:** 4\
**Last updated:** [October 6, 2020, 10:43am UTC](https://forum.ansible.com/t/include-roles-with-block-always-rescue/33961 "2020-10-06T10:43:41Z")

</div>

Hi guys, I have 3 roles: role A: which needs to be executed on localhost role B: which needs to run on a remote host role C: which is a rescue role that cleans up some things which role A did on localhost (this one sh…

---

## [Get stopped service name using Ansible playbook](https://forum.ansible.com/t/get-stopped-service-name-using-ansible-playbook/33968)

<div class="topic-metadata">

**Author:** [@eh1](https://forum.ansible.com/u/eh1)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 9:48am UTC](https://forum.ansible.com/t/get-stopped-service-name-using-ansible-playbook/33968 "2020-10-06T09:48:33Z")

</div>

Hello, I’m trying to get stopped ServiceNow MID server services name using following ansible playbook. (The services should be on path containing servicenow\_load or ServiceNow\_Prod and state: stopped.) tasks: name:…

---

## [Ansible URI module with Azure LogicApp](https://forum.ansible.com/t/ansible-uri-module-with-azure-logicapp/33966)

<div class="topic-metadata">

**Author:** [@Diya\_Sharon\_Leo](https://forum.ansible.com/u/Diya_Sharon_Leo)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 7:41am UTC](https://forum.ansible.com/t/ansible-uri-module-with-azure-logicapp/33966 "2020-10-06T07:41:06Z")

</div>

Hi, I am looking to automate deployment of azure logic apps via ansible. Is there a way to manage (create/update) azure logic apps using Ansible URI module? I am not able to get information regarding this on the intern…

---

## [ansible unable to open shell](https://forum.ansible.com/t/ansible-unable-to-open-shell/33967)

<div class="topic-metadata">

**Author:** [@Qingsong\_Tian](https://forum.ansible.com/u/Qingsong_Tian)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 7:03am UTC](https://forum.ansible.com/t/ansible-unable-to-open-shell/33967 "2020-10-06T07:03:13Z")

</div>

the Error messages list below: 2020-10-05 21:15:53,915 paramiko.hostkeys Unable to handle key of type ssh-ed25519 2020-10-05 21:15:53,915 paramiko.hostkeys Unable to handle key of type ssh-ed25519 2020-10-05 21:15:53,…

---

## [New Ansible releases 2.9.14 and 2.8.16](https://forum.ansible.com/t/new-ansible-releases-2-9-14-and-2-8-16/33965)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 12:20am UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-14-and-2-8-16/33965 "2020-10-06T00:20:23Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.9.14 and 2.8.16 are now available! How do you get it?

---

## [New release: ansible-base 2.10.2](https://forum.ansible.com/t/new-release-ansible-base-2-10-2/33964)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 12:16am UTC](https://forum.ansible.com/t/new-release-ansible-base-2-10-2/33964 "2020-10-06T00:16:02Z")

</div>

Hi all- we're happy to announce that the general release of ansible-base 2.10.2 is now available! How to get it

---

## [Configure ports based on mode trunk or access](https://forum.ansible.com/t/configure-ports-based-on-mode-trunk-or-access/33962)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 0\
**Last updated:** [October 5, 2020, 8:33pm UTC](https://forum.ansible.com/t/configure-ports-based-on-mode-trunk-or-access/33962 "2020-10-05T20:33:13Z")

</div>

I am a bit new to ansible, I am ok at making playbooks on static devices. What I would like to do is make a playbook that is sort of universal. I would like to add a vlan to a cisco switch then automatically add it to al…

---

## [Ansible-runner capabilities with ansible-builder containers](https://forum.ansible.com/t/ansible-runner-capabilities-with-ansible-builder-containers/33914)

<div class="topic-metadata">

**Author:** [@James\_Allen](https://forum.ansible.com/u/James_Allen)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 6:20pm UTC](https://forum.ansible.com/t/ansible-runner-capabilities-with-ansible-builder-containers/33914 "2020-10-05T18:20:37Z")

</div>

Hello, I was experimenting with ansible-builder (https://github.com/ansible/ansible-builder/) to create isolated Ansible environments. I see in the ansible-builder docs that ansible-runner (starting in 2.0) can leverage…

---

## [How to use ansible-cmdb with ansible playbook?](https://forum.ansible.com/t/how-to-use-ansible-cmdb-with-ansible-playbook/33959)

<div class="topic-metadata">

**Author:** [@priyanka\_prabhune](https://forum.ansible.com/u/priyanka_prabhune)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 10:51am UTC](https://forum.ansible.com/t/how-to-use-ansible-cmdb-with-ansible-playbook/33959 "2020-10-05T10:51:41Z")

</div>

Hi, How can we use ansible-cmdb with ansible playbook? Can anyone please help me with this?

---

## [Using Yum module for Satellite repo](https://forum.ansible.com/t/using-yum-module-for-satellite-repo/33957)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 3\
**Last updated:** [October 5, 2020, 4:59am UTC](https://forum.ansible.com/t/using-yum-module-for-satellite-repo/33957 "2020-10-05T04:59:43Z")

</div>

Hi Ansible Gurus, I have set up satellite server for hosting my RHEL based rpms. This is the snippet how my repo looks like: \[rhel-7rpms\] metadata\_expire = 1 enabled\_metadata = 0 sslclientcert = abc.pem baseurl = h…

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

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