Merge branch 'master' of adellam/ansible-roles into master

This commit is contained in:
Andrea Dell'Amico 2019-10-28 12:51:40 +01:00 committed by Gitea
commit bdda0554e3
3 changed files with 27 additions and 10 deletions

View File

@ -1,14 +1,11 @@
---
- import_tasks: old_acmetool_deb.yml
when: ansible_distribution_file_variety == "Debian"
- import_tasks: old_acmetool_rh.yml
when: ansible_distribution_file_variety == "RedHat"
- block:
- name: Remove the old acme package because the tool is not supported anymore.
apt: pkg=acmetool state=absent purge=yes
- name: Remove the old letsencrypt acmetool repo on ubuntu
apt_repository: repo={{ letsencrypt_acme_ppa_repo }} state=absent update_cache=yes
- name: Remove the old letsencrypt acmetool repo on debian
apt_repository: repo={{ letsencrypt_acme_debian_repo }} state=absent update_cache=yes
- name: Remove the sudoers config needed to run the old acmetool package hooks
file: dest=/etc/sudoers.d/letsencrypt-acme state=absent

View File

@ -0,0 +1,12 @@
---
- block:
- name: Remove the old acme package because the tool is not supported anymore.
apt: pkg=acmetool state=absent purge=yes
- name: Remove the old letsencrypt acmetool repo on ubuntu
apt_repository: repo={{ letsencrypt_acme_ppa_repo }} state=absent update_cache=yes
- name: Remove the old letsencrypt acmetool repo on debian
apt_repository: repo={{ letsencrypt_acme_debian_repo }} state=absent update_cache=yes
tags: [ 'letsencrypt', 'letsencrypt_acme_sh' ]

View File

@ -0,0 +1,8 @@
- block:
- name: Remove the old acme package because the tool is not supported anymore.
yum: pkg=acmetool state=absent
- name: Remove the acmetool repo file
file: dest=/etc/yum.repos.d/hlandau-acmetool-epel-7.repo state=absent
tags: [ 'letsencrypt', 'letsencrypt_acme_sh' ]