Edit the show facts parameter to exit after it runs. Also fix its spacing in the usage.

This commit is contained in:
2025-12-18 10:46:26 -07:00
parent b3e9f7584f
commit 8b52914683

View File

@@ -32,7 +32,7 @@ function usage {
-g : Enable the General config with test contents. -g : Enable the General config with test contents.
-w : Enable the Workstation config with test contents. -w : Enable the Workstation config with test contents.
-s : Enable the Server config with test contents. -s : Enable the Server config with test contents.
-f : Display this system's facts. -f : Display this system's facts.
-h : Display this help text. -h : Display this help text.
EOF EOF
@@ -130,6 +130,7 @@ echo "Installed!"
if [[ "$show_facts" == "Y" ]]; then if [[ "$show_facts" == "Y" ]]; then
echo "Showing Ansible Facts" echo "Showing Ansible Facts"
ansible localhost -m setup --connection=local ansible localhost -m setup --connection=local
exit 0
fi fi
#echo "Adding Ansible Collections..." #echo "Adding Ansible Collections..."