Prevent commands from running that do not change anything
This commit is contained in:
@@ -11,9 +11,11 @@
|
||||
- name: disable default site
|
||||
command:
|
||||
cmd: a2dissite 000-default.conf
|
||||
removes: /etc/apache2/sites-enabled/000-default.conf
|
||||
- name: enable drone site
|
||||
command:
|
||||
cmd: a2ensite {{ ci_domain }}.conf
|
||||
creates: /etc/apache2/sites-enabled/{{ ci_domain }}.conf
|
||||
- name: run certbot
|
||||
command:
|
||||
cmd: certbot --apache --non-interactive --keep-until-expiring --no-eff-email --email {{ admin_mail }} --redirect --renew-with-new-domains --agree-tos -d {{ ci_domain }}
|
||||
@@ -30,4 +32,5 @@
|
||||
- name: enable drone https site
|
||||
command:
|
||||
cmd: a2ensite {{ ci_domain }}-le-ssl.conf
|
||||
creates: /etc/apache2/sites-enabled/{{ ci_domain }}-le-ssl.conf
|
||||
notify: restart apache
|
||||
|
||||
Reference in New Issue
Block a user