diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16d3c4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.cache diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..c8bbc93 --- /dev/null +++ b/.yamllint @@ -0,0 +1,8 @@ +--- +extends: default + +rules: + # 160 chars should be enough, but don't fail if a line is longer + line-length: + max: 160 + level: warning diff --git a/tasks/main.yml b/tasks/main.yml index b210303..b439519 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,6 @@ --- -- ansible.builtin.include_tasks: versioncheck.yml +- name: Perform optional versionscheck + ansible.builtin.include_tasks: versioncheck.yml when: submodules_versioncheck|bool - name: Install acmetool @@ -10,16 +11,6 @@ - installation - acmetool -# Todo: Reconsider best practice -#- name: Remove acmetool snippet for nginx from package installation -# ansible.builtin.file: -# path: '/etc/nginx/snippets/acmetool.conf' -# state: absent -# tags: -# - installation -# - configuration -# - acmetool - - name: Create directory for acmetool response file ansible.builtin.file: name: '/var/lib/acme/conf' @@ -67,8 +58,8 @@ - name: Reload systemd and enable acmetool timer unit ansible.builtin.systemd: name: 'acmetool.timer' - daemon_reload: yes - enabled: yes + daemon_reload: true + enabled: true state: started tags: - operation