Add ansible-later and implement advices.

This commit is contained in:
Robert de Bock 2021-10-11 17:15:02 +02:00
parent 08d65d516e
commit 29c7861c1e
6 changed files with 18 additions and 3 deletions

View file

@ -22,7 +22,7 @@ jobs:
with: with:
path: "${{ github.repository }}" path: "${{ github.repository }}"
- name: molecule - name: molecule
uses: robertdebock/molecule-action@2.6.16 uses: robertdebock/molecule-action@2.7.0
with: with:
command: lint command: lint
test: test:
@ -63,7 +63,7 @@ jobs:
- name: parse apparmor for mysql - name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule - name: molecule
uses: robertdebock/molecule-action@2.6.16 uses: robertdebock/molecule-action@2.7.0
with: with:
image: ${{ matrix.config.image }} image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }} tag: ${{ matrix.config.tag }}

View file

@ -1,5 +1,5 @@
--- ---
image: robertdebock/github-action-molecule:3.0.6 image: robertdebock/github-action-molecule:3.3.0
services: services:
- docker:dind - docker:dind

12
.later.yml Normal file
View file

@ -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

View file

@ -42,6 +42,7 @@ The machine needs to be prepared. In CI this is done using `molecule/default/pre
path: /etc/default path: /etc/default
state: directory state: directory
mode: "0755" mode: "0755"
- name: place bogus /etc/default/grub - name: place bogus /etc/default/grub
ansible.builtin.copy: ansible.builtin.copy:
content: 'GRUB_CMDLINE_LINUX="a=1"' content: 'GRUB_CMDLINE_LINUX="a=1"'

View file

@ -10,6 +10,7 @@ lint: |
set -e set -e
yamllint . yamllint .
ansible-lint ansible-lint
ansible-later
driver: driver:
name: docker name: docker
platforms: platforms:

View file

@ -13,6 +13,7 @@
path: /etc/default path: /etc/default
state: directory state: directory
mode: "0755" mode: "0755"
- name: place bogus /etc/default/grub - name: place bogus /etc/default/grub
ansible.builtin.copy: ansible.builtin.copy:
content: 'GRUB_CMDLINE_LINUX="a=1"' content: 'GRUB_CMDLINE_LINUX="a=1"'