From 153037c4160d1d90c98df4ff58795560bb0dd8b8 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Thu, 4 Aug 2022 06:54:04 +0200 Subject: [PATCH] Drop versions. --- README.md | 27 +++++++-------------------- generate.yml | 5 ----- templates/ansible-lint.j2 | 5 +---- 3 files changed, 8 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index f13e60e..f8829d5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Generate documentation and continuous integration files for an Ansible Role. This script loads input from: - meta/main.yml* -- meta/version.yml - meta/preferences.yml - defaults/main.yml - requirements.yml @@ -69,32 +68,20 @@ author: Robert de Bock (robert@meinit.nl) author_website: "https://robertdebock.nl/" ``` -## meta/version.yml - -This optional file can be placed when a role contains a version. - -```yaml ---- -project_name: Ansible -reference: "defaults/main.yml" -versions: - - name: ansible - url: "https://github.com/ansible/ansible/releases" -``` - ## meta/preferences.yml This optional file describes how Travis, Tox and Molecule should behave. -|parameter |type |default|description| -|----------------|---------------|-------|-----------| -|tox_version |list of strings|not set|What versions should Tox test? (Default: all.)| -|enterprise_linux|string |not set|If `EL` is used in `meta/main.yml` where should tests happen on? (Default: `rockylinux`.) +|parameter |type |default|description | +|--------------------|---------------|-------|-----------------------------------------------------------------------------------------| +|tox_ansible_versions|list of strings|not set|What versions should Tox test? (Default: all.) | +|enterprise_linux |string |not set|If `EL` is used in `meta/main.yml` where should tests happen on? (Default: `rockylinux`.)| ```yaml --- -tox_versions: - - current +tox_ansible_versions: + - 4 + - 5 enterprise_linx: centos ``` diff --git a/generate.yml b/generate.yml index 52d494a..1fed5a1 100755 --- a/generate.yml +++ b/generate.yml @@ -21,11 +21,6 @@ file: "{{ role_path }}/meta/main.yml" name: meta - - name: check meta/version.yml - stat: - path: "{{ role_path }}/meta/version.yml" - register: versionymlstat - - name: check meta/preferences.yml stat: path: "{{ role_path }}/meta/preferences.yml" diff --git a/templates/ansible-lint.j2 b/templates/ansible-lint.j2 index 172b963..81399f6 100644 --- a/templates/ansible-lint.j2 +++ b/templates/ansible-lint.j2 @@ -1,10 +1,7 @@ --- {{ ansible_managed | comment }} -{% if versionymlstat.stat.exists or preferencesymlstat.stat.exists or verify.stat.exists %} +{% if preferencesymlstat.stat.exists or verify.stat.exists %} exclude_paths: -{% if versionymlstat.stat.exists %} - - ./meta/version.yml -{% endif %} {% if preferencesymlstat.stat.exists %} - ./meta/preferences.yml {% endif %}