diff --git a/.ansible-lint b/.ansible-lint index 390760f80..02d2d1c31 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -15,4 +15,4 @@ skip_list: - name[template] # it doesn't like Jinja templates being in the middle of a task name, which seems silly to me. - name[casing] # sometimes included Galaxy roles break linting rules and cause failures exclude_paths: - - roles/debian/wazuh/ # imported role uses yes/no instead of true/false so always fails + - roles/contrib/ # we don't control these roles diff --git a/.yamllint b/.yamllint index 8287b967d..0247745fe 100644 --- a/.yamllint +++ b/.yamllint @@ -18,3 +18,6 @@ rules: new-line-at-end-of-file: disable new-lines: {type: unix} trailing-spaces: enable + +ignore: + - roles/contrib/ diff --git a/roles/_init/tasks/main.yml b/roles/_init/tasks/main.yml index 457afa494..3207c13f4 100644 --- a/roles/_init/tasks/main.yml +++ b/roles/_init/tasks/main.yml @@ -125,7 +125,7 @@ - name: Install Ansible. when: - ansible_connection == 'ssh' - - install_ansible + - _init.install_ansible block: - name: Install ce-provision user. ansible.builtin.include_role: