Browse Source

update repo_creation

ca-cert-and-multi-ks
ePietry 2 years ago
parent
commit
c844835bdb
  1. 11
      ansible/playbooks/repo_creation.yml

11
ansible/playbooks/repo_creation.yml

@ -14,6 +14,12 @@
path: "{{ repo_location }}"
state: absent
- name: Old custom repo
become: true
ansible.builtin.file:
path: /etc/yum.repos.d/custom.repo
state: absent
- name: Ensure the repository directory exists
become: true
ansible.builtin.file:
@ -54,6 +60,11 @@
register: package_info
ignore_errors: true
- name: Verify packages are present
become: true
ansible.builtin.shell:
cmd: "dnf config-manager --enable custom"
- name: Display package info output
ansible.builtin.debug:
var: package_info.stdout_lines
Loading…
Cancel
Save