From 9c843f0375b846561ca147628be3d46ebe2a4504 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Wed, 1 Jan 2025 16:03:51 -0600 Subject: [PATCH] Update CI definition --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 670a26b..a0214ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -64,26 +64,41 @@ Test: # PRE-MAIN CONFIGURATION Local: stage: play-pre + only: + - pipelines + - schedules script: - ansible-playbook --skip-tags no-auto playbooks/site_local.yml --ssh-common-args='-o ProxyCommand="ssh -W %h:%p -q ansible@bastion1.dallas.mgmt.desu.ltd"' --vault-password-file ~/.vault_pass Pre: stage: play-pre + only: + - pipelines + - schedules script: - ansible-playbook --skip-tags no-auto playbooks/site_pre.yml --ssh-common-args='-o ProxyCommand="ssh -W %h:%p -q ansible@bastion1.dallas.mgmt.desu.ltd"' --vault-password-file ~/.vault_pass # MAIN CONFIGURATION Main: stage: play-main + only: + - pipelines + - schedules retry: 1 script: - ansible-playbook --skip-tags no-auto playbooks/site_main.yml --ssh-common-args='-o ProxyCommand="ssh -W %h:%p -q ansible@bastion1.dallas.mgmt.desu.ltd"' --vault-password-file ~/.vault_pass Common: stage: play-main + only: + - pipelines + - schedules script: - ansible-playbook --skip-tags no-auto playbooks/site_common.yml --ssh-common-args='-o ProxyCommand="ssh -W %h:%p -q ansible@bastion1.dallas.mgmt.desu.ltd"' --vault-password-file ~/.vault_pass # CLEANUP Cleanup: stage: play-post + only: + - pipelines + - schedules script: - ansible-playbook --skip-tags no-auto playbooks/site_post.yml --ssh-common-args='-o ProxyCommand="ssh -W %h:%p -q ansible@bastion1.dallas.mgmt.desu.ltd"' --vault-password-file ~/.vault_pass