Skip to content

Commit b52104c

Browse files
committed
add configuration variables for pam_limits
1 parent 646c1ae commit b52104c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
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#316)

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@
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:
@@ -472,6 +473,7 @@
472473
mode: "0644"
473474
when: ansible_os_family == 'RedHat'
474475
tags: seclimit
476+
when: configure_limits
475477

476478
- name: Oracle-recommended security limits on SLES
477479
community.general.system.pam_limits:

0 commit comments

Comments
 (0)