add SLES12 support #22
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: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
ANSIBLE_FORCE_COLOR: 1 | |
jobs: | |
ubuntu-22: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install ansible | |
run: | | |
sudo apt-add-repository --yes --update ppa:ansible/ansible | |
sudo apt-get update | |
sudo apt-get install ansible -y | |
ansible --version | |
- name: Run playbook | |
run: | | |
ansible-galaxy install -r requirements.yml | |
cd .. | |
ansible-playbook ansible-role-jenkins/playbook.yml | |
opensuse-leap: | |
runs-on: ubuntu-22.04 | |
container: opensuse/leap:latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install ansible | |
run: | | |
sudo apt-add-repository --yes --update ppa:ansible/ansible | |
sudo apt-get update | |
sudo apt-get install ansible -y | |
ansible --version | |
- name: Run playbook | |
run: | | |
ansible-galaxy install -r requirements.yml | |
cd .. | |
ansible-playbook ansible-role-jenkins/playbook.yml |