mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
33 lines
848 B
YAML
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"
|