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
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_grants: ansible-lint
  • Loading branch information
Rendanic committed Oct 2, 2022
commit 0d8a9cb4a9c68630537b162d3e366874e22816e7
125 changes: 67 additions & 58 deletions roles/oradb_manage_grants/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
# tasks file for manage-db-users
- name: Manage role grants (cdb)
oracle_grants:
role={{ item.1.name }}
state={{ item.1.state }}
grants={{ item.1.grants | default(omit) }}
grants_mode={{ item.1.grants_mode | default(omit) }}
object_privs={{ item.1.object_privs | default (omit) }}
directory_privs={{ item.1.directory_privs | default (omit) }}
hostname={{ ansible_hostname }}
port={{ listener_port_template }}
service_name={{ db_service_name }}
user={{ db_user }}
password={{ db_password_cdb }}
container={{ item.1.container | default(omit) }}
mode={{ db_mode }}
opitzconsulting.ansible_oracle.oracle_grants:
role: "{{ item.1.name }}"
state: "{{ item.1.state }}"
grants: "{{ item.1.grants | default(omit) }}"
grants_mode: "{{ item.1.grants_mode | default(omit) }}"
object_privs: "{{ item.1.object_privs | default(omit) }}"
directory_privs: "{{ item.1.directory_privs | default(omit) }}"
hostname: "{{ ansible_hostname }}"
port: "{{ listener_port_template }}"
service_name: "{{ db_service_name }}"
user: "{{ db_user }}"
password: "{{ db_password_cdb }}"
container: "{{ item.1.container | default(omit) }}"
mode: "{{ db_mode }}"
with_subelements:
- "{{ oracle_databases }}"
- roles
Expand All @@ -33,26 +33,28 @@
tags: users,grants

- name: Manage role grants (pdb)
oracle_grants:
role={{ item.1.name }}
state={{ item.1.state }}
grants={{ item.1.grants | default(omit) }}
grants_mode={{ item.1.grants_mode | default(omit) }}
object_privs={{ item.1.object_privs | default (omit) }}
directory_privs={{ item.1.directory_privs | default (omit) }}
hostname={{ ansible_hostname }}
port={{ listener_port_template }}
service_name={{ item.0.pdb_name }}
user={{ db_user }}
password={{ db_password_pdb }}
mode={{ db_mode }}
opitzconsulting.ansible_oracle.oracle_grants:
role: "{{ item.1.name }}"
state: "{{ item.1.state }}"
grants: "{{ item.1.grants | default(omit) }}"
grants_mode: "{{ item.1.grants_mode | default(omit) }}"
object_privs: "{{ item.1.object_privs | default(omit) }}"
directory_privs: "{{ item.1.directory_privs | default(omit) }}"
hostname: "{{ ansible_hostname }}"
port: "{{ listener_port_template }}"
service_name: "{{ item.0.pdb_name }}"
user: "{{ db_user }}"
password: "{{ db_password_pdb }}"
mode: "{{ db_mode }}"
with_subelements:
- "{{ oracle_pdbs }}"
- roles
- flags:
skip_missing: true
environment: "{{ oracle_env }}"
when: oracle_pdbs is defined and item.0 is defined and item.0.state|lower == 'present' and (item.1.grants is defined or item.1.object_privs is defined)
when:
- oracle_pdbs is defined
- item.0 is defined and item.0.state|lower == 'present' and (item.1.grants is defined or item.1.object_privs is defined)
run_once: "{{ configure_cluster }}"
become_user: "{{ oracle_user }}"
loop_control:
Expand All @@ -61,27 +63,30 @@
tags: users,grants

- name: Manage schema grants (cdb)
oracle_grants:
schema={{ item.1.schema }}
state={{ item.1.state }}
grants={{ item.1.grants | default(omit) }}
grants_mode={{ item.1.grants_mode | default(omit) }}
object_privs={{ item.1.object_privs | default (omit) }}
directory_privs={{ item.1.directory_privs | default (omit) }}
hostname={{ ansible_hostname }}
port={{ listener_port_template }}
service_name={{ db_service_name }}
user={{ db_user }}
password={{ db_password_cdb }}
container={{ item.1.container | default(omit) }}
mode={{ db_mode }}
opitzconsulting.ansible_oracle.oracle_grants:
schema: "{{ item.1.schema }}"
state: "{{ item.1.state }}"
grants: "{{ item.1.grants | default(omit) }}"
grants_mode: "{{ item.1.grants_mode | default(omit) }}"
object_privs: "{{ item.1.object_privs | default(omit) }}"
directory_privs: "{{ item.1.directory_privs | default(omit) }}"
hostname: "{{ ansible_hostname }}"
port: "{{ listener_port_template }}"
service_name: "{{ db_service_name }}"
user: "{{ db_user }}"
password: "{{ db_password_cdb }}"
container: "{{ item.1.container | default(omit) }}"
mode: "{{ db_mode }}"
with_subelements:
- "{{ oracle_databases }}"
- users
- flags:
skip_missing: true
environment: "{{ oracle_env }}"
when: oracle_databases is defined and item.0.state|lower == 'present' and (item.1.grants is defined or item.1.object_privs is defined)
when:
- oracle_databases is defined
- item.0.state | lower == 'present'
- (item.1.grants is defined or item.1.object_privs is defined)
run_once: "{{ configure_cluster }}"
become_user: "{{ oracle_user }}"
loop_control:
Expand All @@ -90,26 +95,30 @@
tags: users,grants

- name: Manage schema grants (pdb)
oracle_grants:
schema={{ item.1.schema }}
state={{ item.1.state }}
grants={{ item.1.grants | default (omit) }}
grants_mode={{ item.1.grants_mode | default(omit) }}
object_privs={{ item.1.object_privs | default (omit) }}
directory_privs={{ item.1.directory_privs | default (omit) }}
hostname={{ ansible_hostname }}
port={{ listener_port_template }}
service_name={{ item.0.pdb_name }}
user={{ db_user }}
password={{ db_password_pdb }}
mode={{ db_mode }}
opitzconsulting.ansible_oracle.oracle_grants:
schema: "{{ item.1.schema }}"
state: "{{ item.1.state }}"
grants: "{{ item.1.grants | default(omit) }}"
grants_mode: "{{ item.1.grants_mode | default(omit) }}"
object_privs: "{{ item.1.object_privs | default(omit) }}"
directory_privs: "{{ item.1.directory_privs | default(omit) }}"
hostname: "{{ ansible_hostname }}"
port: "{{ listener_port_template }}"
service_name: "{{ item.0.pdb_name }}"
user: "{{ db_user }}"
password: "{{ db_password_pdb }}"
mode: "{{ db_mode }}"
with_subelements:
- "{{ oracle_pdbs }}"
- users
- flags:
skip_missing: true
environment: "{{ oracle_env }}"
when: oracle_pdbs is defined and item.0 is defined and item.0.state|lower == 'present' and (item.1.grants is defined or item.1.object_privs is defined)
environment: "{{ oracle_env }}"
when:
- oracle_pdbs is defined
- item.0 is defined
- and item.0.state | lower == 'present'
- and (item.1.grants is defined or item.1.object_privs is defined)
run_once: "{{ configure_cluster }}"
become_user: "{{ oracle_user }}"
loop_control:
Expand Down