Replace embedded template conditionals (#97) #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |