mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-06-15 15:11:26 +02:00
Allow skipping both Git and package install
This commit is contained in:
parent
b3a886e9ee
commit
919c2ba7b5
@ -12,7 +12,7 @@ Generally, installing from source (see section `Source Installation from Git`) l
|
||||
|
||||
## Role Variables
|
||||
|
||||
The variable `certbot_install_from_source` controls whether to install Certbot from Git or package management. The latter is the default, so the variable defaults to `no`.
|
||||
The variables `certbot_install_from_source` and `certbot_install_with_package` control whether to install Certbot from Git or package management. The latter is the default, and you can set both variables to `no` to use a Certbot installed outside of this role.
|
||||
|
||||
certbot_auto_renew: true
|
||||
certbot_auto_renew_user: "{{ ansible_user | default(lookup('env', 'USER')) }}"
|
||||
|
@ -27,6 +27,10 @@ certbot_create_standalone_stop_services:
|
||||
# - apache
|
||||
# - varnish
|
||||
|
||||
# To install Certbot with the OS package, set this variable to `true`.
|
||||
# If you are installing from source (see below) or manually, set this to `false`.
|
||||
certbot_install_with_package: false
|
||||
|
||||
# To install from source (on older OSes or if you need a specific or newer
|
||||
# version of Certbot), set this variable to `yes` and configure other options.
|
||||
certbot_install_from_source: false
|
||||
|
@ -5,7 +5,7 @@
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- import_tasks: install-with-package.yml
|
||||
when: not certbot_install_from_source
|
||||
when: certbot_install_with_package
|
||||
|
||||
- import_tasks: install-from-source.yml
|
||||
when: certbot_install_from_source
|
||||
|
Loading…
x
Reference in New Issue
Block a user