You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
381 B
16 lines
381 B
- name: Create a Custom RPM Repository
|
|
hosts: all
|
|
become: true
|
|
vars:
|
|
repo_location: "/opt/custom-rpms/"
|
|
tasks:
|
|
- name: Install createrepo
|
|
ansible.builtin.dnf:
|
|
name: createrepo
|
|
state: present
|
|
- name: Ensure the repository directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ repo_location }}"
|
|
state: directory
|
|
-
|
|
|
|
|