Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ansible_distribution' is undefined #5

Closed
ssbarnea opened this issue Mar 20, 2016 · 3 comments
Closed

'ansible_distribution' is undefined #5

ssbarnea opened this issue Mar 20, 2016 · 3 comments
Assignees
Milestone

Comments

@ssbarnea
Copy link

It seems that this role fails by complaining that the ansible_distribution is undefined, which obviously makes no sense.

TASK [ansiblebit.launchpad-ppa-webupd8 : if debian, include family specific task file] ***
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a future release. Deprecation warnings can be disabled by
 setting deprecation_warnings=False in ansible.cfg.
included: /Users/sorins/bmll/devops/roles.galaxy/ansiblebit.launchpad-ppa-webupd8/tasks/os_distribution/debian.yml for tower

TASK [ansiblebit.launchpad-ppa-webupd8 : debian is supported] ******************
fatal: [tower]: FAILED! => {"failed": true, "msg": "The conditional check '(ansible_distribution | lower == 'debian') or (ansible_distribution | lower == 'ubuntu')' failed. The error was: error while evaluating conditional ((ansible_distribution | lower == 'debian') or (ansible_distribution | lower == 'ubuntu')): 'ansible_distribution' is undefined"}
    to retry, use: --limit @cfg-tower.retry

This is not the first time when I encounter this, ansible 2.0.1.0

I am already using similar conditions other places and they work so it must be something else that is messing ansible.

@steenzout steenzout added this to the v4.0.0 milestone Mar 21, 2016
@steenzout
Copy link
Member

@ssbarnea ansible 2.0 isn't supported yet.

I've added a milestone to handle this issue.

@steenzout
Copy link
Member

@ssbarnea out of curiosity did you set gather_facts: true?

@steenzout steenzout self-assigned this Mar 21, 2016
@steenzout
Copy link
Member

no response.
please re-open if this is still an issue for you.

thank you!

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

No branches or pull requests

2 participants