Linting fixes

This commit is contained in:
2020-11-26 23:12:45 +13:00
parent 61a0209ece
commit 438962933f
5 changed files with 8 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
# .ansible-lint │
warn_list: # or 'skip_list' to silence them completely
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
warn_list: [] # or 'skip_list' to silence them completely
skip_list:
- '403'
- '106'

0
lint Normal file
View File

View File

@@ -6,7 +6,7 @@ driver:
platforms:
- name: rhel8
image: guisea/centos8-ansible:latest
#dockerfile: Centos8-Dockerfile
# dockerfile: Centos8-Dockerfile
privileged: True
volume_mounts:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
@@ -28,4 +28,4 @@ lint: |
set -e
yamllint .
ansible-lint
flake8
flake8

View File

@@ -23,11 +23,11 @@
- name: Gather facts of packages (again)
package_facts:
manager: "auto"
- name: Register with CheckMK Update Server (retry)
shell: |
cmk-update-agent register -H $(hostname -s) --user {{ cmk_username }} \
--secret {{ cmk_secret }}
changed_when: false
when: "'check-mk-agent' in ansible_facts.packages"
notify: remove agent
notify: remove agent

View File

@@ -10,9 +10,6 @@
package_facts:
manager: "auto"
- name: Install check-mk-agent
block:
- name: Install check-mk-agent
block:
- name: Download the agent from Server