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