Skip to content

Commit db18dd2

Browse files
committed
remove 2.3 repo in v1 deployment
1 parent 8fec1ef commit db18dd2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

olam/deploy_olam_v1.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@
8383
mode: '0644'
8484
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
8585

86+
- name: Disable Oracle Linux Automation Manager 2.3 repository
87+
community.general.ini_file:
88+
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol8.repo"
89+
section: ol8_automation2.3
90+
option: enabled
91+
value: "0"
92+
mode: '0644'
93+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
94+
8695
- name: Install Oracle Linux Automation Manager
8796
ansible.builtin.dnf:
8897
name: ol-automation-manager
@@ -97,13 +106,15 @@
97106
regexp: '^unixsocket '
98107
insertafter: '^# unixsocketperm '
99108
line: unixsocket /var/run/redis/redis.sock
109+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
100110

101111
- name: Edit unixsocketperm in /etc/redis.conf
102112
ansible.builtin.lineinfile:
103113
path: /etc/redis.conf
104114
regexp: '^unixsocketperm '
105115
insertafter: '^unixsocket '
106116
line: unixsocketperm 775
117+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
107118

108119
- name: Ensure postgresql data directory exists
109120
ansible.builtin.file:

0 commit comments

Comments
 (0)