Only apply package install config when on Fedora or RedHat

This commit is contained in:
Peter Janes 2017-03-17 21:21:32 -04:00
parent 33724b0a93
commit 314ea208c2

View File

@ -1,9 +1,9 @@
---
- include: install-from-package.yml
when: not certbot_from_git
when: not certbot_from_git and (ansible_distribution == 'Fedora' or ansible_distribution == 'RedHat')
- include: install-from-git.yml
when: certbot_from_git
when: certbot_from_git or (ansible_distribution == 'Ubuntu')
- include: renew-cron.yml
when: certbot_auto_renew