tee /home/auto/playbooks/deploy_lab/cockpit.yaml > /dev/null << 'EOT'
- hosts:
- rockylinux
tasks:
- name: Install cockpit
dnf:
name: "{{ item }}"
state: latest
with_items:
- cockpit
- cockpit-storaged
- name: Enable cockpit service
ansible.builtin.systemd_service:
name: cockpit
enabled: true
state: reloaded
EOT
ansible-playbook /home/auto/playbooks/deploy_lab/cockpit.yaml