From 548d337a2952e039506b282eb17664da9f2a05a7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 May 2019 16:39:10 +0200 Subject: [PATCH] install ansible requirements befor running molecule --- .drone.jsonnet | 1 + .drone.yml | 1 + molecule/ec2-centos-7/playbook.yml | 1 + requirements.yml | 5 +++++ 4 files changed, 8 insertions(+) create mode 100644 requirements.yml diff --git a/.drone.jsonnet b/.drone.jsonnet index bca6ffe..57e3fe4 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -58,6 +58,7 @@ local PipelineDeployment = { }, commands: [ "/bin/bash /docker-entrypoint.sh", + "ansible-galaxy install --force -r requirements.yml -p /drone/src", "molecule create --scenario-name ec2-centos-7", "molecule converge --scenario-name ec2-centos-7", "molecule verify --scenario-name ec2-centos-7", diff --git a/.drone.yml b/.drone.yml index 9c75489..fad15e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,6 +55,7 @@ steps: image: xoxys/molecule:ec2-linux-amd64 commands: - /bin/bash /docker-entrypoint.sh + - ansible-galaxy install --force -r requirements.yml -p /drone/src - molecule create --scenario-name ec2-centos-7 - molecule converge --scenario-name ec2-centos-7 - molecule verify --scenario-name ec2-centos-7 diff --git a/molecule/ec2-centos-7/playbook.yml b/molecule/ec2-centos-7/playbook.yml index dba2457..c1063df 100644 --- a/molecule/ec2-centos-7/playbook.yml +++ b/molecule/ec2-centos-7/playbook.yml @@ -2,4 +2,5 @@ - name: Converge hosts: all roles: + - role: xoxys.python3 - role: xoxys.homeassistant diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..9bcadd3 --- /dev/null +++ b/requirements.yml @@ -0,0 +1,5 @@ +--- +- src: https://gitea.rknet.org/ansible/xoxys.python3.git + name: xoxys.python3 + scm: git + version: master