Skip to content

Commit

Permalink
moved message to proper location
Browse files Browse the repository at this point in the history
  • Loading branch information
usma0118 committed Oct 31, 2024
1 parent 776704e commit 50b8589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ fi

# shellcheck source=/dev/null
pushd "$DOTFILES_DIR/playbooks"
log_info "running with commit id: $(git rev-parse HEAD)"
# shellcheck disable=SC1091
source "./install"
log_warning "Rollout completed"
Expand Down
4 changes: 1 addition & 3 deletions playbooks/install
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ fi

declare -r playbook_file="${os_family}.yml"

log_info "running with commit id: $(git rev-parse HEAD)"

if [[ "$os_family" == 'alpine' ]]; then
log_warning "Script is running in alpine, proceeding with silent mode."
ansible-playbook -v -i inventory "$playbook_file"
ansible-playbook -i inventory "$playbook_file"
elif ! tty -s; then
log_warning "Script is running in unattended mode."
ansible-playbook -i inventory "$playbook_file"
Expand Down

0 comments on commit 50b8589

Please sign in to comment.