Skip to content

Instantly share code, notes, and snippets.

@shark0der
Forked from arbabnazar/ubuntu-webmin.yml
Last active October 15, 2015 12:00
Show Gist options
  • Save shark0der/2a8e69d3a6c4c8c49b53 to your computer and use it in GitHub Desktop.
Save shark0der/2a8e69d3a6c4c8c49b53 to your computer and use it in GitHub Desktop.
---
#
# Ansible playbook: Webmin for Ubuntu v201501302302
# Louis T. Getterman IV (@LTGIV)
# www.GotGetLLC.com / www.opensour.cc
# fork url: https://gist.github.com/shark0der/2a8e69d3a6c4c8c49b53
#
# Example Usage:
# [user@host ~$] ansible-playbook /etc/ansible/playbooks/ubuntu-webmin.yml --extra-vars 'target=nameFromHostsFile'
#
- hosts: '{{ target }}'
sudo: yes
tasks:
- name: Add Webmin repositories
apt_repository: >
repo='{{ item }}'
state=present
with_items:
- 'deb http://download.webmin.com/download/repository sarge contrib'
- 'deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib'
- name: Add Webmin key
apt_key: >
url='http://www.webmin.com/jcameron-key.asc'
state=present
- name: Install Webmin and prerequisites
apt: >
update_cache=yes
pkg={{ item }}
state=installed
with_items:
- perl
- libnet-ssleay-perl
- openssl
- libauthen-pam-perl
- libpam-runtime
- libio-pty-perl
- apt-show-versions
- python
- webmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment