Install foreman repositories on enterprise linux
This commit is contained in:
parent
7ff34396c7
commit
37d866e8c7
@ -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
|
||||||
|
16
playbooks/install_foreman.yml
Normal file
16
playbooks/install_foreman.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user