setup, continue working on log output.
This commit is contained in:
@@ -78,6 +78,7 @@ if [[ "$branch" == "" ]]; then
|
|||||||
else
|
else
|
||||||
echo "Set branch to '$branch'."
|
echo "Set branch to '$branch'."
|
||||||
fi
|
fi
|
||||||
|
echo " "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$create_general" && -f "$general_config" ]]; then
|
if [[ -n "$create_general" && -f "$general_config" ]]; then
|
||||||
@@ -130,7 +131,7 @@ if [[ `which ansible > /dev/null; echo $?` != 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "- Installed!"
|
echo -e "- Installed!\n"
|
||||||
|
|
||||||
if [[ -n $HOSTS_DIR && -n $HOSTS_FILE ]]; then
|
if [[ -n $HOSTS_DIR && -n $HOSTS_FILE ]]; then
|
||||||
echo "Ensuring hosts file exists..."
|
echo "Ensuring hosts file exists..."
|
||||||
@@ -139,7 +140,7 @@ if [[ -n $HOSTS_DIR && -n $HOSTS_FILE ]]; then
|
|||||||
sudo sh -c "echo 'localhost ansible_connection=local' > $HOSTS_FILE"
|
sudo sh -c "echo 'localhost ansible_connection=local' > $HOSTS_FILE"
|
||||||
fi
|
fi
|
||||||
echo "$HOSTS_FILE: '`cat $HOSTS_FILE`'"
|
echo "$HOSTS_FILE: '`cat $HOSTS_FILE`'"
|
||||||
echo "- Hosts file created successfully!"
|
echo -e "- Hosts file created successfully!\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$show_facts" == "Y" ]]; then
|
if [[ "$show_facts" == "Y" ]]; then
|
||||||
@@ -207,6 +208,7 @@ if [[ -n "$create_server" && ! -f "$server_config" ]]; then
|
|||||||
print_server_contents | sudo tee "$server_config"
|
print_server_contents | sudo tee "$server_config"
|
||||||
ls -lh "$server_config"
|
ls -lh "$server_config"
|
||||||
fi
|
fi
|
||||||
|
echo " "
|
||||||
|
|
||||||
echo "Verifying this is the only run..."
|
echo "Verifying this is the only run..."
|
||||||
ps -ef | grep ansible-playbook | grep -v grep
|
ps -ef | grep ansible-playbook | grep -v grep
|
||||||
@@ -221,6 +223,7 @@ elif [[ -e "$lock_file" ]]; then
|
|||||||
else
|
else
|
||||||
echo "- No processes or lockfile found."
|
echo "- No processes or lockfile found."
|
||||||
fi
|
fi
|
||||||
|
echo " "
|
||||||
|
|
||||||
echo "Provisioning Ansible..."
|
echo "Provisioning Ansible..."
|
||||||
if [[ "$local" == "Y" ]]; then
|
if [[ "$local" == "Y" ]]; then
|
||||||
@@ -228,13 +231,13 @@ if [[ "$local" == "Y" ]]; then
|
|||||||
else
|
else
|
||||||
sudo ansible-pull -U $URL.git --checkout $branch
|
sudo ansible-pull -U $URL.git --checkout $branch
|
||||||
fi
|
fi
|
||||||
echo "- Provisioned!"
|
echo -e "- Provisioned!\n"
|
||||||
|
|
||||||
echo "Mounting all drives..."
|
echo "Mounting all drives..."
|
||||||
mount -a
|
mount -a
|
||||||
echo "- Mounted!"
|
echo -e "- Mounted!\n"
|
||||||
|
|
||||||
echo "Don't forget to set any new users' passwords!"
|
echo -e "Don't forget to set any new users' passwords!\n"
|
||||||
|
|
||||||
## Finish ##
|
## Finish ##
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user