mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore: updated playbooks
This commit is contained in:
34
ansible/playbooks/zypper.add-repository.mozilla.yml
Normal file
34
ansible/playbooks/zypper.add-repository.mozilla.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
- name: Add the Mozilla repository to Zypper's repositories list
|
||||
tags:
|
||||
- opensuse
|
||||
- mozilla
|
||||
- suse
|
||||
- zypper
|
||||
hosts: all
|
||||
vars:
|
||||
ansible_distribution_with_underscores: "{{ ansible_distribution | replace(' ', '_') }}"
|
||||
repo_part_distribution: >-
|
||||
{{
|
||||
[ansible_distribution_with_underscores, ansible_distribution_version] | join('_')
|
||||
if ansible_distribution is search('leap', ignorecase=true)
|
||||
else ansible_distribution_with_underscores
|
||||
}}
|
||||
tasks:
|
||||
- name: Add the Mozilla repository to Zypper's repositories list
|
||||
tags: repository
|
||||
become: true
|
||||
community.general.zypper_repository:
|
||||
repo: "https://download.opensuse.org/repositories/mozilla/{{ repo_part_distribution }}/"
|
||||
name: mozilla
|
||||
priority: 90
|
||||
overwrite_multiple: true
|
||||
auto_import_keys: true
|
||||
- name: Change the vendor for packages from Mozilla
|
||||
become: true
|
||||
community.general.zypper:
|
||||
update_cache: true
|
||||
state: dist-upgrade
|
||||
name: '*'
|
||||
allow_vendor_change: true
|
||||
clean_deps: true
|
||||
@@ -1,10 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Add Packman to Zypper's repositories list
|
||||
tags:
|
||||
- opensuse
|
||||
- packman
|
||||
- repository
|
||||
- suse
|
||||
- zypper
|
||||
hosts: all
|
||||
@@ -18,6 +16,7 @@
|
||||
}}
|
||||
tasks:
|
||||
- name: Add Packman to Zypper's repositories list
|
||||
tags: repository
|
||||
become: true
|
||||
community.general.zypper_repository:
|
||||
repo: "https://ftp.gwdg.de/pub/linux/misc/packman/suse/{{ repo_part_distribution }}/"
|
||||
@@ -25,3 +24,11 @@
|
||||
priority: 90
|
||||
overwrite_multiple: true
|
||||
auto_import_keys: true
|
||||
- name: Change the vendor for packages from Packman
|
||||
become: true
|
||||
community.general.zypper:
|
||||
update_cache: true
|
||||
state: dist-upgrade
|
||||
name: '*'
|
||||
allow_vendor_change: true
|
||||
clean_deps: true
|
||||
Reference in New Issue
Block a user