From dab56b2f99a2b7474f24db30131e6da909b13709 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Thu, 28 Nov 2024 22:17:26 +0100 Subject: [PATCH] Cs fixes --- .github/workflows/ci.yml | 1 + tasks/main.yml | 10 +++++----- tests/test.yml | 3 ++- tests/vagrant.yml | 3 ++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70e6297..d204d7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: matrix: include: - distro: debian10 + ansible-version: '>=9, <10' - distro: debian11 - distro: debian12 - distro: ubuntu1804 diff --git a/tasks/main.yml b/tasks/main.yml index da69a5c..b097045 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -49,7 +49,7 @@ dest: /etc/fail2ban/fail2ban.local owner: root group: root - mode: 0644 + mode: '0644' notify: restart fail2ban tags: - configuration @@ -63,7 +63,7 @@ dest: /etc/fail2ban/jail.local owner: root group: root - mode: 0644 + mode: '0644' notify: restart fail2ban tags: - configuration @@ -77,7 +77,7 @@ dest: /etc/fail2ban/filter.d/ owner: root group: root - mode: 0644 + mode: '0644' when: fail2ban_filterd_path is defined notify: restart fail2ban tags: @@ -91,7 +91,7 @@ dest: /etc/fail2ban/action.d/ owner: root group: root - mode: 0644 + mode: '0644' when: fail2ban_actiond_path is defined notify: restart fail2ban tags: @@ -105,7 +105,7 @@ dest: /etc/fail2ban/jail.d/ owner: root group: root - mode: 0644 + mode: '0644' when: fail2ban_jaild_path is defined notify: restart fail2ban tags: diff --git a/tests/test.yml b/tests/test.yml index be2b897..6ca55c7 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,6 +1,7 @@ # test file --- -- hosts: localhost +- name: converge + hosts: localhost connection: local become: true roles: diff --git a/tests/vagrant.yml b/tests/vagrant.yml index afdaebc..c51aabf 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -1,6 +1,7 @@ # test file --- -- hosts: all +- name: converge + hosts: all remote_user: vagrant become: true roles: