This is useful when you need to stop different services depending
on the certificates. For example, if you have a first certificate
that uses varnish and a second one using nginx you can have a
configuration that looks like this:
certbot_certs:
- email: janedoe@example.com
stop_services:
- varnish
domains:
- example1.com
- email: janedoe@example.com
stop_services:
- nginx
domains:
- example2.com
This way, you don't have to stop both varnish and nginx during cert
creation process.
The PowerTools repo exists only on CentOS, but the current selector ansible_os_family == 'RedHat' also evaluates to true on Fedora and RHEL, making this role fail.
This patch switches the when statement to only evaluate to true if really running on CentOS, which I think was the intention
- introduces a variable certbot_from_git
- adds install from package tasks
- makes a variable called certbot_script available (to handle certbot vs certbot-auto naming)
- fixes#18
this is a preparation for installing certbot from package management
additionally, it might be useful when further tasks are added, e.g. for initial certificate retrieval