Add calico for networking between control planes #63
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
### | |
# ```{rubric} Ansible Lint Jobs | |
# ``` | |
# --- | |
# This action lints Ansible code for quality. | |
# | |
# ```{literalinclude} .github/workflows/ansible-lint.yml | |
# :language: yaml | |
# :caption: .github/workflows/ansible-lint.yml | |
# ``` | |
name: ansible-lint | |
on: | |
pull_request: | |
branches: ["main", "stable", "release/v*"] | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
### | |
# Naming the build is important to use it as a status check | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Python | |
uses: actions/setup-python@main | |
with: | |
python-version: 3.12 | |
- name: Install requirements | |
run: | | |
python3 -m venv .venv | |
.venv/bin/pip3 install pipenv | |
.venv/bin/pipenv requirements --dev > reqs | |
python3 -m pip install -r reqs | |
ansible-galaxy collection install community.crypto | |
ansible-galaxy collection install community.general | |
- name: Make ansible directory | |
run: | | |
sudo mkdir -pv /etc/ansible | |
SUSER=$(whoami) | |
sudo chown ${SUSER} /etc/ansible | |
touch /etc/ansible/vault | |
echo "Pass" > /etc/ansible/vault | |
- name: Run ansible-lint | |
### | |
# or version tag instead of 'main' | |
uses: ansible/ansible-lint@main |