From 314ea208c2c31a3bd44e7b4e052812d2222f0159 Mon Sep 17 00:00:00 2001 From: Peter Janes Date: Fri, 17 Mar 2017 21:21:32 -0400 Subject: [PATCH] Only apply package install config when on Fedora or RedHat --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0f1ac91..193f9e4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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