|
13 | 13 |
|
14 | 14 | tasks:
|
15 | 15 |
|
16 |
| - - name: Install Oracle Linux Automation Manager repository |
| 16 | + - name: Install Oracle Linux Automation Manager repository on OL8 |
17 | 17 | ansible.builtin.dnf:
|
18 | 18 | name: oraclelinux-automation-manager-release-el8
|
19 | 19 | state: present
|
20 | 20 | retries: 5
|
21 | 21 | delay: 10
|
22 | 22 | when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
|
23 | 23 |
|
24 |
| - - name: Disable Oracle Linux Automation Manager 1.0 repository |
| 24 | + - name: Disable Oracle Linux Automation Manager 1.0 repository on OL8 |
25 | 25 | community.general.ini_file:
|
26 | 26 | path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
|
27 | 27 | section: ol8_automation
|
|
30 | 30 | mode: '0644'
|
31 | 31 | when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
|
32 | 32 |
|
33 |
| - - name: Disable Oracle Linux Automation Manager 2.0 repository |
| 33 | + - name: Disable Oracle Linux Automation Manager 2.0 repository on OL8 |
34 | 34 | community.general.ini_file:
|
35 | 35 | path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
|
36 | 36 | section: ol8_automation2
|
|
39 | 39 | mode: '0644'
|
40 | 40 | when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
|
41 | 41 |
|
42 |
| - - name: Enable Oracle Linux Automation Manager 2.2 repository |
| 42 | + - name: Disable Oracle Linux Automation Manager 2.2 repository on OL8 |
43 | 43 | community.general.ini_file:
|
44 | 44 | path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
|
45 | 45 | section: ol8_automation2.2
|
46 | 46 | 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 |
47 | 56 | value: "1"
|
48 | 57 | mode: '0644'
|
49 | 58 | when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
|
50 | 59 |
|
51 |
| - - name: Install Oracle Linux Private Automation Hub |
| 60 | + - name: Install Oracle Linux Private Automation Hub on OL8 |
52 | 61 | ansible.builtin.dnf:
|
53 | 62 | name: ol-private-automation-hub-installer
|
54 | 63 | state: present
|
55 | 64 | retries: 5
|
56 | 65 | delay: 10
|
57 | 66 | when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
|
58 | 67 |
|
| 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 | + |
59 | 93 | - name: Copy PAH playbook to home directory
|
60 | 94 | ansible.builtin.copy:
|
61 | 95 | src: /usr/share/ansible/collections/ansible_collections/oraclelinux/private_automation_hub/playbooks/single-node/
|
|
0 commit comments