Pray for me #4
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: Run playbook | |
on: [push] # yamllint disable-line rule:truthy | |
# yamllint disable rule:indentation | |
jobs: | |
running-on-mac: | |
runs-on: macos-13 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install ansible on MacOS | |
run: | | |
pip3 install ansible-core | |
ansible-galaxy \ | |
collection install --requirements-file roles/requirements.yml | |
- name: Run playbook on MacOS | |
run: | | |
ansible-playbook \ | |
--connection=local \ | |
--extra-vars "current_user=$$USER home_folder=$$HOME" \ | |
-vv \ | |
-i inventory.ini \ | |
playbook.yml | |
running-on-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install ansible on MacOS | |
run: | | |
pip3 install ansible-core | |
ansible-galaxy \ | |
collection install --requirements-file roles/requirements.yml | |
- name: Run playbook on MacOS | |
run: | | |
ansible-playbook \ | |
--connection=local \ | |
--extra-vars "current_user=$$USER home_folder=$$HOME" \ | |
-vv \ | |
-i inventory.ini \ | |
playbook.yml | |
# yamllint enable rule:indentation |