Fix issue 3577 #1393
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 Playbook | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/build_mac.yml | |
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/** | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
build-macos: | |
name: macOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: [macos-13] | |
- os: [macos-14] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install Python | |
run: brew install [email protected] --overwrite | |
- name: Install Ansible | |
run: brew install ansible | |
# This is to fix an issue with the github macos14 runner, that cant resolve keyserver.ubuntu.com | |
# but this does work when replaced with the IP address. Spotted during the GPG verification of ANT step | |
# Upstream Bug : https://github.com/actions/runner-images/issues/9777 | |
- name: Replace keyserver address with IP address | |
run: | | |
sed -i '' 's/keyserver\.ubuntu\.com/185.125.188.27/g' ansible/playbooks/Supporting_Scripts/package_signature_verification.sh | |
- name: Run Ansible Playbook | |
run: | | |
echo "localhost ansible_user=runner ansible_connection=local" > ansible/hosts | |
set -eux | |
cd ansible | |
sudo ansible-playbook -i hosts playbooks/AdoptOpenJDK_Unix_Playbook/main.yml --skip-tags="hosts_file,hostname,brew_upgrade,brew_cu,kernel_tuning,adoptopenjdk,jenkins,nagios,superuser,swap_file,crontab" |