Fix linter issues
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
eec95be2de
commit
43ebb7b044
9 changed files with 33 additions and 23 deletions
|
|
@ -9,6 +9,9 @@
|
|||
ansible.builtin.copy:
|
||||
src: etc/apt/keyrings/docker.gpg
|
||||
dest: /etc/apt/keyrings/docker.gpg
|
||||
group: root
|
||||
owner: root
|
||||
mode: 0644
|
||||
when:
|
||||
- docker_ver == "docker_ce"
|
||||
|
||||
|
|
@ -37,8 +40,8 @@
|
|||
|
||||
- name: Check whether ufw status is active
|
||||
ansible.builtin.shell: ufw status
|
||||
changed_when: False
|
||||
ignore_errors: True
|
||||
changed_when: false
|
||||
ignore_errors: true
|
||||
register: ufw_check
|
||||
check_mode: false
|
||||
|
||||
|
|
@ -47,7 +50,7 @@
|
|||
dest: /etc/default/ufw
|
||||
regexp: '^(DEFAULT_FORWARD_POLICY=").*"$'
|
||||
line: '\1ACCEPT"'
|
||||
backrefs: yes
|
||||
backrefs: true
|
||||
notify: reload ufw
|
||||
when: "'inactive' not in ufw_check.stdout"
|
||||
tags: [docker, firewall]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue