ansible-cleanup - Cleanup an Ansible project

Ansible-cleanup provides a command line tool to find and remove unused playbooks, tasks, group variables, and host variables. It maintains a clean codebase by recursively scanning your Ansible repository and listing files that are safe to delete. Features Identify unused playbooks and tasks: Scans the repository to find all unused playbooks and tasks. It analyzes the codebase and determines which playbooks and tasks are no longer referenced or used. Find unused YAML files in group_vars and host_vars: Parses the "hosts" file, load all hosts and groups into a data structure. It then scans the group_vars and host_vars directories, identifying any … Continue reading

ansible-role-flatpak - An Ansible role that configures Flatpak, adds Flathub as a remote repository, and manages Flatpak packages and updates

The ansible-role-flatpak Ansible role installs and configures Flatpak, adds Flathub as a remote repository, and optionally manages Flatpak packages and updates. This role supports specific Linux distributions: Debian-based, Gentoo, and Arch Linux. Requirements Supported operating systems: Debian/Ubuntu (and their derivatives), Gentoo, or Arch Linux. Ansible collections: community.general Role Variables The following variables can be set to customize the role's behavior: Variable Description Default flatpak_packages List of Flatpak packages to install. [] flatpak_update_script Whether to enable automatic daily updates and cleanup of Flatpak packages. false flatpak_update_script_cmd_prefix Optional prefix command to run before the Flatpak update command (e.g., nice, ionice). '' flatpak_update_script_cmd_suffix … Continue reading

ansible-role-auto-upgrade - Ansible role for automated upgrades of Linux systems

The ansible-role-auto-upgrade Ansible role automates regular upgrades of supported operating systems: - Debian-based systems (e.g., Ubuntu, Debian, Linux Mint). This role provides a simpler alternative to unattended-upgrades for applying system updates. (In future versions, Arch Linux and Gentoo will also be supported.) License Copyright (c) 2025-2026 James Cherti. Distributed under terms of the MIT license. Do you like ansible-role-auto-upgrade? Please star ansible-role-auto-upgrade on GitHub. Links The GitHub repository of 'auto-upgrade'

ansible-role-reniced - An Ansible role that configures reniced

The ansible-role-reniced Ansible role configures reniced on Debian and Ubuntu based operating systems. Customizations When reniced_conf is defined, it is used as the configuration content. Include the role using: - name: Import role reniced when: ansible_facts.os_family == "Debian" ansible.builtin.import_role: name: reniced Variables: reniced_conf: | # high prio network services 0 ^apache 0 ^nfsd 0 ^ntpd 0 ^openvpn 0 ^portmap 0 ^ppp 0 ^rpc. 0 ^sshd # medium prio network services 5 ^inn$ 5 ^mysqld # low prio network services 15i ^amavisd-new 15i ^clamd 15 ^controlchan 15 ^exim4 15 ^freshclam 15 ^innwatch 12 ^mailman 15 ^rc.news 15i ^spamd # long running … Continue reading

ansible-role-apt - An Ansible role that manages the APT configuration and updates the /etc/apt/sources.list for Debian and Ubuntu systems

The ansible-role-apt Ansible role manages the APT configuration and updates the /etc/apt/sources.list for Debian and Ubuntu systems. Role variables Important variables: Variable Description Default apt_debian_community Enables community repositories (Debian contrib and main, or Ubuntu universe) true apt_debian_nonfree Enables non-free repositories (Debian non-free, non-free-firmware, or Ubuntu multiverse) true apt_debian_backports Enables the backports repository on Debian (no effect on Ubuntu systems) false apt_deb_src Enables source package repositories (deb-src entries) false Other variables: Variable Description Default apt_mirror_url_debian Debian mirror URL "http://deb.debian.org/debian" apt_mirror_url_debian_security Debian security mirror URL "http://deb.debian.org/debian-security" apt_mirror_url_ubuntu Ubuntu mirror URL "http://archive.ubuntu.com/ubuntu" Author and license The ansible-role-apt role has been written by James … Continue reading

ansible-role-tuned

The ansible-role-tuned Ansible playbook manages the installation, configuration, and activation of the tuned service. Tuned is a dynamic adaptive system tuning tool used in Linux environments to optimize performance by adjusting various system settings dynamically. It provides pre-defined profiles that target specific use cases, such as high throughput, low latency, and energy saving, and automatically applies these configurations based on system activity. For high traffic servers, using Tuned is beneficial as it can enhance network throughput and responsiveness by adjusting parameters like CPU frequency scaling, I/O scheduling, and network stack settings. This optimization results in improved server performance, reduced latency, … Continue reading

ansible-role-gitolite - An Ansible role that automates the installation and configuration of Gitolite, a Git repository management system

The ansible-role-gitolite Ansible role automates the installation and configuration of Gitolite, a Git repository management system. It facilitates the setup of Gitolite on remote servers, including user access control and repository creation, ensuring a consistent and reproducible deployment. Requirements Operating system: Debian-based (e.g., Ubuntu, Mint), RedHat-based (e.g., CentOS, Fedora), or Arch Linux Author and License Copyright (C) 2024-2026 James Cherti. Distributed under terms of the MIT license. Links ansible-role-gitolite @GitHub

Ansible: Reintegrating /etc/rc.local in Linux systems that use Systemd as their init system

For years, /etc/rc.local has been a staple in Linux administration, providing a straightforward means to execute scripts or commands automatically upon system startup. However, with the transition to newer init systems like systemd, the /etc/rc.local script is no longer executed at boot time. Ansible tasks that restore the /etc/rc.local script The following Ansible tasks will create and configure /etc/rc.local and also ensure its execution by Systemd at boot time.