This guide installs Webmin from official repositories and enables the management service.
- name: Install Webmin on Debian family
hosts: webmin_debian
become: true
tasks:
- name: Install repository dependencies
ansible.builtin.apt:
update_cache: true
name:
- curl
- gnupg
- apt-transport-https
state: present
- name: Add Webmin apt key
ansible.builtin.apt_key:
url: http://www.webmin.com/jcameron-key.asc
state: present
- name: Add Webmin apt repository
ansible.builtin.apt_repository:
repo: "deb http://download.webmin.com/download/repository sarge contrib"
filename: webmin
state: present
- name: Install Webmin package
ansible.builtin.apt:
update_cache: true
name: webmin
state: present
- name: Enable and start Webmin
ansible.builtin.systemd:
name: webmin
enabled: true
state: started
- name: Install Webmin on RHEL family
hosts: webmin_rhel
become: true
tasks:
- name: Install dependencies
ansible.builtin.dnf:
name:
- curl
- perl
- openssl
state: present
- name: Add Webmin yum repository
ansible.builtin.yum_repository:
name: webmin
description: Webmin
baseurl: http://download.webmin.com/download/yum
enabled: true
gpgcheck: true
gpgkey: https://www.webmin.com/jcameron-key.asc
- name: Install Webmin package
ansible.builtin.dnf:
name: webmin
state: present
failed_when: false
ansible-playbook -i inventory.ini webmin-install.yml
webmin_debian.Beyond this playbook, we offer:
Contact our automation team: office@linux-server-admin.com