diff --git a/inventory/inventory b/inventory/inventory index 4d30d29..27e2456 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -9,6 +9,8 @@ proxmox ansible_user=root pihole ansible_user=pollen bastion ansible_user=mango debianV ansible_user=ansible +foreman ansible_user=ansible +foremanAlma ansible_user=ansible [windows] bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore diff --git a/playbooks/install_foreman.yml b/playbooks/install_foreman.yml new file mode 100644 index 0000000..f8d4074 --- /dev/null +++ b/playbooks/install_foreman.yml @@ -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