Change deprecated with_items #37
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: CI | |
on: | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
molecule: | |
name: Molecule | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Install python | |
run: sudo apt update && sudo apt install -y python3 python3-pip python3-setuptools | |
- name: Install Ansible | |
run: sudo pip3 install ansible | |
- name: Create ansible.cfg with correct roles_path | |
run: sudo printf '[defaults]\nhost_key_checking = False\nroles_path=../' > ansible.cfg | |
- name: Install role dependencies | |
run: sudo ansible-galaxy install geerlingguy.ntp grycap.munge grycap.ssh | |
- name: Basic role syntax check | |
run: sudo ansible-playbook tests/test.yml -i tests/inventory --syntax-check | |
- name: Basic role check in front | |
run: sudo ansible-playbook tests/test.yml -i tests/inventory | |
- name: Idempotence role check in front | |
run: sudo ansible-playbook tests/test.yml -i tests/inventory | |
- name: Basic role check in wn | |
run: sudo ansible-playbook tests/test.yml -i tests/inventory -e slurm_type_of_node=wn | |
- name: Idempotence role check in wn | |
run: sudo ansible-playbook tests/test.yml -i tests/inventory -e slurm_type_of_node=wn |