ubuntu
56 Ansible tutorials tagged “ubuntu”. Working examples covering automation, configuration management, and DevOps workflows.
Install Ansible — pip apt dnf Homebrew
getting-started · 6
Install Ansible on Ubuntu, RHEL, macOS, Fedora, Debian, and Windows WSL. Step-by-step instructions using pip, package managers, and virtual environments.
Set Execute Permission (a+x) on Linux File Using Ansible
playbooks · 3
Learn how to set execute permissions (a+x) on a Linux file using an Ansible playbook. Follow this guide for easy automation with the Ansible file module.
Add Secondary Groups to Linux Users with Ansible Playbook
playbooks · 3
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 User Management Guide
playbooks · 5
Automate Linux user and group management with Ansible. Complete guide covering user creation, group management, SSH keys, password policies, PostgreSQL.
Ansible on Ubuntu 26.04 — What Changed
playbooks · 8
Guide to running Ansible on Ubuntu 26.04 LTS — sudo-rs replaces sudo, APT 3.2 rollback, Wayland-only, Kernel 7.0, ROCm. Updated playbooks, privilege.
Ansible CIS Hardening — RHEL 9
playbooks · 5
Discover how to automate CIS Benchmark hardening for RHEL 9 systems using Ansible. Simplify security compliance with the "ansible-lockdown" project for.
Strengthening Security: Automating CIS Benchmark Hardening for RHEL 9 with Ansible
playbooks · 6
Automate CIS Benchmark hardening for RHEL 9 using Ansible with the Ansible Lockdown roles, ensuring robust security configurations across systems.
Can Ansible Run on Ubuntu?
playbooks · 3
Discover how to install and use Ansible on Ubuntu for automating infrastructure and application tasks with ease. With clear, copy-paste, step-by-step examples.
Change the User Primary Group on Linux with Ansible
playbooks · 3
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.
Ansible stat — Check If Directory Exists
playbooks · 6
Check if a directory exists in Ansible with stat module. Conditional task execution, create-if-missing patterns, and permission verification.
Configure WSL in Domain — Step-by-Step
modules · 4
Discover how to configure WSL in a domain environment. This guide covers joining a domain, installing necessary packages, and setting up Kerberos.
Configuring Kernel Parameters in RedHat-like Linux Systems with Ansible System Role
playbooks · 4
Learn how to configure kernel parameters in RedHat-like Linux systems using the Ansible System Role. Follow our live Playbook example for efficient.
Ansible iso_create — Build ISO Images
playbooks · 4
Create ISO images from files and folders with the Ansible iso_create module. Build bootable ISOs, custom install media, and automated image pipelines.
How to Create a New LVM Partition with Ansible
playbooks · 4
Discover how to automate the creation of LVM partitions on Linux systems using Ansible. This guide walks you through using the community.general.parted.
Create a directory in Linux — Ansible module file
playbooks · 3
How to set up the "~/example" directory, set user and group ownership, and apply UNIX mode 0644 in Linux using Ansible with a live Playbook.
Create Hard Links in Linux with Ansible Playbooks
playbooks · 5
Learn to create hard links in Linux using Ansible’s file module. Follow our step-by-step guide and live Playbook example for effective management.
Ansible File Module Demo: Create Symlinks Easily
playbooks · 3
Discover how to create symlinks with Ansible's file module in this easy-to-follow Playbook. Master Ansible automation with practical examples.
ansible.builtin.file: Create and Manage Files
playbooks · 5
Learn ansible.builtin.file module: Create empty files with touch, directories, symlinks, and manage permissions and ownership in Ansible playbooks.
Delete a group — Ansible module group
playbooks · 2
How to delete the \ Step-by-step Ansible tutorial with practical examples and best practices."example\" group or verify that is not present on your.
Ansible file Module — Delete Files
playbooks · 5
Delete files, directories, and symlinks with Ansible file module state: absent. Complete guide with conditional deletion, batch cleanup, safe patterns,.
Deploy Apache HTTPD on Docker Container with Ansible
playbooks · 3
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
playbooks · 4
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
playbooks · 7
Learn to configure an Apache virtual host on Debian using Ansible. Automate web server setup, document root creation, and firewall rules.
Ansible lineinfile — Change IP Address in Config
playbooks · 6
This playbook uses the ansible.builtin.lineinfile and ansible.builtin.service modules to automate the process of updating the IP address and netmask.
Edit Single Lines in Files — Ansible lineinfile Module Guide
playbooks · 5
Master the Ansible lineinfile module — insert, replace, and remove single lines in files. Complete guide with regexp matching, validation, backreferences,.
Ansible SELinux Permissive Mode
playbooks · 4
How to automate the enabling or disabling of SELinux Permissive policy per single process or domain keeping the whole system under enforcing policy.
Ansible seboolean — SELinux Booleans
playbooks · 8
Enable and disable SELinux booleans with ansible.posix.seboolean. Persist settings across reboots, list booleans, and troubleshoot SELinux policies.
Find All Files with Extension — Ansible module find
playbooks · 5
How to automate the finding of all files with “.cnf” extension under the “example” directory of “devops” user using Ansible Playbook and find module.
Fix Ansible WinRM Errors — PowerShell
modules · 4
Resolve WinRM configuration errors for Ansible Windows automation. Fix HTTPS listeners, TrustedHosts, certificate issues, and firewall rules.
How to Install Ansible on Ubuntu 20.04, 22.04, and 24.04
modules · 4
Step-by-step guide to installing Ansible on Ubuntu using apt, PPA, and pip. Covers Ubuntu 20.04, 22.04, and 24.04 with version comparison.
How to install Ansible in Ubuntu 21.10 — Ansible install
playbooks · 11
How to install Ansible in Ubuntu 21.10 Impish Indri using the universe and PPA repositories. Tested, copy-paste examples included.
How to install Ansible in Ubuntu 22.04 LTS Jammy Jellyfish — Ansible Install
playbooks · 9
How to install ansible using the universe repository in Ubuntu 22.04 LTS Jammy Jellyfish. Tested on real machines with clear, copy-paste examples.
How to install Ansible in Ubuntu 22.10 Kinetic Kudu — Ansible Install
playbooks · 6
Learn how to install Ansible on Ubuntu 22.10 Kinetic Kudu using the universe repository with a simple and straightforward method.
How to install Ansible in Ubuntu 23.04 Lunar Lobster — Ansible Install
playbooks · 6
Learn the easiest ways to install and maintain Ansible on Ubuntu 23.04 Lunar Lobster using the universe and PPA repositories for efficient automation.
Install Ansible on Ubuntu 24.04 LTS — pip & APT Guide
playbooks · 5
Install Ansible on Ubuntu 24.04 Noble Numbat step by step. Covers pip, APT PPA, pipx methods with version pinning and virtual environments.
Install Ansible on Windows 10 WSL
playbooks · 9
Learn how to install Ansible on Windows 10 using the Windows Subsystem for Linux (WSL), leveraging its compatibility for seamless automation tasks.
Install Ansible on Windows WSL
playbooks · 8
Learn the easiest way to install and maintain Ansible on Windows 11 using the Windows Subsystem for Linux (WSL), enhancing compatibility and performance.
Mitigate CVE-2021-4034 on RHEL with Ansible Playbook
playbooks · 3
HUse Ansible to mitigate CVE-2021-4034 on RHEL systems. Automate the installation of SystemTap, debugging packages, and deploy mitigation scripts.
Install Docker — Ansible apt Module
playbooks · 5
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.
Install Google Chrome in Debian like systems — Ansible module apt_key, apt_repository and apt
playbooks · 4
How to install the latest Google Chrome Stable on a Debian-like workstation (Debian, Ubuntu, Linux Mint, MX Linux, Deepin, AntiX, PureOS, Kali Linux,.
Install Microsoft Edge on Debian with Ansible
playbooks · 6
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
playbooks · 5
How to automate the installation of PostgreSQL on Debian-like systems: installing the necessary packages and dependency, initializing the.
ansible.builtin.apt — Install Packages on Debian/Ubuntu
playbooks · 5
Install and manage packages with ansible.builtin.apt on Debian/Ubuntu. Full examples for install, upgrade, remove, cache updates, and .deb files.
Ansible modprobe — Load Kernel Modules
playbooks · 4
How to automate the Linux Kernel module loading of the "dummy" module with parameters on an example machine with Ansible.
Quota Management for WinRM Remote Shells
networking · 4
Mastering WinRM Quotas for Optimal System Resource Management. Hands-on, tested examples and best practices for Quota Management for WinRM Remote Shells.
Ansible Rename File or Directory
playbooks · 5
How to rename a file or directory \"foo\", checking the file existence, and performing the verification in a live Playbook and some simple Ansible code.
Ansible service — Restart Services
playbooks · 5
Manage system services with ansible.builtin.service. Start, stop, restart, and enable services on Linux with handlers and conditional examples.
Rolling Update Debian-like systems — Ansible module apt
playbooks · 7
Perform rolling updates on Debian/Ubuntu systems with Ansible apt module — full upgrade, selective updates, serial strategy, and reboot handling.
Search for a String in a File — Ansible module lineinfile
playbooks · 4
How to automate searching for the string "PasswordAuthentication no" in the "/etc/ssh/sshd_config" file using Ansible Playbook and the lineinfile module.
Ansible sysctl Module — Kernel Tuning
playbooks · 4
Set and persist Linux kernel parameters with ansible.posix.sysctl. Playbook examples for vm.swappiness, ip_forward, file-max, and more.
Set the SELinux Policy States and Modes on Linux — Ansible module selinux
playbooks · 4
How to automate the setting and verification of the "enforcing" SELinux mode and state with "targeted" policy and relabel the filesystem if necessary.
The run_once statement in Ansible
playbooks · 6
Learn how to use run_once in Ansible at play and task levels. Understand why run_once may behave differently when strategy is set to free, with.
Update Zoom flatpak(s) in Linux systems — Ansible module command
playbooks · 2
How to automate the update of the Zoom flatpak from version 5.9.1.1380 to 5.9.6.2225 in Linux using Ansible module command.
User password expiration — Ansible module user
playbooks · 4
Learn how to set user password expiration time on Linux with Ansible. Join Luca Berton in a live Playbook using the Ansible `ansible.builtin.user`.
Detect Apache Log4j CVE-2021-44228 with Ansible Playbook
playbooks · 4
Use Ansible to automate the detection of Apache Log4j CVE-2021-44228 vulnerability. Follow this guide to set up and run detection scripts efficiently.
Ansible Write Variable — copy vs template
playbooks · 4
Write Ansible variables to files using copy content parameter or template module. Compare approaches for configs, JSON output, and dynamic content.