Skip to content

Commit de0d972

Browse files
bartowlRendanic
authored andcommitted
add configuration variables for pam_limits
1 parent 646c1ae commit de0d972

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- add configuration variables for pam_limits to orahost (oravirt#317)

roles/orahost/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ configure_ssh: false # (true/false). Should passwordless
119119
# mountpoints are described in host_fs_layout
120120
configure_host_disks: false
121121

122+
configure_limits_pam: true # entry in /etc/pam.d/limits
123+
configure_limits: true # /etc/security.d/limits.d/99-oracle-limits.conf file
124+
122125
configure_etc_hosts: false
123126
configure_cluster: false
124127
oracle_stage: /u01/stage

roles/orahost/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,15 @@
463463
state: present
464464
line: "session required pam_limits.so"
465465
tags: pamconfig
466+
when: configure_limits_pam and configure_limits
466467

467468
- name: Oracle-recommended security limits
468469
ansible.builtin.template:
469470
src: oracle-seclimits.conf.j2
470471
dest: /etc/security/limits.d/99-oracle-limits.conf
471472
backup: true
472473
mode: "0644"
473-
when: ansible_os_family == 'RedHat'
474+
when: configure_limits and ansible_os_family == 'RedHat'
474475
tags: seclimit
475476

476477
- name: Oracle-recommended security limits on SLES

0 commit comments

Comments
 (0)