diff --git a/.ansible-lint b/.ansible-lint index f296246..5c3a479 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,3 +1,10 @@ + rulesdir: + - ../../rules/ + +enable_list: + - fqcn-builtins # opt-in + - no-log-password # opt-in + warn_list: - role_vars_start_with_role_name # All role parameters must be named ^_.* - vars_in_vars_files_have_valid_names # Variable in vars files must have valid name @@ -5,3 +12,8 @@ warn_list: - experimental # all rules tagged as experimental - ignore-errors # Use failed_when and specify error conditions instead of using ignore_errors - no-handler # Tasks that run when changed should likely be handlers + - fqcn-builtins + - no-log-password + +use_default_rules: true +offline: false diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index d74888b..eb0452d 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -5,7 +5,7 @@ dependency: driver: name: docker lint: | - ansible-lint -R -r ../../rules/ roles/* + ansible-lint roles/* platforms: - name: instance image: registry.access.redhat.com/ubi8/ubi-init:latest