From 29c7861c1e54aac764eefc20e38dc31d870dbea1 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Mon, 11 Oct 2021 17:15:02 +0200 Subject: [PATCH] Add ansible-later and implement advices. --- .github/workflows/molecule.yml | 4 ++-- .gitlab-ci.yml | 2 +- .later.yml | 12 ++++++++++++ README.md | 1 + molecule/default/molecule.yml | 1 + molecule/default/prepare.yml | 1 + 6 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .later.yml diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 835ba81..17ecf7d 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -22,7 +22,7 @@ jobs: with: path: "${{ github.repository }}" - name: molecule - uses: robertdebock/molecule-action@2.6.16 + uses: robertdebock/molecule-action@2.7.0 with: command: lint test: @@ -63,7 +63,7 @@ jobs: - name: parse apparmor for mysql run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: molecule - uses: robertdebock/molecule-action@2.6.16 + uses: robertdebock/molecule-action@2.7.0 with: image: ${{ matrix.config.image }} tag: ${{ matrix.config.tag }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 09d92a3..a42af9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ --- -image: robertdebock/github-action-molecule:3.0.6 +image: robertdebock/github-action-molecule:3.3.0 services: - docker:dind diff --git a/.later.yml b/.later.yml new file mode 100644 index 0000000..83b9158 --- /dev/null +++ b/.later.yml @@ -0,0 +1,12 @@ +--- +rules: + version: "0.2" + exclude_files: + - meta/argument_specs.yml + - meta/exception.yml + - meta/preferences.yml + - meta/version.yml + - requirements.txt + exclude_filter: + - LINT0009 + - ANSIBLE0007 diff --git a/README.md b/README.md index 0b70299..17ef03e 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ The machine needs to be prepared. In CI this is done using `molecule/default/pre path: /etc/default state: directory mode: "0755" + - name: place bogus /etc/default/grub ansible.builtin.copy: content: 'GRUB_CMDLINE_LINUX="a=1"' diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 3f4b938..82ca7e6 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -10,6 +10,7 @@ lint: | set -e yamllint . ansible-lint + ansible-later driver: name: docker platforms: diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index bc644e9..e9face2 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -13,6 +13,7 @@ path: /etc/default state: directory mode: "0755" + - name: place bogus /etc/default/grub ansible.builtin.copy: content: 'GRUB_CMDLINE_LINUX="a=1"'