diff --git a/tasks/install.yml b/tasks/install.yml index b2b4b6f..2df8eba 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -34,8 +34,8 @@ template: src: config/credentials.ini.j2 dest: "{{ certbot_config_dir }}/credentials.ini" + mode: 600 when: certbot_credentials - mode: 600 - name: Schedule certbot run cron: diff --git a/templates/config/credentials.ini.j2 b/templates/config/credentials.ini.j2 new file mode 100644 index 0000000..5fdf1bd --- /dev/null +++ b/templates/config/credentials.ini.j2 @@ -0,0 +1,3 @@ +{% for line in certbot_credentials %} +{{ line }} +{% endfor %}