Skip to content

Commit 59a12b3

Browse files
committed
add ol9 repo for pah
1 parent 974ab7f commit 59a12b3

File tree

1 file changed

+39
-5
lines changed

1 file changed

+39
-5
lines changed

olam/provision_pah.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
tasks:
1515

16-
- name: Install Oracle Linux Automation Manager repository
16+
- name: Install Oracle Linux Automation Manager repository on OL8
1717
ansible.builtin.dnf:
1818
name: oraclelinux-automation-manager-release-el8
1919
state: present
2020
retries: 5
2121
delay: 10
2222
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
2323

24-
- name: Disable Oracle Linux Automation Manager 1.0 repository
24+
- name: Disable Oracle Linux Automation Manager 1.0 repository on OL8
2525
community.general.ini_file:
2626
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
2727
section: ol8_automation
@@ -30,7 +30,7 @@
3030
mode: '0644'
3131
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
3232

33-
- name: Disable Oracle Linux Automation Manager 2.0 repository
33+
- name: Disable Oracle Linux Automation Manager 2.0 repository on OL8
3434
community.general.ini_file:
3535
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
3636
section: ol8_automation2
@@ -39,23 +39,57 @@
3939
mode: '0644'
4040
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
4141

42-
- name: Enable Oracle Linux Automation Manager 2.2 repository
42+
- name: Disable Oracle Linux Automation Manager 2.2 repository on OL8
4343
community.general.ini_file:
4444
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
4545
section: ol8_automation2.2
4646
option: enabled
47+
value: "0"
48+
mode: '0644'
49+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
50+
51+
- name: Enable Oracle Linux Automation Manager 2.3 repository on OL8
52+
community.general.ini_file:
53+
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
54+
section: ol8_automation2.3
55+
option: enabled
4756
value: "1"
4857
mode: '0644'
4958
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
5059

51-
- name: Install Oracle Linux Private Automation Hub
60+
- name: Install Oracle Linux Private Automation Hub on OL8
5261
ansible.builtin.dnf:
5362
name: ol-private-automation-hub-installer
5463
state: present
5564
retries: 5
5665
delay: 10
5766
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
5867

68+
- name: Install Oracle Linux Automation Manager repository on OL9
69+
ansible.builtin.dnf:
70+
name: oraclelinux-automation-manager-release-el9
71+
state: present
72+
retries: 5
73+
delay: 10
74+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
75+
76+
- name: Enable Oracle Linux Automation Manager 2.3 repository on OL9
77+
community.general.ini_file:
78+
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol9.repo"
79+
section: ol8_automation2.3
80+
option: enabled
81+
value: "1"
82+
mode: '0644'
83+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
84+
85+
- name: Install Oracle Linux Private Automation Hub on OL9
86+
ansible.builtin.dnf:
87+
name: ol-private-automation-hub-installer
88+
state: present
89+
retries: 5
90+
delay: 10
91+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
92+
5993
- name: Copy PAH playbook to home directory
6094
ansible.builtin.copy:
6195
src: /usr/share/ansible/collections/ansible_collections/oraclelinux/private_automation_hub/playbooks/single-node/

0 commit comments

Comments
 (0)