# Ansible WSL2

**URL:** <https://forum.ansible.com/t/ansible-wsl2/33988>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [October 8, 2020, 1:18pm UTC](https://forum.ansible.com/t/ansible-wsl2/33988 "2020-10-08T13:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alistair\_MacCallum](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Alistair\_MacCallum](https://forum.ansible.com/u/Alistair_MacCallum)\
**Post date:** [October 8, 2020, 1:18pm UTC](https://forum.ansible.com/t/ansible-wsl2/33988/1 "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 comes to running a playbookwith the following command

**ansible-playbook play\_aio.yml --limit=OFF00002.my.domain --ask-vault-pass --list-hosts**

I get

**[WARNING]: Could not match supplied host pattern, ignoring: OFF00002.bascom.local**  
**ERROR! Specified hosts and/or --limit does not match any hosts**

Even though when I run the lis command

**ansible all --list**

I can see the machine I’m trying to target.

Any Ideas?
