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

style: more linting

parent 1dedceff
No related branches found
No related tags found
1 merge request!1Feat GitLab-CI
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
name: netfilter-persistent name: netfilter-persistent
state: present state: present
listen: "save iptables rules" listen: "save iptables rules"
# we exclude this task from being linted for "no-changed-when", because handlers only ever run if there's a change triggered by a task
- name: save iptables rules - name: save iptables rules
ansible.builtin.command: 'netfilter-persistent save' ansible.builtin.command: 'netfilter-persistent save' # noqa no-changed-when
listen: "save iptables rules" listen: "save iptables rules"
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
...@@ -29,8 +30,9 @@ ...@@ -29,8 +30,9 @@
group: "root" group: "root"
mode: "0600" mode: "0600"
listen: "save iptables rules" listen: "save iptables rules"
# we exclude this task from being linted for "no-changed-when", because handlers only ever run if there's a change triggered by a task
- name: save rules - name: save rules
ansible.builtin.command: /usr/sbin/iptables-save # noqa 303 ansible.builtin.command: /usr/sbin/iptables-save # noqa no-changed-when
listen: "save iptables rules" listen: "save iptables rules"
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
......
...@@ -7,7 +7,7 @@ driver: ...@@ -7,7 +7,7 @@ driver:
lint: | lint: |
set -e set -e
yamllint . yamllint .
ansible-lint -x no-loop-var-prefix,command-instead-of-module ansible-lint -x no-loop-var-prefix,command-instead-of-module,package-latest
platforms: platforms:
# Check out the documentation at # Check out the documentation at
# https://github.com/ansible-community/molecule-vagrant#documentation # https://github.com/ansible-community/molecule-vagrant#documentation
......
--- ---
# see http://vimdoc.sourceforge.net/htmldoc/starting.html#system-vimrc # see http://vimdoc.sourceforge.net/htmldoc/starting.html#system-vimrc
- name: install systemwide vimrc config - name: install systemwide vimrc config
template: ansible.builtin.template:
src: "etc/vim/vimrc.local.j2" src: "etc/vim/vimrc.local.j2"
dest: "/etc/vimrc.local" dest: "/etc/vimrc.local"
owner: "root" owner: "root"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment