From 79050c8ba6910de179771b9ccaf70e1db7a74a80 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 25 Feb 2025 13:38:22 -0700 Subject: [PATCH] Ensure aliases are understood in all functions and scripts. --- tasks/general/acct_mgmt/users.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 236e147..8676448 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -172,6 +172,7 @@ unset goodbye unset only_sys unset only_flat + while getopts ":hygsf" opt; do case $opt in h) echo -e "$usage" @@ -588,6 +589,8 @@ - name: General | Account Management | Users | Files | Common Variable set_fact: rc_common: | + # Fixes "command not found" when using aliases within functions. + shopt -s expand_aliases {{ export_path_additions }} {{ alias_cp }} {{ alias_mv }}