Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created March 1, 2019 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/d4f3bfcfe70c073fc6bec1048905bb83 to your computer and use it in GitHub Desktop.
Save dlangille/d4f3bfcfe70c073fc6bec1048905bb83 to your computer and use it in GitHub Desktop.
Ansible 2.7.0 with warnings about hostnames
$ ansible-playbook foo.yml
[WARNING]: Unable to parse /usr/local/etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[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: knew.int.unixathome.org
PLAY [knew.int.unixathome.org] *****************************************************************************************************************************************************
skipping: no hosts matched
PLAY RECAP *************************************************************************************************************************************************************************
$ cat foo.yml
- hosts: knew.int.unixathome.org
roles:
- logcheck
$ cat hosts
knew.int.unixathome.org
@dlangille
Copy link
Author

The answer is here: https://www.freshports.org/sysutils/ansible/

2018-11-04

Affects: users of sysutils/ansible*

Author: lifanov@FreeBSD.org

Reason: 
  Default Ansible configuration location changed to LOCALBASE/etc/ansible
  instead of a per-flavor directory. If you use system-wide Ansible
  configuration, please migrate from a flavored directory to a common
  one:

  # mv /usr/local/etc/py27-ansible /usr/local/etc/ansible


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment