Skip to content

Commit 473af6e

Browse files
authored
Merge pull request #260 from Rendanic/mergeoc
Merge oc branch from opitzconsulting
2 parents b00cb91 + 237c275 commit 473af6e

File tree

249 files changed

+10747
-15815
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+10747
-15815
lines changed

.ansible-lint

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
use_default_rules: true
3+
4+
skip_list:
5+
- role-name
6+
# must be fixed at later time
7+
- var-naming
8+
# temporary deactived - will be removed in next PRs
9+
- fqcn-builtins
10+
- schema
11+
12+
exclude_paths:
13+
- .github
14+
- dbhome-conversion
15+
- library

.github/workflows/ansible-lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Ansible Lint
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- oc
8+
- master
9+
push:
10+
branches:
11+
- 'pr*'
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
# Important: This sets up your GITHUB_WORKSPACE environment variable
20+
- uses: actions/checkout@v2
21+
22+
- name: Lint roles
23+
# Use custom action repo due to open PRs 43 and 48
24+
uses: Rendanic/ansible-lint-action@tbr
25+
with:
26+
targets: |
27+
roles/*
28+
29+
args: ""

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# See https://pre-commit.com for more information
3+
# See https://pre-commit.com/hooks.html for more hooks
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.0.1
7+
hooks:
8+
# needs some cleanup in project before enabling
9+
# - id: trailing-whitespace
10+
# - id: end-of-file-fixer
11+
- id: check-yaml
12+
- id: check-symlinks
13+
- id: check-added-large-files
14+
- id: check-merge-conflict
15+
- id: detect-private-key
16+
- id: forbid-new-submodules
17+
18+
- repo: https://github.com/ansible-community/ansible-lint.git
19+
rev: v5.2.0
20+
hooks:
21+
- id: ansible-lint
22+
entry: ansible-lint --force-color -p
23+
files: \.(yaml|yml)$
24+
pass_filenames: false
25+
always_run: true
26+
verbose: true

.yamllint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length: disable

aws-si-asm-install.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@
55
hosts: aws-si-asm
66
connection: local
77
user: ec2-user
8-
become: yes
8+
become: true
99
roles:
10-
- common
11-
- orahost
12-
- orahost-storage
10+
- common
11+
- orahost
12+
- orahost-storage
1313

1414
- name: Oracle Grid Infrastructure installation & ASM Configuration
1515
hosts: aws-si-asm
1616
connection: local
1717
user: ec2-user
18-
become: yes
18+
become: true
1919
roles:
20-
- oraswgi-install
21-
- oraasm-createdg
20+
- oraswgi-install
21+
- oraasm-createdg
2222

2323
- name: Database Server Installation & Database Creation
2424
hosts: aws-si-asm
2525
connection: local
2626
user: ec2-user
27-
become: yes
27+
become: true
2828
roles:
29-
- oraswdb-install
30-
- oradb-manage-db
29+
- oraswdb-install
30+
- oradb-manage-db
3131

3232
- name: Install cx_oracle
3333
hosts: aws-si-asm
3434
connection: local
3535
user: ec2-user
36-
become: yes
36+
become: true
3737
roles:
38-
- cxoracle
38+
- cxoracle
3939

4040
- name: Configure Logrotate
4141
hosts: aws-si-asm
4242
connection: local
4343
user: ec2-user
44-
become: yes
44+
become: true
4545
roles:
46-
- orahost-logrotate
46+
- orahost-logrotate

customize-db.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
- name: Customize database
2-
hosts: "{{ hostgroup }}"
3-
sudo: yes
3+
hosts: "{{ hostgroup | default('all') }}"
4+
become: true
45
roles:
56
- oradb-manage-pdb
67
- oradb-manage-tablespace

db-opatch.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
---
12
- name: Apply binary patches
2-
hosts: "{{ hostgroup }}"
3-
become: yes
3+
hosts: "{{ hostgroup | default('all') }}"
4+
become: true
45
serial: 1
56
roles:
6-
- {role: oraswdb-manage-patches }
7+
- {role: oraswdb-manage-patches}
78

89
- name: Run datapatch
9-
hosts: "{{ hostgroup }}"
10-
become: yes
10+
hosts: "{{ hostgroup | default('all') }}"
11+
become: true
1112
roles:
12-
- {role: oradb-datapatch }
13+
- {role: oradb-datapatch}

delete-db.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
---
33

44

5-
- name: Delete Database(s)
6-
hosts: "{{ hostgroup }}"
7-
#user: ansible
8-
become: yes
9-
become_user: oracle
10-
roles:
11-
- oradb-delete
12-
5+
- name: Delete Database(s)
6+
hosts: "{{ hostgroup | default('all') }}"
7+
become: true
8+
become_user: oracle
9+
roles:
10+
- oradb-delete

drracattack-full-install.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
2-
- name: Host configuration
3-
hosts: drracattack-all
4-
user: root
5-
roles:
6-
#- common
7-
- orahost
2+
- name: Host configuration
3+
hosts: drracattack-all
4+
user: root
5+
roles:
6+
# - common
7+
- orahost
88

9-
- name: Storage Configuration
10-
hosts: drracattack-hub
11-
user: root
12-
roles:
13-
- orahost-storage
9+
- name: Storage Configuration
10+
hosts: drracattack-hub
11+
user: root
12+
roles:
13+
- orahost-storage
1414

15-
- name: Oracle Grid Infrastructure installation
16-
hosts: drracattack
17-
user: root
18-
roles:
19-
- oraswgi-install
15+
- name: Oracle Grid Infrastructure installation
16+
hosts: drracattack
17+
user: root
18+
roles:
19+
- oraswgi-install
2020

21-
- name: ASM Configuration, Database Server Installation & Database Creation
22-
hosts: drracattack-hub
23-
user: root
24-
roles:
25-
- oraasm-createdg
26-
- oraswdb-install
27-
#- oradb-create
21+
- name: ASM Configuration, Database Server Installation & Database Creation
22+
hosts: drracattack-hub
23+
user: root
24+
roles:
25+
- oraasm-createdg
26+
- oraswdb-install
27+
# - oradb-create

full-rac-flex-install.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
---
2-
- name: Host configuration
3-
hosts: orarac-flex
4-
user: ansible
5-
become: yes
6-
roles:
7-
- common
8-
- orahost
2+
- name: Host configuration
3+
hosts: orarac-flex
4+
user: ansible
5+
become: true
6+
roles:
7+
- common
8+
- orahost
99

10-
- name: Storage Configuration
11-
hosts: orarac-flex-hub
12-
user: ansible
13-
become: yes
14-
roles:
15-
- orahost-storage
10+
- name: Storage Configuration
11+
hosts: orarac-flex-hub
12+
user: ansible
13+
become: true
14+
roles:
15+
- orahost-storage
1616

17-
- name: Oracle Grid Infrastructure installation
18-
hosts: orarac-flex
19-
user: ansible
20-
become: yes
21-
roles:
22-
- oraswgi-install
17+
- name: Oracle Grid Infrastructure installation
18+
hosts: orarac-flex
19+
user: ansible
20+
become: true
21+
roles:
22+
- oraswgi-install
2323

24-
- name: ASM Configuration, Database Server Installation & Database Creation
25-
hosts: orarac-flex-hub
26-
user: ansible
27-
become: yes
28-
roles:
29-
- oraasm-createdg
30-
- oraswdb-install
31-
- oradb-create
24+
- name: ASM Configuration, Database Server Installation & Database Creation
25+
hosts: orarac-flex-hub
26+
user: ansible
27+
become: true
28+
roles:
29+
- oraasm-createdg
30+
- oraswdb-install
31+
- oradb-create

0 commit comments

Comments
 (0)