Skip to content

Commit 620b907

Browse files
authored
Merge pull request #64 from bgraef/main
add olam v1 changes for upgrade lab
2 parents e6e5343 + 697cf5b commit 620b907

File tree

6 files changed

+668
-327
lines changed

6 files changed

+668
-327
lines changed

olam/create_instance.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,11 @@
324324
- inventory_hostname in groups['control']|default([])
325325
- use_olae_only
326326

327-
- name: Install Oracle Linux Automation Manager
328-
ansible.builtin.include_tasks: deploy_olam_single.yml
329-
vars:
330-
control_node_ip: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
331-
when:
332-
- inventory_hostname in groups['control']|default([])
333-
- olam_single_host
327+
- name: Install Oracle Linux Automation Manager
328+
vars:
329+
control_node_ip: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
330+
install_type: "{{ olam_type if olam_type is defined else (lookup('file', 'default_vars.yml') | from_yaml).olam_type | default('single') }}"
331+
ansible.builtin.import_playbook: "deploy_olam_{{ install_type }}.yml"
334332

335333
- name: Update all rpm packages
336334
ansible.builtin.import_playbook: update_all_rpms.yml

olam/default_vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ block_count: 1
2020

2121
update_all: false
2222
passwordless_ssh: false
23-
olam_single_host: false
23+
olam_type: single
2424
use_olae_only: false
2525
use_olam_builder: false
2626
use_olam_pah: false

olam/deploy_olam_none.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# Copyright (c) 2024 Oracle and/or its affiliates.
3+
# This software is made available to you under the terms of the Universal Permissive License (UPL), Version 1.0.
4+
# The Universal Permissive License (UPL), Version 1.0 (see COPYING or https://oss.oracle.com/licenses/upl)
5+
# See LICENSE.TXT for details.
6+
7+
- name: Run olam noop
8+
hosts: control
9+
become: true
10+
11+
tasks:
12+
13+
- name: Print noop message
14+
ansible.builtin.debug:
15+
msg: "This is a noop and does not deploy OLAM."

0 commit comments

Comments
 (0)