From b8ff24d2216a7cd5eb4b3fe0f6415f5bb2f00ff1 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 29 Nov 2024 11:06:23 +0100 Subject: [PATCH] Cs fixes --- .github/workflows/ci.yml | 1 + tasks/main.yml | 4 ++-- tests/tasks/pre.yml | 2 +- tests/test.yml | 3 ++- tests/vagrant.yml | 3 ++- 5 files changed, 8 insertions(+), 5 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 c02acbe..7389711 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -54,7 +54,7 @@ state: directory owner: root group: root - mode: 0755 + mode: '0755' with_items: "{{ _stat_directories.results }}" when: - item.stat is defined @@ -96,7 +96,7 @@ dest: "{{ ssh_server_config_file }}" owner: root group: root - mode: 0644 + mode: '0644' validate: 'sshd -T -f %s' notify: restart ssh tags: diff --git a/tests/tasks/pre.yml b/tests/tasks/pre.yml index 84edd27..de0c0d2 100644 --- a/tests/tasks/pre.yml +++ b/tests/tasks/pre.yml @@ -7,4 +7,4 @@ state: directory owner: root group: root - mode: 0755 + mode: '0755' diff --git a/tests/test.yml b/tests/test.yml index 69b9404..35bffb6 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 pre_tasks: diff --git a/tests/vagrant.yml b/tests/vagrant.yml index 0dff732..e355251 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 pre_tasks: