Skip to content

Replace embedded template conditionals (#97) #255

Replace embedded template conditionals (#97)

Replace embedded template conditionals (#97) #255

Workflow file for this run

---
name: Ansible Lint # feel free to pick your own name
on: [push]
jobs:
yaml-lint:
# Run the test inside a centos8 container
runs-on: ubuntu-latest
container: centos:centos8
steps:
- uses: actions/checkout@v2
# Make pip3 work
- name: Install Dependencies yum
run: |
yum install -y python3 python3-pip python3-setuptools
# Install requirements and latest ansible
- name: Install Dependencies pip
run: |
pip3 install yamllint
# Validate all inventory files in the repo
# disable line lenght
# disable truthy, it goes against ansible recommendations
- name: Yaml lint
run: |
yamllint -d "{extends: default, rules: {line-length: disable, truthy: disable}}" roles/
ansible-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "main.yml"
args: ""
ansible-later:
# Run the test inside a centos8 container
runs-on: ubuntu-latest
container: centos:centos8
steps:
- uses: actions/checkout@v2
# Make pip3 work
- name: Install Dependencies yum
run: |
yum install -y python3 python3-pip python3-setuptools
# Install requirements and latest ansible
- name: Install Dependencies pip
run: |
pip3 install cryptography==3.3.2
pip3 install ansible-later==0.4.0 ansible==3.2.0 ansible-base==2.10.7
# Validate all inventory files in the repo
- name: Ansible Later
run: |
ansible-later tasks