From 06eab17b716dfe27ddf84c81e76cf0d2d74cd617 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 16 Jan 2022 18:00:52 +0100 Subject: [PATCH] update linting rules --- .ansible-lint | 9 --------- tasks/customize_footer.yml | 1 + tasks/customize_logo.yml | 4 ++++ tasks/customize_public_files.yml | 1 + tasks/fail2ban.yml | 1 + 5 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint deleted file mode 100644 index a48e52d..0000000 --- a/.ansible-lint +++ /dev/null @@ -1,9 +0,0 @@ -use_default_rules: true - -exclude_paths: - - venv/ - - molecule/default/ - - tests/ - -#skip_list: -# - '301' diff --git a/tasks/customize_footer.yml b/tasks/customize_footer.yml index 694b952..598542d 100644 --- a/tasks/customize_footer.yml +++ b/tasks/customize_footer.yml @@ -20,4 +20,5 @@ group: "{{ gitea_group }}" mode: '0644' ignore_errors: true + tags: skip_ansible_lint notify: "Restart gitea" diff --git a/tasks/customize_logo.yml b/tasks/customize_logo.yml index eb344a8..b36448b 100644 --- a/tasks/customize_logo.yml +++ b/tasks/customize_logo.yml @@ -19,6 +19,7 @@ owner: "{{ gitea_user }}" group: "{{ gitea_group }}" mode: '0644' + tags: skip_ansible_lint ignore_errors: true - name: transfer custom logo.png @@ -29,6 +30,7 @@ owner: "{{ gitea_user }}" group: "{{ gitea_group }}" mode: '0644' + tags: skip_ansible_lint ignore_errors: true - name: transfer custom favicon.png @@ -39,6 +41,7 @@ owner: "{{ gitea_user }}" group: "{{ gitea_group }}" mode: '0644' + tags: skip_ansible_lint ignore_errors: true - name: transfer custom apple-touch-icon.png @@ -49,4 +52,5 @@ owner: "{{ gitea_user }}" group: "{{ gitea_group }}" mode: '0644' + tags: skip_ansible_lint ignore_errors: true diff --git a/tasks/customize_public_files.yml b/tasks/customize_public_files.yml index 2ae41dd..dffda42 100644 --- a/tasks/customize_public_files.yml +++ b/tasks/customize_public_files.yml @@ -20,4 +20,5 @@ directory_mode: true mode: 'u=rwX,g=rX,o=' ignore_errors: true + tags: skip_ansible_lint notify: "Restart gitea" diff --git a/tasks/fail2ban.yml b/tasks/fail2ban.yml index 913127d..5322539 100644 --- a/tasks/fail2ban.yml +++ b/tasks/fail2ban.yml @@ -25,4 +25,5 @@ ansible.builtin.fail: msg: "the package fail2ban is not installed. no fail2ban filters deployed." when: "'fail2ban' not in ansible_facts.packages" + tags: skip_ansible_lint ignore_errors: true