Hi Dude,

It is name mismatch problem in hosts file it is *win-mssql* and in  yml
it's *win_mssql*


On Tue, Feb 12, 2019, 12:07 AM lalo andres <[email protected] wrote:

> Hello community,
> I am trying to generate a playbook using roles, but at the moment of
> executing the playbook it does not recognize the inventory hosts and does
> not execute the ROL
>
> My structure:
>
> [image: Capture.PNG]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> my inventorie .yml:
>
> win-mssql:
>  hosts:
>   lab-sql1.e-contact.cl
>
>
>
> deploy_win_mssql.yml:
>
> ---
> - name: Install SQL Server
>   hosts: win_mssql
>
>   roles:
>    - roles/mssql/setup
>
>
> main.yml:
>
> ---
> #---- Instalcion de SQL segun version ---
> - include_tasks: "setup-sql-2016.yml"
>
>
>
> command to execute:
>
>  ansible-playbook /etc/ansible/deploy_win_mssql.yml -i
> /etc/ansible/_inventories/staging/eco-sql-dev.ini -e
> @/etc/ansible/_creds/dev-creds.yml --vault-password-file /etc/ansible_pass
> -vvvv
>
> Error :
>
> PLAYBOOK: deploy_win_mssql.yml
> ************************************************************
> 1 plays in /etc/ansible/deploy_win_mssql.yml
>  [WARNING]: Could not match supplied host pattern, ignoring: win_mssql
>
>
> PLAY [Install SQL Server]
> *****************************************************************
> skipping: no hosts matched
>
> PLAY RECAP
> ********************************************************************************
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/d72d4632-3dca-47b7-9329-857d928ea13a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d72d4632-3dca-47b7-9329-857d928ea13a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAAcjD-X_0PLW9EaNniN4jx8%2B7403q_6E9wNCjnz8pQN3G3h1NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to