# AAP playbook issue - Could not match supplied host patter, ignoring: xxx

**URL:** <https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725>\
**Category:** Get Help\
**Tags:** playbook, aap, inventory\
**Created:** [May 10, 2024, 11:03am UTC](https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725 "2024-05-10T11:03:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![3y3l](https://avatars.discourse-cdn.com/v4/letter/3/e36b37/32.png) [@3y3l](https://forum.ansible.com/u/3y3l)\
**Post date:** [May 10, 2024, 11:03am UTC](https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725/1 "2024-05-10T11:03:11Z")

</div>

Hello,

I have a playbook, I run it on my server with command (sth like ansible-playbook myplaybook.yml -i myinventory.yml -e @myvariables.yml) first , it worked well.

My goal is to run it on AAP (ansible automation platform) console, so I configured a job template, set variables and inventory file for it, but when I run it, it gave me a warning like below “Could not match supplied host patter, ignoring: xxx”, the playbook just stopped, however, if I run it with command on my ansible server, playbook could run and gave me the expected result

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/e/e9a089584cd0e562f9f641c7b699cef543957694.png)

At this point, I think I did NOT configure the inventory correctly for my playbook, I copied the content from myinventory.yml and pasted it in the variables of the inventory record in AAP console, please see the picture above

I tried to search for some instructions about how to configure inventory in AAP console, but there is limited information about it, it’s appreciated if anyone can provide some information about how to configure inventory on AAP console.

---

<div class="post-metadata">

**Author:** ![akira6592](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akira6592/32/222_2.png) [@akira6592](https://forum.ansible.com/u/akira6592)\
**Post date:** [May 11, 2024, 12:33pm UTC](https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725/2 "2024-05-11T12:33:14Z")

</div>

@3y3l Hello!

The Variables textarea in Inventory screen is textarea for inventory variables NOT inventory host data.

The following “19.4. Add a new inventory” will help you set up the inventory host data.

[https://docs.ansible.com/automation-controller/latest/html/userguide/inventories.html#add-a-new-inventory](https://docs.ansible.com/automation-controller/latest/html/userguide/inventories.html#add-a-new-inventory)

---

<div class="post-metadata">

**Author:** ![nsavich](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nsavich](https://forum.ansible.com/u/nsavich)\
**Post date:** [May 11, 2024, 12:43pm UTC](https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725/3 "2024-05-11T12:43:21Z")

</div>

If you store your inventory file in your SCM repo you can import it into AAP. Otherwise you’ll need to add your hosts to the inventory that matches your inventory on the server.

[https://access.redhat.com/documentation/en-us/red\_hat\_ansible\_automation\_platform/2.4/html/automation\_controller\_administration\_guide/assembly-inventory-file-importing](https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4/html/automation_controller_administration_guide/assembly-inventory-file-importing)

---

<div class="post-metadata">

**Author:** ![3y3l](https://avatars.discourse-cdn.com/v4/letter/3/e36b37/32.png) [@3y3l](https://forum.ansible.com/u/3y3l)\
**Post date:** [May 13, 2024, 1:47pm UTC](https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725/4 "2024-05-13T13:47:51Z")

</div>

Hello, thanks for your reply, I checked the doc and have fixed this issue successfully.

---

<div class="post-metadata">

**Author:** ![3y3l](https://avatars.discourse-cdn.com/v4/letter/3/e36b37/32.png) [@3y3l](https://forum.ansible.com/u/3y3l)\
**Post date:** [May 13, 2024, 1:48pm UTC](https://forum.ansible.com/t/aap-playbook-issue-could-not-match-supplied-host-patter-ignoring-xxx/5725/5 "2024-05-13T13:48:45Z")

</div>

Hello, thanks for your reply, I have checked the official documents and fixed this issue.
