2025-03-20 19:59:48 -04:00

45 lines
1.1 KiB
YAML

---
- name: Install Webmin on Debian/Ubuntu
hosts: all
become: true
tasks:
- name: Install required dependencies
ansible.builtin.apt:
name:
- wget
- apt-transport-https
- software-properties-common
state: present
update_cache: true
- name: Add Webmin repository
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/webmin.list
content: "deb http://download.webmin.com/download/repository sarge contrib"
owner: javi
group: javi
mode: '0777'
- name: Add Webmin GPG key
ansible.builtin.apt_key:
url: https://www.webmin.com/jcameron-key.asc
state: present
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
- name: Install Webmin with recommended packages
ansible.builtin.apt:
name:
- webmin
state: present
update_cache: true
install_recommends: true
- name: Ensure Webmin service is enabled and running
systemd:
name: webmin
enabled: true
state: started