use command instead of shell when no shell functionality is required

This commit is contained in:
otthorn 2021-01-29 23:59:53 +01:00 committed by Otthorn
parent f8774587c2
commit 486216b8ff

View file

@ -24,5 +24,5 @@
register: certbot_config
- name: Generate new certificates if the configuration changed
shell: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/{{ certbot.certname }}.ini"
command: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/{{ certbot.certname }}.ini"
when: certbot_config.changed