migrate dependencies to collections
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-09-25 10:20:52 +02:00
parent a25c893c20
commit 133859a358
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
8 changed files with 32 additions and 26 deletions

View File

@ -39,11 +39,9 @@ local PipelineDeployment(scenario='centos7') = {
image: 'xoxys/molecule:3',
environment: {
DO_API_KEY: { from_secret: 'do_api_key' },
MOLECULE_CUSTOM_MODULES_REPO: 'https://gitea.rknet.org/ansible/custom_modules',
MOLECULE_CUSTOM_FILTERS_REPO: 'https://gitea.rknet.org/ansible/custom_filters',
},
commands: [
'molecule test -s' + scenario,
'molecule test -s ' + scenario,
],
},
],

View File

@ -37,12 +37,10 @@ steps:
- name: ansible-molecule
image: xoxys/molecule:3
commands:
- molecule test -scentos7
- molecule test -s centos7
environment:
DO_API_KEY:
from_secret: do_api_key
MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters
MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules
trigger:
ref:
@ -146,6 +144,6 @@ depends_on:
---
kind: signature
hmac: b660b2919bee8cc996e65644c461bef1209cbad469e1fe41ae54294b72e201c7
hmac: 3fc63c036065a92789edbe23b60fe1d3ad2cbb918739821641ca982db097b82d
...

View File

@ -3,9 +3,10 @@ ansible:
custom_modules:
- iptables_raw
- openssl_pkcs12
- proxmox_kvm2
- proxmox_kvm
- ucr
- yum_versionlock
- corenetworks_dns
- corenetworks_token
rules:
exclude_files:
@ -13,6 +14,6 @@ rules:
- "LICENSE*"
- "**/*.md"
- "**/*.ini"
exclude_filter:
- LINT0009

View File

@ -1,15 +1,15 @@
# Standards: 0.1
---
galaxy_info:
# @meta author:value: [Robert Kaussow](https://gitea.rknet.org/xoxys)
# @meta author:value: [Robert Kaussow](https://gitea.rknet.org/xoxys)
author: "Robert Kaussow <mail@geeklabor.de>"
# @meta description: >
# [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.droneci_runner_docker)
# [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.droneci_runner_docker?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.droneci_runner_docker)
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.droneci_runner_docker/src/branch/master/LICENSE)
#
# Setup Drone CI docker runner
# @end
# @meta description: >
# [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.droneci_runner_docker)
# [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.droneci_runner_docker?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.droneci_runner_docker)
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.droneci_runner_docker/src/branch/master/LICENSE)
#
# Setup Drone CI docker runner
# @end
description: Setup Drone CI docker runner
license: MIT
min_ansible_version: 2.8
@ -19,3 +19,5 @@ galaxy_info:
- 7
galaxy_tags:
dependencies: []
collections:
- community.general

View File

@ -1,6 +1,9 @@
---
dependency:
name: galaxy
options:
role-file: molecule/requirements.yml
requirements-file: molecule/requirements.yml
driver:
name: delegated
platforms:
@ -9,7 +12,7 @@ platforms:
image_id: centos-7-x64
size_id: s-1vcpu-1gb
lint: |
flake8 --max-line-length=99
/usr/local/bin/flake8
provisioner:
name: ansible
env:

View File

@ -1,5 +0,0 @@
---
- src: https://gitea.rknet.org/ansible/xoxys.docker_engine.git
name: xoxys.docker_engine
scm: git
version: master

11
molecule/requirements.yml Normal file
View File

@ -0,0 +1,11 @@
---
collections:
- name: https://gitea.rknet.org/ansible/xoxys.general/releases/download/v1.2.0/xoxys-general-1.2.0.tar.gz
- name: community.general
roles:
- src: https://gitea.rknet.org/ansible/xoxys.docker_engine.git
name: xoxys.docker_engine
scm: git
version: master

View File

@ -22,7 +22,5 @@
remove_orphans: yes
stopped: "{{ droneci_runner_docker_service_stopped }}"
state: present
# temp. disable changes; breaks idempotency for whatever reason
changed_when: False
become: True
become_user: root