21 lines
654 B
YAML
21 lines
654 B
YAML
---
|
|
# tasks file for kernalcare
|
|
|
|
- name: Gather facts
|
|
ansible.builtin.setup:
|
|
gather_subset: "{{ gfacts_fliter }}"
|
|
|
|
- block:
|
|
- name: "Trigger install task if selected option is install"
|
|
include_tasks: install_CentOS.yml
|
|
when: ansOption == "install"
|
|
|
|
- name: "Trigger uninstall task if selected option is uninstall"
|
|
include_tasks: uninstall_CentOS.yml
|
|
when: ansOption == "uninstall"
|
|
|
|
- name: "Trigger update HTTPS task if selected option is update_https"
|
|
include_tasks: updateHTTPS_CentOS.yml
|
|
when: ansOption == "update_https"
|
|
|
|
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" |