From d56af65fc1d5b79386ad0b92e8560c0768de1834 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 20 Mar 2021 18:28:29 +0100 Subject: [PATCH] repair linting --- .gitignore | 1 + .yamllint | 8 ++++++++ tasks/main.yml | 17 ++++------------- 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 .gitignore create mode 100644 .yamllint 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