Browse Source

add_repo_creation

ca-cert-and-multi-ks
ePietry 2 years ago
parent
commit
c2a559ff3f
  1. 1
      .gitignore
  2. 3
      .vscode/settings.json
  3. 16
      ansible/playbooks/repo_creation.yml

1
.gitignore

@ -1 +1,2 @@
ansible/inventory.yaml
.vscode

3
.vscode/settings.json

@ -1,3 +0,0 @@
{
"ansible.python.interpreterPath": "/bin/python"
}

16
ansible/playbooks/repo_creation.yml

@ -0,0 +1,16 @@
- 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
-
Loading…
Cancel
Save