3 changed files with 17 additions and 3 deletions
@ -1 +1,2 @@ |
|||||
ansible/inventory.yaml |
ansible/inventory.yaml |
||||
|
.vscode |
||||
@ -1,3 +0,0 @@ |
|||||
{ |
|
||||
"ansible.python.interpreterPath": "/bin/python" |
|
||||
} |
|
||||
@ -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…
Reference in new issue