Only apply package install config when on Fedora or RedHat

pull/20/head
Peter Janes 8 years ago
parent 33724b0a93
commit 314ea208c2
  1. 4
      tasks/main.yml

@ -1,9 +1,9 @@
--- ---
- include: install-from-package.yml - 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 - include: install-from-git.yml
when: certbot_from_git when: certbot_from_git or (ansible_distribution == 'Ubuntu')
- include: renew-cron.yml - include: renew-cron.yml
when: certbot_auto_renew when: certbot_auto_renew

Loading…
Cancel
Save