Skip to content

Update main.yml

Update main.yml #176

Workflow file for this run

---
name: Ansible Lint # feel free to pick your own name
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Add cloud and galaxy tokens
run: echo -e "${{ secrets.galaxy_token }}" >> ansible.cfg
- name: Fix issues
run: echo -e " " > vault.yml; sed -i -e "s/.*community.esxi.*//g" collections/requirements.yml
- name: Install ansible-lint
run: pip3 install ansible-core ansible-lint yamllint
- name: Install Collections
run: ansible-galaxy collection install -f -r collections/requirements.yml
- name: Lint Ansible Playbook
run: ansible-lint --profile=production -c .ansible-lint.yml
...