This Ansible collection provides a set of roles designed for configuring Kubuntu desktop and Ubuntu server environments.
Role | Description | Dependencies |
---|---|---|
xebis.ansible.apt | Deb package updates and upgrades using the apt package manager. Can optionally clean up unused packages and reboot the system if required. | xebis.ansible.system |
xebis.ansible.openssh_server |
Installs OpenSSH server installation and provides Restart ssh handler. |
xebis.ansible.apt |
xebis.ansible.system | System-related tasks such as reboot handler or reboot when required handler. | |
xebis.ansible.users |
Ansible role for managing system users. | xebis.ansible.openssh_server |
Add to requirements.yaml
:
---
collections:
- name: git+https://github.com/xebis/ansible-collection.git,main
Install dependencies:
ansible-galaxy collection install -r requirements.yaml
Create an Ansible playbook:
---
- hosts: all
roles:
- role: xebis.ansible.apt
vars:
autoclean: true
autoremove: true
cache_valid_time: 3600
purge: true
upgrade: "full"
Refer to the example playbook test.yaml for additional inspiration.
Run the Ansible playbook:
ansible-playbook -i localhost, playbook.yaml
GALAXY_BUILD_OUTPUT=$(ansible-galaxy collection build --force)
ansible-galaxy collection install --force "${GALAXY_BUILD_OUTPUT##* }"
ansible-playbook test.yaml -i localhost, -kK
- Martin Bružina - Author
- MIT License
Copyright © 2025 Martin Bružina