Edit the show facts parameter to exit after it runs. Also fix its spacing in the usage.
This commit is contained in:
3
setup.sh
3
setup.sh
@@ -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..."
|
||||||
|
|||||||
Reference in New Issue
Block a user