Skip to content

Commit

Permalink
Removed '|bool' from conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
oravirt committed Apr 28, 2018
1 parent 7580083 commit 90f2106
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions roles/oraswdb-install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- name: Mount nfs share with installation media
mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=mounted
when: install_from_nfs|bool
when: install_from_nfs
tags:
- nfsmountdb

Expand Down Expand Up @@ -79,7 +79,7 @@
- "{{oracle_databases}}"
become: yes
become_user: "{{ oracle_user }}"
when: master_node and item[0].version == item[1].oracle_version_db and not is_sw_source_local and oracle_sw_copy|bool
when: master_node and item[0].version == item[1].oracle_version_db and not is_sw_source_local and oracle_sw_copy
tags:
- oradbsw

Expand All @@ -90,7 +90,7 @@
- "{{oracle_databases}}"
become: yes
become_user: "{{ oracle_user }}"
when: master_node and item[0].version == item[1].oracle_version_db and is_sw_source_local and oracle_sw_copy|bool
when: master_node and item[0].version == item[1].oracle_version_db and is_sw_source_local and oracle_sw_copy
tags:
- oradbsw

Expand All @@ -101,7 +101,7 @@
- "{{oracle_databases}}"
become: yes
become_user: "{{ oracle_user }}"
when: master_node and item[0].version == item[1].oracle_version_db and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: master_node and item[0].version == item[1].oracle_version_db and oracle_sw_copy and oracle_sw_unpack
tags:
- oradbswunpack

Expand All @@ -112,7 +112,7 @@
- "{{oracle_databases}}"
become: yes
become_user: "{{ oracle_user }}"
when: master_node and item[0].version == item[1].oracle_version_db and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: master_node and item[0].version == item[1].oracle_version_db and not oracle_sw_copy and oracle_sw_unpack
tags:
- oradbswunpack

Expand Down Expand Up @@ -209,7 +209,7 @@

- name: Unmount nfs share with installation media
mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=absent
when: install_from_nfs|bool
when: install_from_nfs
tags:
- nfsunmountdb

Expand Down
4 changes: 2 additions & 2 deletions roles/oraswgi-install/tasks/11.2.0.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy and oracle_sw_unpack

- name: Extract files to stage-area (GI) (from remote location)
unarchive: src={{ oracle_stage_remote }}/{{ item.filename }} dest={{ oracle_stage }}/{{ item.version }} copy=no
Expand All @@ -16,7 +16,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy and oracle_sw_unpack

- name: Install cvuqdisk rpm
yum: name="{{ oracle_stage_install }}/{{ oracle_install_version_gi }}/grid/rpm/{{ cvuqdisk_rpm }}" state=present
Expand Down
4 changes: 2 additions & 2 deletions roles/oraswgi-install/tasks/11.2.0.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy and oracle_sw_unpack

- name: Extract files to stage-area (GI) (from remote location)
unarchive: src={{ oracle_stage_remote }}/{{ item.filename }} dest={{ oracle_stage }}/{{ item.version }} copy=no
Expand All @@ -16,7 +16,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy and oracle_sw_unpack

- name: Install cvuqdisk rpm
yum: name="{{ oracle_stage_install }}/{{ oracle_install_version_gi }}/grid/rpm/{{ cvuqdisk_rpm }}" state=present
Expand Down
4 changes: 2 additions & 2 deletions roles/oraswgi-install/tasks/12.1.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy and oracle_sw_unpack

- name: Extract files to stage-area (GI) (from remote location)
unarchive: src={{ oracle_stage_remote }}/{{ item.filename }} dest={{ oracle_stage }}/{{ item.version }} copy=no
Expand All @@ -16,7 +16,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy and oracle_sw_unpack

- name: Install cvuqdisk rpm
yum: name="{{ oracle_stage_install }}/{{ oracle_install_version_gi }}/grid/rpm/{{ cvuqdisk_rpm }}" state=present
Expand Down
4 changes: 2 additions & 2 deletions roles/oraswgi-install/tasks/12.1.0.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy and oracle_sw_unpack

- name: Extract files to stage-area (GI) (from remote location)
unarchive: src={{ oracle_stage_remote }}/{{ item.filename }} dest={{ oracle_stage }}/{{ item.version }} copy=no
Expand All @@ -16,7 +16,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and not oracle_sw_copy and oracle_sw_unpack

- name: Install cvuqdisk rpm
yum: name="{{ oracle_stage_install }}/{{ oracle_install_version_gi }}/grid/rpm/{{ cvuqdisk_rpm }}" state=present
Expand Down
2 changes: 1 addition & 1 deletion roles/oraswgi-install/tasks/12.2.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridswunpack
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: checkgiinstall.stdout != "1" and oracle_install_version_gi == item.version and oracle_sw_copy and oracle_sw_unpack

