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
1 change: 1 addition & 0 deletions ol/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
-
name: "OS Management Service Agent"
desired_state: DISABLED
key_by: [compartment_id, availability_domain, display_name]
register: result
vars:
timestamp: "{{ now().strftime('%Y%m%d-%H%M%S') }}"
Expand Down
2 changes: 1 addition & 1 deletion ol/create_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
msg: "{{ my_region_id }}"
when: debug_enabled

- name: Get list availbility domains
- name: Get list availability domains
oracle.oci.oci_identity_availability_domain_facts:
compartment_id: "{{ my_tenancy_id }}"
region: "{{ my_region_id }}"
Expand Down
4 changes: 4 additions & 0 deletions ol/provision_kvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
- cockpit-machines
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
retries: 5
delay: 10

- name: Install Oracle Linux 9 virtualization packages
ansible.builtin.dnf:
Expand All @@ -36,6 +38,8 @@
- cockpit-machines
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
retries: 5
delay: 10

- name: Start and enable Oracle Linux 8 monolithic virtualization services
ansible.builtin.systemd:
Expand Down
4 changes: 4 additions & 0 deletions ol/provision_podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
- curl
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
retries: 5
delay: 10

- name: Install Oracle Linux 9 container tools packages
ansible.builtin.dnf:
Expand All @@ -30,3 +32,5 @@
- curl
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
retries: 5
delay: 10
6 changes: 6 additions & 0 deletions ol/provision_vbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
name: oracle-epel-release-el8
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
retries: 5
delay: 10

- name: Enable ol8_developer_EPEL repo
ansible.builtin.command:
Expand All @@ -34,6 +36,8 @@
- perl
- xcb-util-cursor
state: present
retries: 5
delay: 10

- name: Add virtualbox repo keys
ansible.builtin.rpm_key:
Expand All @@ -50,6 +54,8 @@
ansible.builtin.dnf:
name: "VirtualBox-{{ virtualbox_version }}"
state: present
retries: 5
delay: 10

- name: Check if extension pack is already installed
ansible.builtin.shell: |
Expand Down
4 changes: 4 additions & 0 deletions ol/provision_vnc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
ansible.builtin.dnf:
name: '@Server with GUI'
state: present
retries: 5
delay: 10

- name: Installing the vnc package
ansible.builtin.dnf:
name:
- tigervnc-server
- tigervnc-server-module
state: present
retries: 5
delay: 10

- name: Set systemd default boot target to graphical.target
ansible.builtin.file:
Expand Down
30 changes: 7 additions & 23 deletions ol/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,10 @@
# roles:

collections:
- name: https://github.com/ansible-collections/community.general.git
type: git
version: main

- name: https://github.com/ansible-collections/ansible.posix.git
type: git
version: main

- name: https://github.com/oracle/oci-ansible-collection.git
type: git
version: master

- name: https://github.com/ansible-collections/community.postgresql.git
type: git
version: main

- name: https://github.com/ansible-collections/community.crypto.git
type: git
version: main

- name: https://github.com/ansible-collections/community.libvirt.git
type: git
version: main
- ansible.posix
- community.general
- community.postgresql
- community.crypto
- freeipa.ansible_freeipa
- community.libvirt
- oracle.oci
2 changes: 2 additions & 0 deletions ol/update_all_rpms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
state: latest
update_only: true
when: ansible_distribution == 'OracleLinux'
retries: 5
delay: 10

- name: Check if a reboot is required
ansible.builtin.command: /usr/bin/needs-restarting -r
Expand Down