forked from rciam/rciam-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(shibboleth-sp): fix linting errors in role main tasks
Signed-off-by: Bruce Becker <[email protected]>
- Loading branch information
1 parent
d7a68ff
commit 487bc87
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
# file: shibboleth-sp/tasks/main.yml | ||
# | ||
--- | ||
|
||
- name: Include OS-specific variables | ||
include_vars: "{{ item }}" | ||
ansible.builtin.include_vars: "{{ item }}" | ||
with_first_found: | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_release}}.yml" | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml" | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml" | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | ||
- "{{ ansible_distribution }}.yml" | ||
- "{{ ansible_os_family }}.yml" | ||
tags: | ||
- always | ||
|
||
- name: Define Shibboleth SP version | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
shibboleth_sp_version: "{{ shibboleth_sp_default_version }}" | ||
when: shibboleth_sp_version is not defined | ||
tags: | ||
- always | ||
|
||
- name: Define Shibboleth SP service name | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
shibboleth_sp_service: "{{ shibboleth_sp_default_service }}" | ||
when: shibboleth_sp_service is not defined | ||
tags: | ||
- always | ||
|
||
- name: Define Shibboleth SP configuration path | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
shibboleth_sp_conf_path: "{{ shibboleth_sp_default_conf_path }}" | ||
when: shibboleth_sp_conf_path is not defined | ||
tags: | ||
- always | ||
|
||
- name: Define Shibboleth SP user | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
shibboleth_sp_user: "{{ shibboleth_sp_default_user }}" | ||
when: shibboleth_sp_user is not defined | ||
tags: | ||
- always | ||
|
||
- name: Define Shibboleth SP group | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
shibboleth_sp_group: "{{ shibboleth_sp_default_group }}" | ||
when: shibboleth_sp_group is not defined | ||
tags: | ||
- always | ||
|
||
# Install OS-specific packages | ||
- include: install-Debian.yml | ||
- name: Include Debian Install Tasks | ||
ansible.builtin.include_tasks: install-Debian.yml | ||
when: ansible_os_family == 'Debian' | ||
#- include: install-CentOS.yml | ||
# when: ansible_os_family == 'CentOS | ||
|
||
# Run OS-independent installation tasks | ||
- include: install-common.yml | ||
- name: Run OS-independent installation tasks | ||
ansible.builtin.include_tasks: install-common.yml | ||
|
||
# Apply OS-independent configuration | ||
- include: configure-common.yml | ||
- name: Apply OS-independent configuration | ||
ansible.builtin.include_tasks: configure-common.yml | ||
|
||
- name: Ensure Shibboleth SP service is started and enabled on boot | ||
service: | ||
ansible.builtin.service: | ||
name: "{{ shibboleth_sp_service }}" | ||
state: "started" | ||
enabled: yes | ||
become: yes | ||
state: started | ||
enabled: true | ||
become: true |