mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-08-25 01:05:36 +02:00
Compare commits
6
Commits
daea45df62
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6e6679d42 | ||
|
|
1e5a11fd99 | ||
|
|
7e659d14bc | ||
|
|
5ad5bd94bf | ||
|
|
261cf7aac5 | ||
|
|
01a8ac6f90 |
@@ -50,16 +50,6 @@ jobs:
|
|||||||
- distro: debian12
|
- distro: debian12
|
||||||
playbook: converge.yml
|
playbook: converge.yml
|
||||||
experimental: false
|
experimental: false
|
||||||
<<<<<<< Updated upstream
|
|
||||||
=======
|
|
||||||
- distro: debian10
|
|
||||||
playbook: converge.yml
|
|
||||||
experimental: false
|
|
||||||
# Source install started failing recently.
|
|
||||||
# - distro: centos7
|
|
||||||
# playbook: playbook-source-install.yml
|
|
||||||
# experimental: false
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
|
|
||||||
- distro: rockylinux9
|
- distro: rockylinux9
|
||||||
playbook: playbook-snap-install.yml
|
playbook: playbook-snap-install.yml
|
||||||
|
|||||||
@@ -74,11 +74,6 @@ Services that should be stopped while `certbot` runs it's own standalone server
|
|||||||
|
|
||||||
These services will only be stopped the first time a new cert is generated.
|
These services will only be stopped the first time a new cert is generated.
|
||||||
|
|
||||||
certbot_pre_hook_template: stop_services.j2
|
|
||||||
certbot_post_hook_template: start_services.j2
|
|
||||||
|
|
||||||
If you need to stop and start services in another way, firstly you define these services in `certbot_create_standalone_stop_services` and then you must create your own templates for this mision and set its paths in `certbot_pre_hook_template` and `certbot_post_hook_template`.
|
|
||||||
|
|
||||||
### Snap Installation
|
### Snap Installation
|
||||||
|
|
||||||
Beginning in December 2020, the Certbot maintainers decided to recommend installing Certbot from Snap rather than maintain scripts like `certbot-auto`.
|
Beginning in December 2020, the Certbot maintainers decided to recommend installing Certbot from Snap rather than maintain scripts like `certbot-auto`.
|
||||||
|
|||||||
@@ -68,6 +68,3 @@ certbot_keep_updated: true
|
|||||||
|
|
||||||
# Where to put Certbot when installing from source.
|
# Where to put Certbot when installing from source.
|
||||||
certbot_dir: /opt/certbot
|
certbot_dir: /opt/certbot
|
||||||
|
|
||||||
certbot_pre_hook_template: stop_services.j2
|
|
||||||
certbot_post_hook_template: start_services.j2
|
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
- name: Create pre hook to stop services.
|
- name: Create pre hook to stop services.
|
||||||
template:
|
template:
|
||||||
src: "{{ certbot_pre_hook_template }}"
|
src: stop_services.j2
|
||||||
dest: /etc/letsencrypt/renewal-hooks/pre/stop_services
|
dest: /etc/letsencrypt/renewal-hooks/pre/stop_services
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
- name: Create post hook to start services.
|
- name: Create post hook to start services.
|
||||||
template:
|
template:
|
||||||
src: "{{ certbot_post_hook_template }}"
|
src: start_services.j2
|
||||||
dest: /etc/letsencrypt/renewal-hooks/post/start_services
|
dest: /etc/letsencrypt/renewal-hooks/post/start_services
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
- name: Check if domains have changed
|
- name: Check if domains have changed
|
||||||
block:
|
block:
|
||||||
- name: Register certificate domains
|
- name: Register certificate domains
|
||||||
shell: "{{ certbot_script }} certificates --cert-name {{ cert_item_name }} | grep Domains | cut -d':' -f2"
|
shell: "{{ certbot_script }} certificates --cert-name {{ cert_item_name }} | grep -E '(Domains|Identifiers)' | cut -d':' -f2"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: letsencrypt_cert_domains_dirty
|
register: letsencrypt_cert_domains_dirty
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
- name: Check if domains have changed
|
- name: Check if domains have changed
|
||||||
block:
|
block:
|
||||||
- name: Register certificate domains
|
- name: Register certificate domains
|
||||||
shell: "{{ certbot_script }} certificates --cert-name {{ cert_item_name }} | grep Domains | cut -d':' -f2"
|
shell: "{{ certbot_script }} certificates --cert-name {{ cert_item_name }} | grep -E '(Domains|Identifiers)' | cut -d':' -f2"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: letsencrypt_cert_domains_dirty
|
register: letsencrypt_cert_domains_dirty
|
||||||
|
|
||||||
|
|||||||
@@ -9,3 +9,4 @@
|
|||||||
shell: |
|
shell: |
|
||||||
dnf config-manager --set-enabled crb
|
dnf config-manager --set-enabled crb
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: ansible_distribution != 'Fedora'
|
||||||
|
|||||||
Reference in New Issue
Block a user