---
|
- name: Install all needed packages
|
block:
|
package:
|
state: present
|
name:
|
- selinux-policy-devel
|
- ansible
|
- policycoreutils
|
- policycoreutils-python-utils
|
- audit
|
- git
|
- setools-console
|
- selinux-policy-doc
|
- policycoreutils-newrole
|
- setroubleshoot-server
|
- make
|
- gcc-c++
|
- rpm-build
|
- libcurl-devel
|
- cockpit
|
- cockpit-dashboard
|
- cockpit-shell
|
- cockpit-system
|
- cockpit-ws
|
- subscription-manager-cockpit
|
- cockpit-composer
|
- cockpit-session-recording
|
- cockpit-machines
|
- cockpit-packagekit
|
- cockpit-podman
|
- cockpit-storaged
|
check_mode: yes
|
|
- name: Ensure cockpit is started
|
systemd:
|
name: "cockpit.socket"
|
state: "started"
|
enabled: true
|
daemon_reload: true
|
check_mode: yes
|
|
- name: Check if SELinux is in Enforcing state
|
selinux:
|
policy: targeted
|
state: enforcing
|
check_mode: yes
|
|
- name: Check if testaudit file exists
|
stat:
|
path: /root/testaudit
|