Ansible role that installs the Packman repository on OpenSUSE Leap and OpenSUSE Tumbleweed.
This role is currently in beta and is not intended for production use. Breaking changes may occur between releases, so please make sure to read the release notes.
This role depends on certain collections that are not included in ansible-core.
To install this role's requirements, create a requirements.yml
file with the following contents:
---
collections:
- name: community.general
Then, if you are using ansible-base/ansible-core 2.10 or later, run this command.
ansible-galaxy install -r requirements.yml
If you are still using Ansible 2.9, run this command, instead.
ansible-galaxy collection install -r requirements.yml
Here are this role's variables and their default values, as set in defaults/main.yml
. If you'd like, you may change them to customize this role's behavior.
---
# Options:
# - `present` ensures that the Packman repository is installed.
# - `absent` ensures that the Packman repository is not installed.
packman_state: present
# See http://packman.links2linux.org/mirrors[1] for list of mirrors.
# The default option comes directly from the [OpenSUSE Wiki][2].
packman_mirror: "https://ftp.gwdg.de/pub/linux/misc/packman"
# Whether to check the Packman RPM repo signing key's fingerprint before importing it.
packman_check_key_fingerprint: true
[1]: http://packman.links2linux.org/mirrors
[2]: https://en.opensuse.org/Additional_package_repositories
---
- name: Set up Packman Repository
hosts: all
become: true
tasks:
- name: Set up Packamn Repository
ansible.builtin.include_role:
name: gotmax23.packman
This role is tested using the latest version of ansible-core and the latest version of the collections from Ansible Galaxy. This is the only version of Ansible that this role officially supports. Best effort support is provided for other versions.
This role is compatible with the following distros:
distro | versions |
---|---|
opensuse | 15.3, tumbleweed |
Maxwell G (@gotmax23)