- name: Extract files to ORACLE_HOME (gi) (from remote location)
unarchive: src={{ oracle_stage_remote }}/{{ item.filename }} dest={{ oracle_home_gi }} copy=no
Expand Down
8 changes: 4 additions & 4 deletions roles/oraswgi-install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=mounted
tags:
- nfsmountgi
when: install_from_nfs|bool
when: install_from_nfs

- name: Add new dotprofile (GI)
template: src=dotprofile-gi.j2 dest={{ grid_user_home }}/{{ oracle_profile_name_gi }} owner={{ grid_install_user }} group={{ oracle_group }} mode=755 backup=yes
Expand Down Expand Up @@ -69,7 +69,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridsw
when: checkgiinstall.stdout != "1" and not is_sw_source_local and oracle_install_version_gi == item.version and oracle_sw_copy|bool
when: checkgiinstall.stdout != "1" and not is_sw_source_local and oracle_install_version_gi == item.version and oracle_sw_copy

- name: Copy oracle installfiles to server (GI) (local)
copy: src={{ oracle_sw_source_local }}/{{ item.filename }} dest={{ oracle_stage }} mode=775
Expand All @@ -78,7 +78,7 @@
become_user: "{{ grid_install_user }}"
tags:
- oragridsw
when: checkgiinstall.stdout != "1" and is_sw_source_local and oracle_install_version_gi == item.version and oracle_sw_copy|bool
when: checkgiinstall.stdout != "1" and is_sw_source_local and oracle_install_version_gi == item.version and oracle_sw_copy


- include: "{{ oracle_install_version_gi }}.yml"
Expand Down Expand Up @@ -149,5 +149,5 @@

- name: Unmount nfs share with installation media
mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=absent
when: install_from_nfs|bool
when: install_from_nfs
tags: nfsunmountgi
10 changes: 5 additions & 5 deletions roles/oraswgi-opatch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
become: yes
become_user: "{{ grid_install_user }}"
with_items: "{{oracle_opatch_patch}}"
when: oracle_psu_apply_gi and item.version == oracle_install_version_gi and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: oracle_psu_apply_gi and item.version == oracle_install_version_gi and oracle_sw_copy and oracle_sw_unpack
tags:
- oragridpatchunpack

Expand All @@ -52,7 +52,7 @@
with_items: "{{oracle_opatch_patch}}"
become: yes
become_user: "{{ grid_install_user }}"
when: oracle_psu_apply_gi and item.version == oracle_install_version_gi and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: oracle_psu_apply_gi and item.version == oracle_install_version_gi and not oracle_sw_copy and oracle_sw_unpack
tags:
- oragridpatchunpack

Expand All @@ -64,7 +64,7 @@
with_together:
- "{{oracle_sw_image_gi_psu}}"
- "{{gi_applied_patches.results}}"
when: oracle_psu_apply_gi and item.0.version == oracle_install_version_gi and not item.1.stdout != 0 and oracle_sw_copy|bool and oracle_sw_unpack|bool
when: oracle_psu_apply_gi and item.0.version == oracle_install_version_gi and not item.1.stdout != 0 and oracle_sw_copy and oracle_sw_unpack
tags:
- oragridpsuunpack

Expand All @@ -75,7 +75,7 @@
with_together:
- "{{oracle_sw_image_gi_psu}}"
- "{{gi_applied_patches.results}}"
when: oracle_psu_apply_gi and item.0.version == oracle_install_version_gi and not item.1.stdout != 0 and not oracle_sw_copy|bool and oracle_sw_unpack|bool
when: oracle_psu_apply_gi and item.0.version == oracle_install_version_gi and not item.1.stdout != 0 and not oracle_sw_copy and oracle_sw_unpack
tags:
- oragridpsuunpack

Expand All @@ -89,7 +89,7 @@
# become_user: "{{ grid_install_user }}"
# tags:
# - oragridswunpack
# when: checkgiinstall.stdout != "1" and "{{ oracle_install_version_gi }}" == "{{ item.version }}" and not oracle_sw_copy|bool and oracle_sw_unpack|bool
# when: checkgiinstall.stdout != "1" and "{{ oracle_install_version_gi }}" == "{{ item.version }}" and not oracle_sw_copy and oracle_sw_unpack

- name: Distribute latest opatch
shell: rm -rf {{ oracle_home_gi }}/OPatch; cp -Rvp {{ oracle_psu_stage }}/{{ oracle_install_version_gi }}/OPatch {{ oracle_home_gi }}; chown -R {{ grid_install_user }}:{{ oracle_group }} {{ oracle_home_gi }}/OPatch
Expand Down

0 comments on commit 90f2106

Please sign in to comment.