Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions olam/create_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@
name:
- ansible-core
state: present
retries: 5
delay: 10
when:
- inventory_hostname in groups['control']|default([])
- use_olae_only
Expand Down
16 changes: 12 additions & 4 deletions olam/deploy_olam_single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
ansible.builtin.dnf:
name: oracle-epel-release-el8
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
# when:
# - ansible_facts['distribution_major_version'] == '8'

- name: Install version lock plugin
ansible.builtin.dnf:
name: python3-dnf-plugin-versionlock
enablerepo: ol8_developer_EPEL
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Version lock python3-click
Expand All @@ -40,6 +42,8 @@
- python3-pip
enablerepo: ol8_developer_EPEL
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Install pexpect using pip
Expand All @@ -59,13 +63,13 @@
state=enabled
mode: '0644'
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
# when:
# - ansible_distribution_major_version | int >= 8

- name: Install the database
ansible.builtin.dnf:
name: postgresql-server
state: present
retries: 5
delay: 10

- name: Ensure postgresql data directory exists
ansible.builtin.file:
Expand Down Expand Up @@ -139,6 +143,8 @@
ansible.builtin.dnf:
name: oraclelinux-automation-manager-release-el8
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Disable Oracle Linux Automation Manager 1.0 repository
Expand Down Expand Up @@ -172,6 +178,8 @@
ansible.builtin.dnf:
name: ol-automation-manager
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Edit unixsocket in /etc/redis.conf
Expand Down
10 changes: 10 additions & 0 deletions olam/deploy_olam_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
ansible.builtin.dnf:
name: oracle-epel-release-el8
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Install version lock plugin
ansible.builtin.dnf:
name: python3-dnf-plugin-versionlock
enablerepo: ol8_developer_EPEL
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Version lock python3-click
Expand All @@ -38,6 +42,8 @@
- python3-pip
enablerepo: ol8_developer_EPEL
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Install pexpect
Expand All @@ -48,6 +54,8 @@
ansible.builtin.dnf:
name: oraclelinux-automation-manager-release-el8
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Enable Oracle Linux Automation Manager 1.0 repository
Expand Down Expand Up @@ -79,6 +87,8 @@
ansible.builtin.dnf:
name: ol-automation-manager
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Edit unixsocket in /etc/redis.conf
Expand Down
4 changes: 4 additions & 0 deletions olam/provision_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
ansible.builtin.dnf:
name: oraclelinux-automation-manager-release-el8
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Disable Oracle Linux Automation Manager 1.0 repository
Expand Down Expand Up @@ -52,6 +54,8 @@
- python3.11-ansible-builder
- python3.11-pip
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Install Ansible Runner using pip
Expand Down
2 changes: 2 additions & 0 deletions olam/provision_git_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
ansible.builtin.dnf:
name: git
state: present
retries: 5
delay: 10

- name: Create new repo on the git server
ansible.builtin.file:
Expand Down
4 changes: 4 additions & 0 deletions olam/provision_kvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- cockpit
- cockpit-machines
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Install Oracle Linux 9 virtualization packages
Expand All @@ -35,6 +37,8 @@
- cockpit
- cockpit-machines
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'

- name: Start and enable Oracle Linux 8 monolithic virtualization services
Expand Down
4 changes: 4 additions & 0 deletions olam/provision_pah.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
ansible.builtin.dnf:
name: oraclelinux-automation-manager-release-el8
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Disable Oracle Linux Automation Manager 1.0 repository
Expand Down Expand Up @@ -50,6 +52,8 @@
ansible.builtin.dnf:
name: ol-private-automation-hub-installer
state: present
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Copy PAH playbook to home directory
Expand Down
2 changes: 2 additions & 0 deletions olam/update_all_rpms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
name: "*"
state: latest
update_only: true
retries: 5
delay: 10
when: ansible_distribution == 'OracleLinux'

- name: Check if a reboot is required
Expand Down