diff --git a/.gitignore b/.gitignore index 7eccd68..b1ef62f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ ansible/inventory.yaml +.vscode \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 9d14cfb..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ansible.python.interpreterPath": "/bin/python" -} \ No newline at end of file diff --git a/ansible/playbooks/repo_creation.yml b/ansible/playbooks/repo_creation.yml new file mode 100644 index 0000000..ef07d60 --- /dev/null +++ b/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 + - +