# Issue trying to parse tag

**URL:** <https://forum.ansible.com/t/issue-trying-to-parse-tag/31781>\
**Category:** Ansible Developer\
**Tags:** kubernetes, ubuntu, aws\
**Created:** [December 6, 2019, 7:08pm UTC](https://forum.ansible.com/t/issue-trying-to-parse-tag/31781 "2019-12-06T19:08:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Del\_Pino1](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Christian\_Del\_Pino1](https://forum.ansible.com/u/Christian_Del_Pino1)\
**Post date:** [December 6, 2019, 7:08pm UTC](https://forum.ansible.com/t/issue-trying-to-parse-tag/31781/1 "2019-12-06T19:08:36Z")

</div>

Hi,

I am currently trying to connect to a newly created ec2 instance via a tag that I created, but I am getting an error during the run:

setting up inventory plugins  
host\_list declined parsing /Users/christiandelpino/stash-infra-shared/modules/aws/k8s/k8s-ansible/hosts/hosts as it did not pass its verify\_file() method  
script declined parsing /Users/christiandelpino/stash-infra-shared/modules/aws/k8s/k8s-ansible/hosts/hosts as it did not pass its verify\_file() method  
auto declined parsing /Users/christiandelpino/stash-infra-shared/modules/aws/k8s/k8s-ansible/hosts/hosts as it did not pass its verify\_file() method  
Set default localhost to localhost  
Parsed /Users/christiandelpino/stash-infra-shared/modules/aws/k8s/k8s-ansible/hosts/hosts inventory source with ini plugin  
META: inventory successfully refreshed  
META: ran handlers  
META: ran handlers

PLAY [Init] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: no hosts matched

The tag I am trying to connect to is init. My deploy task looks like this:

- name: Build out AWS Infrastructure  
hosts: localhost  
connection: local  
gather\_facts: False  
roles:

- role: aws

- name: Refresh Inventory  
hosts: localhost  
connection: local  
gather\_facts: False  
tasks:

- name: Refresh ec2 cache  
command: hosts/ec2.py --refresh-cache

- name: Refresh in-memory EC2 cache  
meta: refresh\_inventory

- name: Init  
hosts: tag\_type\_init  
gather\_facts: false  
remote\_user: ubuntu  
roles:

- role: init

When running verbose, I do see tag\_type\_init with the IP:

" "tag\_type\_init": [“,  
" "3.17.77.3"”,  
" ],",

This is the exact ansible command being run:

ansible-playbook --private-key …/…/…/…/…/Downloads/XXXXXX.pem deploy.yaml --inventory=hosts/hosts

I can provide further info if needed.

Thanks in advance.
