From ee63cf75f821c897297c687ee59252ac55e3ea76 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Sat, 18 Nov 2023 02:09:00 -0500 Subject: [PATCH 1/2] .drone.yml updates --- .drone.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9685562..e14a110 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,33 +20,35 @@ steps: - name: "ansible_environment_verify" image: *ansible_image commands: - - pwd - git log -1 - ansible --version - ansible-lint --version when: branch: - - development + exclude: + - main event: [push] - name: "ansible_galaxy_requirements" image: *ansible_image commands: - - ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml + - ansible-galaxy install -r requirements.yml when: branch: - - development + exclude: + - main event: [push] - name: "ansible_lint" image: *ansible_image commands: - - ansible-lint --offline $DRONE_WORKSPACE + - ansible-lint --offline when: branch: - - development + exclude: + - main event: [push] @@ -56,7 +58,8 @@ steps: - ansible-playbook -v $ANSIBLE_INVENTORY $DRONE_WORKSPACE/$ANSIBLE_PLAYBOOK when: branch: - - development + exclude: + - main event: [push] From 1999484cd88ebd83bec5f7e640f690b7e2abb23c Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Sat, 18 Nov 2023 02:11:37 -0500 Subject: [PATCH 2/2] update ansible_playbook_execution task --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e14a110..4c73af4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,7 +55,7 @@ steps: - name: "ansible_playbook_execution" image: *ansible_image commands: - - ansible-playbook -v $ANSIBLE_INVENTORY $DRONE_WORKSPACE/$ANSIBLE_PLAYBOOK + - ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK when: branch: exclude: