Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Add /usr/sbin to the PATH for the execution #858

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions runner/ansible/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
delegate_to: localhost

# Do not change the name. It is use in the trento callback call
- name: run_checks
include_role:
name: "{{ check_item.path }}"
loop: "{{ checks.files|sort(attribute='path') }}"
loop_control:
loop_var: check_item # Do not change the name. It is use in the trento callback call
when: ((lookup("file", check_item.path+"/defaults/main.yml")|from_yaml).id|string)|default("") in cluster_selected_checks_list
- name: Run checks
block:
- name: run_checks
include_role:
name: "{{ check_item.path }}"
loop: "{{ checks.files|sort(attribute='path') }}"
loop_control:
loop_var: check_item # Do not change the name. It is use in the trento callback call
when: ((lookup("file", check_item.path+"/defaults/main.yml")|from_yaml).id|string)|default("") in cluster_selected_checks_list
environment:
PATH: "/usr/sbin:{{ ansible_env.PATH }}"