From 27105bb2df6839bad893f97dbd4252994e1d527d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 28 Feb 2019 09:01:25 +0100 Subject: [PATCH] clone custom modules into role --- .drone.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 62b09f8..3262196 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,6 +25,13 @@ steps: # - git ls-files *[^LICENSE,.md] | xargs ansible-later -c ~/policy/config.ini # depends_on: [ clone ] + - name: dependencies + image: docker:git + commands: + - pwd + - mkdir -p ./library/ + - git clone https://gitea.rknet.org/ansible/custom_modules ./library/ + - name: molecule image: quay.io/ansible/molecule pull: always @@ -43,8 +50,6 @@ steps: ANSIBLE_TIMEOUT: 60 ANSIBLE_ROLES_PATH: /drone/src commands: - - mkdir -p $HOME/.ansible/plugins/modules/ - - git clone https://gitea.rknet.org/ansible/custom_modules $HOME/.ansible/plugins/modules/ - ansible-doc -t module iptables_raw - mkdir $HOME/.ssh - echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine