Skip to content

Conversation

@jonwolski
Copy link
Contributor

I was getting errors with this playbook when executing "include OS family/distribution specific variables." Even though my ansible_os_family is RedHat, with_first_found was finding no results. (I am running Centos 7, but I confirmed the RedHat value in the ansible facts with ansible all -m setup.)

When I prepended the defaults/... relative path with {{ role_path }}, this playbook ran successfully.

I was getting errors with this playbook when executing "include OS
family/distribution specific variables." Even though my
`ansible_os_family` is `RedHat`, `with_first_found` was finding no
results. (I am running Centos 7, but I confirmed the `RedHat` value
in the ansible facts with `ansible all -m setup`.)

When I prepended the `defaults/...` relative path with `{{ role_path
}}`, this playbook ran successfully.
@steenzout
Copy link
Member

@jonwolski which ansible version was it breaking with?

@jonwolski
Copy link
Contributor Author

jonwolski commented Jun 19, 2017

@steenzout

$ ansible --version
ansible 2.2.0.0
  config file =
  configured module search path = Default w/o overrides
$ uname -a
Darwin Wolskis-MacBook-Semi-Pro.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

@jonwolski
Copy link
Contributor Author

FWIW, I was applying this role from a role defined outside of my standard roles directory.

I have something like https://gist.github.com/jonwolski/aa235a5d3e774a08df8e0d40b48a4a48 checked out on my Macos box at ~/workspace/infrastructure.

When I run ansible-galaxy install -r requirements.yml, the ansiblebit.oracle-java role is installed in /usr/local/etc/ansible/roles. However, this is referenced in a playbook (site.yml) found in a sub-directory of my home directory.

@steenzout steenzout changed the base branch from master to develop June 19, 2017 18:43
@steenzout
Copy link
Member

@jonwolski no problem.
I just wanted to know which version so I keep a close eye on it when I run my tests.

thank you!

@steenzout steenzout merged commit 1e63481 into ansiblebit:develop Jun 19, 2017
@jonwolski
Copy link
Contributor Author

My pleasure. Thanks.

@steenzout
Copy link
Member

merged with `master: https://github.com/ansiblebit/oracle-java/releases/tag/5.14.10

@jonwolski if you use this role please star it.

cheers!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants