From 5f882df33f5dc903bd8f743c91d7aad57bb20621 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 14 Oct 2025 08:22:16 -0700 Subject: [PATCH] Add ability to use aliases with sudo. --- tasks/general/acct_mgmt/users.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 7756c32..30bafc0 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -872,6 +872,9 @@ } alias ebooks="ebook-convert" alias convert="ebook-convert" + alias_sudo: | + # Allows for alias expansions when using sudo, such as doing "sudo ll". + alias sudo="sudo " - name: General | Account Management | Users | Files | Common Variable set_fact: @@ -946,6 +949,7 @@ {{ function_log }} {{ function_debian_upgrade }} {{ function_ebook_convert }} + {{ alias_sudo }} - name: General | Account Management | Users | Files | .bashrc blockinfile: