diff --git a/ansible/inventories/production/hosts.ini b/ansible/inventories/production/hosts.ini index dfe102d..09410b8 100644 --- a/ansible/inventories/production/hosts.ini +++ b/ansible/inventories/production/hosts.ini @@ -10,19 +10,22 @@ ipareplicas ipaclients # Playbook and role specific inventory hosts and groups +# Note, for IPA collection to function, these must be fqdn [ipaserver] -ipa001 ansible_host=10.100.1.110 +ipa001.rockylinux.org ansible_host=10.100.1.110 [ipareplicas] -ipa002 ansible_host=10.100.1.111 +ipa002.rockylinux.org ansible_host=10.100.1.111 [ipaclients] -build-a-box ansible_host=10.100.1.112 +build-a-box.rockylinux.org ansible_host=10.100.1.112 +idp001.rockylinux.org ansible_host=10.100.x.x +chrony001.rockylinux.org ansiblehost=10.100.3.110 +chrony002.rockylinux.org ansiblehost=10.200.3.111 [ipsilon] -idp001 ansible_host=10.100.x.x +idp001.rockylinux.org ansible_host=10.100.x.x [chronyservers] -chrony001 ansiblehost=10.100.3.110 -chrony002 ansiblehost=10.200.3.111 - +chrony001.rockylinux.org ansiblehost=10.100.3.110 +chrony002.rockylinux.org ansiblehost=10.200.3.111 diff --git a/ansible/playbooks/role-rocky-ipsilon.yml b/ansible/playbooks/role-rocky-ipsilon.yml index 4741eea..aea73ee 100644 --- a/ansible/playbooks/role-rocky-ipsilon.yml +++ b/ansible/playbooks/role-rocky-ipsilon.yml @@ -22,6 +22,26 @@ - "not no_ansible.stat.exists" msg: "/etc/no-ansible exists - skipping run on this node" + # EPEL and PowerTools are required for ipsilon to function + # I also couldn't find an ansible built-in to do this + - name: Enable the PowerTools repository + ini_file: + dest: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo + section: powertools + option: enabled + value: 1 + owner: root + group: root + mode: '0644' + + # The CentOS extras repos has epel-release provided + - name: Enable the EPEL repository + yum: + name: epel-release + state: present + tags: + - packages + - name: Install arrfab ipsilon repo yum_repository: name: copr:copr.fedorainfracloud.org:arrfab:noggin