Add configuration playbooks for setting up various system components
This commit is contained in:
26
playbooks/configure-system.yml
Normal file
26
playbooks/configure-system.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- import_playbook: meta.yml
|
||||
|
||||
- name: Update system
|
||||
hosts: all
|
||||
pre_tasks:
|
||||
- import_tasks: tasks/centos-8-kernelplus.yml
|
||||
tags: kernel
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "8"
|
||||
roles:
|
||||
- role: packages
|
||||
vars:
|
||||
omni_pkg_update: true
|
||||
omni_pkg_clean: true
|
||||
- role: sshd
|
||||
vars:
|
||||
omni_restart_services: true
|
||||
- role: common_env
|
||||
tasks:
|
||||
- name: Enable cockpit
|
||||
become: true
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "8"
|
||||
systemd:
|
||||
name: cockpit
|
||||
enabled: true
|
||||
state: started
|
||||
Reference in New Issue
Block a user