Debian — 55 Ansible Tutorials
Browse 55 tutorials about Debian on AnsiblePilot.
- Add Secondary Groups to Linux Users with Ansible Playbook — Learn how to add secondary groups to Linux users with an Ansible playbook. This step-by-step guide includes YAML configuration and execution details.
- Ansible Linux Users and Groups: Complete Management Guide (Examples) — Complete guide to managing Linux users and groups with Ansible. Create users, set passwords, manage groups, SSH keys, home directories, and sudo access with examples.
- Ansible apt Module: Install, Remove & Manage Packages on Debian/Ubuntu — Complete guide to Ansible apt module (ansible.builtin.apt). Install, remove, upgrade packages on Debian and Ubuntu. Pin versions, add repositories, manage cache, autoremove, handle dependencies, and use with loops for bulk operations.
- Ansible code in RHSB-2021-009 Log4Shell - Remote Code Execution - log4j (CVE-2021-44228) — Learn how my Ansible Playbook was featured in Red Hat Security Bulletin RHSB-2021-009 to address the Log4Shell vulnerability (CVE-2021-44228). Discover the playbook and its role in mitigating security risks.
- Installing Ansible: A Step-by-Step Guide — Learn how to install Ansible on Linux, macOS, and Windows, and configure it for efficient IT automation with this step-by-step guide.
- Automate CIS Benchmark Hardening for RHEL 9 with Ansible — Discover how to automate CIS Benchmark hardening for RHEL 9 systems using Ansible. Simplify security compliance with the "ansible-lockdown" project for efficient, effective protection.
- Strengthening Security: Automating CIS Benchmark Hardening for RHEL 9 with Ansible — Automate CIS Benchmark hardening for RHEL 9 using Ansible with the Ansible Lockdown roles, ensuring robust security configurations across systems.
- Change the User Primary Group on Linux with Ansible — Learn how to use Ansible to change a user's primary group on Linux systems with the user module. Streamline user management and ensure consistent group assignments across your infrastructure.
- ansible.builtin.user: Change User Password with Ansible (Secure Guide) — How to change user passwords with Ansible user module. Hash passwords securely, use Vault for credentials, manage password rotation across servers.
- Ansible Check If Directory Exists: stat Module Guide — How to check if files and directories exist with Ansible stat module. Use stat results in conditionals, check permissions, size, and timestamps.
- Configuring Kernel Parameters in RedHat-like Linux Systems with Ansible System Role — Learn how to configure kernel parameters in RedHat-like Linux systems using the Ansible System Role. Follow our live Playbook example for efficient system management.
- Create ISO image from Files and Folders - Ansible module iso_create — How to automate the creation of a "test.iso" ISO9660 file containing an "helloworld.txt" file using Ansible Playbook and iso_create module.
- Ansible parted Module: Create LVM Partitions on Linux (Guide) — Discover how to automate the creation of LVM partitions on Linux systems using Ansible. This guide walks you through using the community.general.parted module to configure block device partitions efficiently.
- Ansible Create Directory: file Module with state=directory Guide — How to create directories with Ansible file module. Set permissions, ownership, create recursive paths, manage directory structures with examples.
- Ansible Create Group: group Module Complete Guide (Examples) — How to create and manage Linux groups with Ansible group module. Create groups with specific GIDs, system groups, and manage group membership with examples.
- Ansible Create Hard Link & Symlink: file Module Guide — How to create hard links and symbolic links with Ansible file module. Use state=hard and state=link with permissions, force, and practical examples.
- Ansible Create Symlink: Symbolic Links with file Module (Guide) — Discover how to create symlinks with Ansible's file module in this easy-to-follow Playbook. Master Ansible automation with practical examples.
- Ansible Create File: copy Module for Text Files (Complete Guide) — How to create text files with Ansible copy module. Write content inline, copy from controller, set permissions, and manage config files with examples.
- Ansible file Module: Create Files, Directories & Manage Permissions — How to create empty files with Ansible file module. Use state=touch, set permissions, create flag files, and manage file existence with examples.
- Ansible Create User Account: user Module Complete Guide — How to create user accounts with Ansible user module. Set passwords, SSH keys, groups, shells, home directories, and manage users with examples.
- Ansible Manage Groups: Create, Delete & Modify with group Module — How to manage Linux groups with Ansible group module. Create groups, delete groups, set GIDs, manage system groups, and assign users to groups.
- Ansible Delete Files & Directories: file Module state=absent — How to delete files and directories with Ansible file module. Remove files, directories, symlinks, and manage cleanup tasks with examples.
- Deploy Apache HTTPD on Docker Container with Ansible — Automate the deployment of Apache HTTPD in a Docker container using Ansible. Manage system packages, Docker images, and web content effortlessly.
- Set Up Apache Webserver on Debian with Ansible Playbook — Learn to deploy and configure an Apache web server on Debian using Ansible. Automate installation, custom index.html setup, and firewall rules.
- Set Up Apache Vhost on Debian with Ansible Playbook — Learn to configure an Apache virtual host on Debian using Ansible. Automate web server setup, document root creation, and firewall rules.
- Ansible blockinfile Module: Insert & Manage Text Blocks in Files — How to manage text blocks in files with Ansible blockinfile module. Insert, update, remove marked blocks in config files with idempotent operations.
- Edit single-line text - Ansible Playbook for Changing IP Address of Remote Hosts — This playbook uses the ansible.builtin.lineinfile and ansible.builtin.service modules to automate the process of updating the IP address and netmask values in the network configuration file and restarting the networking service on remote hosts.
- Ansible lineinfile Module: Edit Single Lines in Config Files — How to edit single lines in files with Ansible lineinfile module. Add, modify, remove lines using regex, manage config files idempotently with examples.
- Ansible SELinux: Manage Modes, Booleans & Contexts (Complete Guide) — How to automate the enabling or disabling of SELinux Permissive policy per single process or domain keeping the whole system under enforcing policy and make it persistent after a reboot on Linux with Ansible.
- Enable or Disable SELinux Boolean on Linux - Ansible module seboolean — How to automate the enabling of the "httpd_use_nfs" SELinux boolean and make it persistent after a reboot on Linux with Ansible.
- Ansible find Module: Search Files by Extension, Age, Size & Pattern — How to find files with Ansible find module. Search by extension, age, size, pattern, and content. Use results for cleanup, processing, and automation.
- Ansible Change User Password: Secure Password Management Guide — How to change user passwords with Ansible. Use password_hash, vault encryption, and user module to manage passwords securely on Linux and Windows.
- How to install Ansible in Debian 11 - Ansible install — The easier way to install the latest version of Ansible and maintain up-to-date in Debian 11 using APT and the \"main\" default repository.
- How to install Ansible in Debian 12 bookworm — Ansible install — Install Ansible on Debian 12 Bookworm with this updated 2026 guide. Complete instructions using apt, pip, or pipx.
- How to install Ansible in Debian 13 Trixie — Step-by-step guide to install Ansible on Debian 13 Trixie. Install and configure Ansible using apt package manager on the latest Debian stable release.
- How to install Ansible in Debian 13 Trixie — Ansible install — Install Ansible on Debian 13 Trixie with this 2026 guide. Step-by-step instructions using apt package manager for the latest Ansible version.
- Mitigate CVE-2021-4034 on RHEL with Ansible Playbook — HUse Ansible to mitigate CVE-2021-4034 on RHEL systems. Automate the installation of SystemTap, debugging packages, and deploy mitigation scripts.
- Install Docker in Debian-like systems - Ansible module apt_key, apt_repository and apt — How to automate the installation of the docker-ce engine in Ubuntu 20.04 LTS x86_64 (or amd64) using Ansible Playbook. The procedure is going to take care of the GPG signing key, add a repository into the sources list, and install the latest docker-ce package. Included Demo for Debian-like workstation (Debian and Ubuntu).
- Install Google Chrome in Debian like systems - Ansible module apt_key, apt_repository and apt — How to install the latest Google Chrome Stable on a Debian-like workstation (Debian, Ubuntu, Linux Mint, MX Linux, Deepin, AntiX, PureOS, Kali Linux, Parrot OS, Devuan, Knoppix, AV Linux Linux) verify software using the public GPG key and set up the Google repository. Included Playbook in Ubuntu 20.04 LTS.
- Install Microsoft Edge on Debian with Ansible — Learn how to install Microsoft Edge on Debian using Ansible. Follow our guide for a smooth setup process, including repository and key additions.
- Install PostgreSQL in Debian-like systems - Ansible modules apt, stat, shell, service — How to automate the installation of PostgreSQL on Debian-like systems: installing the necessary packages and dependency, initializing the configuration, starting and enabling service on boot using Ansible Playbook and apt, stat, shell, and service modules.
- Install Spotify snap in Debian-like systems - Ansible module snap — How to automate the installation of Spotify snap system-wide in Debian-like systems using Ansible module snap.
- Install Zoom flatpak in Debian-like systems - Ansible module flatpak — How to automate the installation of Zoom flatpak system-wide in Debian-like systems using Ansible module flatpak.
- Ansible apt Module: Install Packages on Ubuntu/Debian (Examples) — How to install, remove, and update packages on Ubuntu, Debian, and Linux Mint using Ansible's apt module. Includes update_cache, state, and version pinning examples.
- Ansible modprobe: Load & Unload Linux Kernel Modules (Guide) — How to load and unload Linux kernel modules with Ansible modprobe module. Manage drivers, configure module parameters, and persist across reboots with examples.
- Open firewall ports in Debian like systems — Ansible module ufw — "How to open firewall HTTP and HTTPS ports in Debian-like systems using Ansible and ufw, the Uncomplicated Firewall.
- Ansible Rename File: Move & Rename Files with command, copy & file — How to rename files and directories with Ansible. Use command mv, copy+file, and other strategies for moving files on remote hosts with examples.
- ansible.builtin.service: Manage Services with Ansible (Complete Guide) — How to restart, start, stop, and enable services with Ansible service module. Manage systemd, SysV, and Windows services with handlers and examples.
- Ansible Search String in File: lineinfile & regex Guide — How to search for strings in files with Ansible. Use lineinfile regex, check mode, shell grep, and slurp module to find and manage text patterns.
- Ansible sysctl Module: Set Linux Kernel Parameters (Persistent) — Configure Linux kernel parameters with Ansible ansible.posix.sysctl module. Set net, vm, fs parameters persistently with validation and rollback examples.
All tags · All articles · Home