gotmax23.packman
Ansible Role: Packman
This Ansible role installs the Packman repository on OpenSUSE Leap and OpenSUSE Tumbleweed.
Beta Notice
This role is in beta and not meant for production. Be aware that updates may cause changes, so read the release notes.
Requirements
This role relies on certain collections that are not part of ansible-core.
To install the required collections, create a requirements.yml
file with these contents:
---
collections:
- name: community.general
If you are using ansible-base/ansible-core 2.10 or later, run:
ansible-galaxy install -r requirements.yml
For Ansible 2.9, use:
ansible-galaxy collection install -r requirements.yml
Role Variables
Here are the role's variables and their default values found in defaults/main.yml
. You can modify these to change how the role works.
---
# Options:
# - `present` makes sure the Packman repository is installed.
# - `absent` makes sure the Packman repository is not installed.
packman_state: present
# List of mirrors can be found at http://packman.links2linux.org/mirrors
# The default is from the [OpenSUSE Wiki][2].
packman_mirror: "https://ftp.gwdg.de/pub/linux/misc/packman"
# Check the Packman RPM repository 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
Example Playbook
Here's how to set up the Packman Repository:
---
- name: Set up Packman Repository
hosts: all
become: true
tasks:
- name: Set up Packman Repository
ansible.builtin.include_role:
name: gotmax23.packman
Compatibility
This role is tested with the latest version of ansible-core and the latest collections from Ansible Galaxy. This is the supported version of Ansible for this role. Other versions may work but are not officially supported.
This role works with the following distributions:
Distribution | Versions |
---|---|
OpenSUSE | 15.3, Tumbleweed |
License
Author
Maxwell G (@gotmax23)
Ansible role that installs the Packman repository on OpenSUSE Leap and OpenSUSE Tumbleweed.
ansible-galaxy install gotmax23.packman