Skip to content

Commit 7e50e4b

Browse files
committed
update olam install through pkg, redis, and podman image
1 parent ee9cf96 commit 7e50e4b

File tree

1 file changed

+46
-3
lines changed

1 file changed

+46
-3
lines changed

olam/deploy_olam_single.yml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,36 +193,70 @@
193193
mode: '0644'
194194
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
195195

196-
- name: Enable Oracle Linux Automation Manager 2.2 repository
196+
- name: Disable Oracle Linux Automation Manager 2.2 repository
197197
community.general.ini_file:
198198
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
199199
section: ol8_automation2.2
200200
option: enabled
201+
value: "0"
202+
mode: '0644'
203+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
204+
205+
- name: Enable Oracle Linux Automation Manager 2.3 repository
206+
community.general.ini_file:
207+
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
208+
section: ol8_automation2.3
209+
option: enabled
201210
value: "1"
202211
mode: '0644'
203212
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
204213

214+
- name: Install Oracle Linux Automation Manager repository
215+
ansible.builtin.dnf:
216+
name: oraclelinux-automation-manager-release-el9
217+
state: present
218+
retries: 5
219+
delay: 10
220+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
221+
205222
- name: Install Oracle Linux Automation Manager
206223
ansible.builtin.dnf:
207224
name: ol-automation-manager
208225
state: present
209226
retries: 5
210227
delay: 10
211-
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
212228

213229
- name: Edit unixsocket in /etc/redis.conf
214230
ansible.builtin.lineinfile:
215231
path: /etc/redis.conf
216232
regexp: '^unixsocket '
217233
insertafter: '^# unixsocketperm '
218234
line: unixsocket /var/run/redis/redis.sock
235+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
219236

220237
- name: Edit unixsocketperm in /etc/redis.conf
221238
ansible.builtin.lineinfile:
222239
path: /etc/redis.conf
223240
regexp: '^unixsocketperm '
224241
insertafter: '^unixsocket '
225242
line: unixsocketperm 775
243+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
244+
245+
- name: Edit unixsocket in /etc/redis/redis.conf
246+
ansible.builtin.lineinfile:
247+
path: /etc/redis/redis.conf
248+
regexp: '^unixsocket '
249+
insertafter: '^# unixsocketperm '
250+
line: unixsocket /var/run/redis/redis.sock
251+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
252+
253+
- name: Edit unixsocketperm in /etc/redis/redis.conf
254+
ansible.builtin.lineinfile:
255+
path: /etc/redis/redis.conf
256+
regexp: '^unixsocketperm '
257+
insertafter: '^unixsocket '
258+
line: unixsocketperm 775
259+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
226260

227261
- name: Configure CLUSTER_HOST_ID setting
228262
ansible.builtin.copy:
@@ -255,9 +289,18 @@
255289
- name: Provision olam ansible container environment # noqa: syntax-check[unknown-module]
256290
containers.podman.podman_image:
257291
name: container-registry.oracle.com/oracle_linux_automation_manager/olam-ee
258-
tag: 2.2
292+
tag: 2.3-ol8
259293
become: true
260294
become_user: awx
295+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
296+
297+
- name: Provision olam ansible container environment # noqa: syntax-check[unknown-module]
298+
containers.podman.podman_image:
299+
name: container-registry.oracle.com/oracle_linux_automation_manager/olam-ee
300+
tag: 2.3-ol9
301+
become: true
302+
become_user: awx
303+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
261304

262305
- name: Check if awx provisioned
263306
ansible.builtin.stat:

0 commit comments

Comments
 (0)