Files
ansible_role_package/tasks/helpers/add_repository.yml
Matthew Stobbs e231c6ae7a updating documentation
- giving things a better structure
- better documentation with the way things need to be as a standard
2026-02-04 22:26:15 -07:00

23 lines
725 B
YAML

# vim: set filetype=yaml.ansible :
# Helper: external repository
---
- name: Add copr repository
when:
- ansible_os_family == 'RedHat'
community.general.copr:
host: "{{ repo.host | default('copr.fedorainfracloud.org') }}"
state: "{{ repo.state | default('enabled') }}"
name: "@{{ repo.name }}"
include: "{{ repo.include | default(omit) }}"
exclude: "{{ repo.exclude | default(omit) }}"
- name: Add apt ppa
when:
- ansible_os_family == 'Debian'
ansible.builtin.apt_repository:
codename: "{{ repo.codename | default(omit) }}"
filename: "{{ repo.filename | default(omit) }}"
install_python_apt: true
repo: "{{ repo.name }}"
state: "{{ repo.state | default('present') }}"