acme.sh role: make it work on CentOS.

This commit is contained in:
Andrea Dell'Amico 2019-10-28 12:51:13 +01:00
parent bcc0e96c5c
commit 53516b83cc
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: - 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 - name: Remove the sudoers config needed to run the old acmetool package hooks
file: dest=/etc/sudoers.d/letsencrypt-acme state=absent 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' ]