1---
2- name: setup token auth
3  import_tasks: token_setup.yml
4
5- name: setup approle auth
6  include_tasks:
7    file: approle_setup.yml
8    apply:
9      vars:
10        default_path: "{{ auth_methods.approle.default_path }}"
11        this_path: "{{ item }}"
12  when: ansible_distribution != 'RedHat' or ansible_distribution_major_version is version('7', '>')
13  loop: "{{ auth_methods.approle.paths }}"
14
15- name: setup approle secret_id_less auth
16  import_tasks: approle_secret_id_less_setup.yml
17  when: ansible_distribution != 'RedHat' or ansible_distribution_major_version is version('7', '>')
18
19- name: setup jwt auth
20  include_tasks:
21    file: jwt_setup.yml
22    apply:
23      vars:
24        default_path: "{{ auth_methods.jwt.default_path }}"
25        this_path: "{{ item }}"
26  when: ansible_distribution != 'RedHat' or ansible_distribution_major_version is version('7', '>')
27  loop: "{{ auth_methods.jwt.paths }}"
28