Files
fedora-infra_ansible/roles/copr/backend/tasks/pulp.yml
2025-03-25 10:17:23 +01:00

33 lines
848 B
YAML

---
# We don't rely on the pulp-cli tool but it will be helpful for operations
# The package is available only on F40+
# - name: install pulp-cli
# dnf: state=present name=pulp-cli
- name: Create pulp config directory
ansible.builtin.file:
state: directory
path: /home/copr/.config/pulp/
owner: copr
group: copr
mode: "0700"
- name: Install Pulp auth certificates
ansible.builtin.copy:
src: "{{ private }}/files/copr/pulp/copr-pulp-{% if env == 'production' %}prod{% else %}stg{% endif %}.{{ item }}"
dest: "/home/copr/.config/pulp/copr-pulp.{{ item }}"
owner: copr
group: copr
mode: "0600"
with_items:
- crt
- key
- name: Install Pulp config file
ansible.builtin.template:
src: pulp-cli.toml
dest: "/home/copr/.config/pulp/cli.toml"
owner: copr
group: copr
mode: "0600"