From 3f6a140c64dde918ff87705c3761bff655e5f714 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Fri, 4 Oct 2024 07:58:52 -0400 Subject: [PATCH] install additional foreman plugins --- playbooks/foreman/install_compute_plugins.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 playbooks/foreman/install_compute_plugins.yml diff --git a/playbooks/foreman/install_compute_plugins.yml b/playbooks/foreman/install_compute_plugins.yml new file mode 100644 index 0000000..430608d --- /dev/null +++ b/playbooks/foreman/install_compute_plugins.yml @@ -0,0 +1,22 @@ +--- +- name: install a list of compute plugins + hosts: foremanAlma + become: yes + tasks: + - name: install compute resource plugins + ansible.builtin.dnf: + name: "{{item}}" + state: present + loop: + - foreman-libvirt + - rubygem-foreman_fog_proxmox + - foreman-ec2 + + - name: finish any pending migrations + ansible.builtin.command: + cmd: foreman-rake db-migrate + + - name: restart foreman service + ansible.builtin.service: + name: foreman + state: restarted