-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63cc21e
commit b830550
Showing
1 changed file
with
15 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,24 @@ | ||
--- | ||
# - name: debug value of {{ oracle_home }} | ||
# debug: | ||
# var: oracle_home | ||
|
||
- name: print value of {{ oracle_home }} | ||
ansible.builtin.debug: | ||
msg: "{{ oracle_home }}" | ||
|
||
- name: Check oracle 19c Client Software installed | ||
ansible.builtin.stat: | ||
path: "{{ oracle_home }}/bin/sqlplus" | ||
register: client_software_installed | ||
|
||
- name: print value of registered variable client_software_installed | ||
ansible.builtin.debug: | ||
var: client_software_installed | ||
|
||
# - block: | ||
# - import_tasks: download_software.yml | ||
# tags: | ||
# - amibuild | ||
# - oracle_client_software_download | ||
|
||
# - import_tasks: install_client.yml | ||
# tags: | ||
# - amibuild | ||
# - oracle_client_install | ||
|
||
# - import_tasks: cleanup.yml | ||
# tags: | ||
# - ec2provision | ||
# - oracle_client_cleanup | ||
- block: | ||
- import_tasks: download_software.yml | ||
tags: | ||
- amibuild | ||
- oracle_client_software_download | ||
|
||
# # block | ||
# when: not client_software_installed.stat.exists | ||
- import_tasks: install_client.yml | ||
tags: | ||
- amibuild | ||
- oracle_client_install | ||
|
||
- name: just download the client software | ||
import_tasks: download_software.yml | ||
- import_tasks: cleanup.yml | ||
tags: | ||
- ec2provision | ||
- oracle_client_cleanup | ||
|
||
- name: just install the client software | ||
import_tasks: install_client.yml | ||
# block | ||
when: not client_software_installed.stat.exists |