Skip to content

Commit

Permalink
ansible: migrate janus job to fqcn_mig
Browse files Browse the repository at this point in the history
  • Loading branch information
rpelisse committed Sep 11, 2023
1 parent ec0b5d3 commit 07ec38a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansible/janus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ set -eo pipefail

source "$(dirname $(realpath ${0}))/common.sh"

readonly PLAYS_DIR=${PLAYS_DIR:-"${WORKSPACE}/janus/playbooks"}

checkWorkdirExistsAndSetAsDefault

sudo install -y rsync

ansible-galaxy collection install community.fqcn_migration

if [ "${PLAYBOOK}" == 'playbooks/janus.yml' ]; then
ansible-playbook "${PLAYBOOK}"
ansible-playbook "${PLAYS_DIR}/${PLAYBOOK}"
else
ansible-playbook playbooks/${PROJECT_NAME}.yml
ansible-playbook "${PLAYS_DIR}/${PROJECT_NAME}.yml"
fi

0 comments on commit 07ec38a

Please sign in to comment.