From b83055032e7d99a193b23363c27f9222937894c4 Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Thu, 11 Apr 2024 17:30:27 +0100 Subject: [PATCH] revert role changes --- .../roles/oracle-19c-client/tasks/main.yml | 48 ++++++------------- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/ansible/roles/oracle-19c-client/tasks/main.yml b/ansible/roles/oracle-19c-client/tasks/main.yml index e3584fc4a..5a64867ed 100644 --- a/ansible/roles/oracle-19c-client/tasks/main.yml +++ b/ansible/roles/oracle-19c-client/tasks/main.yml @@ -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