Install foreman repositories on enterprise linux

This commit is contained in:
Ibrahim Mkusa 2024-10-03 19:33:09 -04:00
parent 7ff34396c7
commit 37d866e8c7
2 changed files with 18 additions and 0 deletions

View File

@ -9,6 +9,8 @@ proxmox ansible_user=root
pihole ansible_user=pollen pihole ansible_user=pollen
bastion ansible_user=mango bastion ansible_user=mango
debianV ansible_user=ansible debianV ansible_user=ansible
foreman ansible_user=ansible
foremanAlma ansible_user=ansible
[windows] [windows]
bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore

View File

@ -0,0 +1,16 @@
---
- name: installs foreman on redhat 9
hosts: foremanAlma
become: yes
tasks:
- name: clean all metadata
ansible.builtin.command: dnf clean all
- name: clear any metadata
ansible.builtin.dnf:
name:
- 'https://yum.theforeman.org/releases/3.12/el9/x86_64/foreman-release.rpm'
- 'https://yum.theforeman.org/katello/4.14/katello/el9/x86_64/katello-repos-latest.rpm'
- 'https://yum.puppet.com/puppet7-release-el-9.noarch.rpm'
state: present
disable_gpg_check: true