Skip to content
Snippets Groups Projects
Commit d9da7755 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

style: satisfy linter

parent a910e75e
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ skip_list:
- skip_this_tag
- git-latest
- name[casing]
- package-latest
# Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is
# mentioned in the enable_list:
......
......@@ -38,6 +38,7 @@
- name: activate kernel parameter changes
ansible.builtin.command: sysctl -p
changed_when: false
- name: daemon-reload
ansible.builtin.systemd:
......
......@@ -34,7 +34,7 @@ platforms:
# Dictionary of `config` options.
config_options:
ssh.keep_alive: true
ssh.remote_user: "'lza'"
ssh.remote_user: "lza"
disksize.size: '20GB'
provisioner:
name: ansible
......
......@@ -7,7 +7,10 @@
# of the crash. Kernel core dumps may consume a considerable amount of disk
# space and may result in denial of service by exhausting the available space
# on the target file system partition."
- name: find out if kdump.service exists
# This task uses the command module, because the systemd module would fail if
# the Service didn't exist.
- name: find out if kdump.service exists # noqa command-instead-of-module
ansible.builtin.command: "systemctl list-unit-files kdump.service"
register: kdump
changed_when: false
......
......@@ -37,7 +37,7 @@
pattern: "error-summary.*"
register: error_summary_units
- name: check if error summary units are already enabled
- name: check if error summary units are already enabled # noqa command-instead-of-module
ansible.builtin.command: "systemctl is-enabled {{ item.path | basename }}"
loop: "{{ error_summary_units.files }}"
register: error_summary_enabled
......@@ -48,7 +48,7 @@
- '"No such file or directory" not in error_summary_enabled.stderr'
- name: manually enable error_summary.service, because it cannot be found by the ansible.builtin.systemd module when the timer is located below "/etc/systemd/user/"
ansible.builtin.command: "systemctl enable {{ item.item.path }}"
ansible.builtin.command: "systemctl enable {{ item.item.path }}" # noqa command-instead-of-module
loop: "{{ error_summary_enabled.results }}"
when:
- item.stdout != "enabled"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment