Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible-lint: removed disabled rules for v6.6.1 #280

Merged
merged 32 commits into from
Oct 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8abfc99
oraswdb_install: ansible-lint + refactoring
Rendanic Oct 1, 2022
38835cb
oraswgi_opatch: ansible-lint
Rendanic Oct 1, 2022
5232bca
common: ansible-lint
Rendanic Oct 1, 2022
311be71
cxoracl: ansible-lint
Rendanic Oct 1, 2022
1f17553
oraasm_manage_diskgroups: ansible-lint
Rendanic Oct 1, 2022
d1393b9
oradb_datapatch: ansible-lint
Rendanic Oct 1, 2022
f286152
oradb_manage_db: ansible-lint
Rendanic Oct 1, 2022
0d8a9cb
oradb_manage_grants: ansible-lint
Rendanic Oct 1, 2022
f2ae146
oradb_manage_parameters: ansible-lint
Rendanic Oct 1, 2022
5b87c1f
oradb_manage_pdb: ansible-lint
Rendanic Oct 1, 2022
e4c1e47
oradb_manage_profiles: ansible-lint
Rendanic Oct 1, 2022
446860a
oradb_manage_redo: ansible-lint
Rendanic Oct 1, 2022
c863e12
oradb_manage_role: ansible-lint
Rendanic Oct 1, 2022
aa89297
oradb_manage_services/: ansible-lint
Rendanic Oct 1, 2022
1a8c1a2
oradb_manage_statspack: ansible-lint
Rendanic Oct 1, 2022
d8a1de2
oradb_manage_tablespace: ansible-lint
Rendanic Oct 1, 2022
406794a
oradb_manage_users: ansible-lint
Rendanic Oct 1, 2022
3640c75
orahost: ansible-lint
Rendanic Oct 1, 2022
9a87d32
orahost_meta: ansible-lint
Rendanic Oct 1, 2022
d4de658
orahost_ssh: ansible-lint
Rendanic Oct 1, 2022
87246df
oraswdb_golden_image: ansible-lint
Rendanic Oct 1, 2022
dd1654b
oraswdb_install: ansible-lint
Rendanic Oct 1, 2022
2356227
orahost: ansible-lint
Rendanic Oct 1, 2022
46b2062
oraswgi_manage_patches: ansible-lint
Rendanic Oct 1, 2022
f202818
oraswgi_install: ansible-lint
Rendanic Oct 1, 2022
cd34524
oradb_datapatch: ansible-lint
Rendanic Oct 1, 2022
532edc4
oraswgi_golden_image: ansible-lint
Rendanic Oct 1, 2022
f3d8a24
oraswdb_manage_patches: ansible-lint
Rendanic Oct 1, 2022
a6ceae0
oraswgi_golden_image: ansible-lint
Rendanic Oct 1, 2022
90a7536
oraswdb_install: ansible-lint & refactoring
Rendanic Oct 2, 2022
49b4c62
ansible-lint: removed exeception for v6.6.1
Rendanic Oct 2, 2022
4ff14e4
changelog
Rendanic Oct 2, 2022
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
Prev Previous commit
Next Next commit
oradb_manage_pdb: ansible-lint
  • Loading branch information
Rendanic committed Oct 2, 2022
commit 5b87c1f828a36de4616f827b76d632a905e12ce5
12 changes: 5 additions & 7 deletions roles/oradb_manage_pdb/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ configure_cluster: false
oracle_base: /u01/app/oracle
oracle_user: oracle
db_user: sys
db_password_cdb: "{% if dbpasswords is defined and dbpasswords[item.0.oracle_db_name] is defined and dbpasswords[item.0.oracle_db_name][db_user] is defined%}{{ dbpasswords[item.0.oracle_db_name][db_user] }}
{%- else %}{{ default_dbpass }}
db_password_cdb: "{% if dbpasswords is defined and dbpasswords[item.0.oracle_db_name] is defined and dbpasswords[item.0.oracle_db_name][db_user] is defined%}{{ dbpasswords[item.0.oracle_db_name][db_user] }}\
{%- else %}{{ default_dbpass }}\
{%- endif %}"
# noqa yaml

db_mode: sysdba

pdbadmin_user: pdbadmin
pdbadmin_password: "{% if dbpasswords is defined and dbpasswords[item[1].cdb] is defined and dbpasswords[item[1].cdb][item[1].pdb_name] is defined and dbpasswords[item[1].cdb][item[1].pdb_name][pdbadmin_user] is defined%}{{ dbpasswords[item[1].cdb][item[1].pdb_name][pdbadmin_user] }}
{%- else %}{{ default_dbpass }}
{%- endif%}"
# noqa yaml
pdbadmin_password: "{% if dbpasswords is defined and dbpasswords[item[1].cdb] is defined and dbpasswords[item[1].cdb][item[1].pdb_name] is defined and dbpasswords[item[1].cdb][item[1].pdb_name][pdbadmin_user] is defined %}{{ dbpasswords[item[1].cdb][item[1].pdb_name][pdbadmin_user] }}\
{%- else %}{{ default_dbpass }}\
{%- endif %}"

listener_port_template: "{% if item.0.listener_port is defined %}{{ item.0.listener_port }}{% else %}{{ listener_port }}{% endif %}"
listener_port: 1521
Expand Down
6 changes: 3 additions & 3 deletions roles/oradb_manage_pdb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Manage pdb(s)
oracle_pdb:
opitzconsulting.ansible_oracle.oracle_pdb:
name={{ item[1].pdb_name }}
sourcedb={{ item[1].cdb }}
datafile_dest={{ item[1].datafile_dest | default(omit) }}
Expand All @@ -17,8 +17,8 @@
environment: "{{ oracle_env }}"
run_once: "{{ configure_cluster }}"
with_nested:
- "{{ oracle_databases | default ([]) }}"
- "{{ oracle_pdbs | default ([]) }}"
- "{{ oracle_databases | default([]) }}"
- "{{ oracle_pdbs | default([]) }}"
become_user: "{{ oracle_user }}"
loop_control:
label: "CDB: {{ item[1].cdb }}, PDB: {{ item[1].pdb_name }}, {{ item.1.home }}, state: {{ item[1].state }}"
Expand Down