Refactor ansible2 #6111
Workflow file for this run
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 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Setup Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 #v5.2.0 | |
with: | |
python-version: '3.x' | |
- name: Install Ansible and Ansible-Lint | |
run: | | |
python -m pip install --upgrade pip | |
pip install ansible-core ansible-lint==24.7.0 jmespath netaddr | |
- name: Install Ansible Collections | |
run: | | |
ansible-galaxy collection install ansible.windows --force | |
ansible-galaxy collection install ansible.posix --force | |
ansible-galaxy collection install ansible.utils --force | |
ansible-galaxy collection install ansible.netcommon:5.1.2 --force | |
ansible-galaxy collection install community.windows --force | |
ansible-galaxy collection install community.general --force | |
ansible-galaxy collection install microsoft.ad --force | |
- name: Run ansible-lint | |
run: | | |
ansible-lint deploy/ansible -c .ansible-lint |