From d385bdd93b826e238047191a0aff2fe39ec1660c Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 2 Sep 2022 17:01:37 +0200 Subject: [PATCH] Cs fixes --- .ansible-lint | 4 ++-- tasks/configuration.yml | 2 +- tasks/main.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 6b9b391..fd56a0e 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,4 +1,4 @@ --- warn_list: - - '106' - - ignore-errors + - role-name + - name diff --git a/tasks/configuration.yml b/tasks/configuration.yml index 2d7c692..007ceda 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -1,6 +1,6 @@ # tasks file --- -- name: configuration | warn or fail +- name: configuration | warn or fail # noqa: ignore-errors ansible.builtin.fail: msg: "haproxy_global_nbproc is deprecated" ignore_errors: "{{ haproxy_version is version('2.5', '<') }}" diff --git a/tasks/main.yml b/tasks/main.yml index 8cacf52..e8accc0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -40,7 +40,7 @@ - haproxy-letsencrypt - name: start and enable service - ansible.builtin.ansible.builtin.service: + ansible.builtin.service: name: haproxy state: "{{ service_default_state | default('started') }}" enabled: "{{ service_default_enabled | default(true) | bool }}"