Skip to content

Commit

Permalink
suse support
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski committed Jul 25, 2024
1 parent 3ceec36 commit 180dbb1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,22 @@ jobs:
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
5 changes: 5 additions & 0 deletions tasks/repository_install/Suse.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
---
- name: Jenkins Repository
community.general.zypper_repository:
name: jenkins
repo: "{{ jenkins_zypper_repo_url }}"
state: present
3 changes: 3 additions & 0 deletions vars/Suse.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
jenkins_requirements: []

jenkins_config_service_path: /etc/sysconfig/jenkins

jenkins_zypper_repo_url: https://pkg.jenkins.io/opensuse-stable/?ssl_verify=no

0 comments on commit 180dbb1

Please sign in to comment.