v1
This commit is contained in:
21
roles/kernelcare/tasks/main.yml
Normal file
21
roles/kernelcare/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# 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"
|
||||
Reference in New Issue
Block a user