diff --git a/.drone.jsonnet b/.drone.jsonnet index fcdd0b7..56c8e65 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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, ], }, ], diff --git a/.drone.yml b/.drone.yml index 62482b8..0d535b6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: @@ -71,12 +69,10 @@ steps: - name: ansible-molecule image: xoxys/molecule:3 commands: - - molecule test -scentos8 + - molecule test -s centos8 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: @@ -181,6 +177,6 @@ depends_on: --- kind: signature -hmac: 6bd7198a4cd85a5f09a56e89c081cc685cb0e1e5d79a51e48174844b8ae898b7 +hmac: 865800218a21fd914532d81e794887cf142e35f4ccefbe0faff7887e2f08db3d ... diff --git a/.later.yml b/.later.yml index 45911c9..0efe5d5 100644 --- a/.later.yml +++ b/.later.yml @@ -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 diff --git a/meta/main.yml b/meta/main.yml index fdb24a2..5c4bde6 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -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 -# @meta description: > -# [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.logrotate) -# [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.logrotate?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.logrotate) -# [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/ansible/xoxys.logrotate/src/branch/master/LICENSE) -# -# Setup logrotate. -# @end + # @meta description: > + # [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.logrotate) + # [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.logrotate?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.logrotate) + # [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/ansible/xoxys.logrotate/src/branch/master/LICENSE) + # + # Setup logrotate. + # @end description: Setup logrotate license: MIT min_ansible_version: 2.8 @@ -19,3 +19,5 @@ galaxy_info: - 7 galaxy_tags: dependencies: [] +collections: + - community.general diff --git a/molecule/centos7/molecule.yml b/molecule/centos7/molecule.yml index 7a856d1..b86c1e5 100644 --- a/molecule/centos7/molecule.yml +++ b/molecule/centos7/molecule.yml @@ -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 + /usr/local/bin/flake8 provisioner: name: ansible env: diff --git a/molecule/centos8/molecule.yml b/molecule/centos8/molecule.yml index 4ca079c..7390669 100644 --- a/molecule/centos8/molecule.yml +++ b/molecule/centos8/molecule.yml @@ -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-8-x64 size_id: s-1vcpu-1gb lint: | - flake8 + /usr/local/bin/flake8 provisioner: name: ansible env: diff --git a/molecule/requirements.yml b/molecule/requirements.yml new file mode 100644 index 0000000..70797d2 --- /dev/null +++ b/molecule/requirements.yml @@ -0,0 +1,5 @@ +--- +collections: + - name: https://gitea.rknet.org/ansible/xoxys.general/releases/download/v1.1.0/xoxys-general-1.1.0.tar.gz + + - name: community.general