On 15.07.2018 20:35, Deanosim wrote:
> I'm learning Ansible and other things from this guide
>
https://github.com/Artemmkin/infrastructure-as-code-tutorial/blob/master/docs/06-ansible.md
> Only problem is whenever I try and run deply.yml I get
> [WARNING]: provided hosts list is empty, only localhost is available.
> Note
> that the implicit localhost does not match
> 'all'
>
> [WARNING]: Could not match supplied host pattern, ignoring: raddit-app
>
>
> PLAY [Deploy Raddit App]
> ***********************************************************************************************
> skipping: no hosts matched
>
> PLAY RECAP
> *************************************************************************************************************
>
> I know this is probably caused by the fact the guide was written for
> 2.4 of
> Ansible but I'd like to update it to use 2.6 aka the latest.
I highly doubt it since this part haven't change for many versions.
> I can post my hosts.yml deply.yml and ansiblecfg if needed, but all
> that
> same info is in the guide I linked.
You would need to, if not we are left to speculate and guess and that is
not very productive.
> Any help would be very much appreciated as I'm a noob when It comes to
> Ansible and I really want to learn it better.
The important thing when you need help is to provide as much information
that you can.
A little to much information is better then to little.
--
Kai Stian Olstad