Skip to content

Instantly share code, notes, and snippets.

@piotr-gbyliczek
Created August 2, 2017 10:57
Show Gist options
  • Save piotr-gbyliczek/898c473fd1f959d63df86428652bf7a1 to your computer and use it in GitHub Desktop.
Save piotr-gbyliczek/898c473fd1f959d63df86428652bf7a1 to your computer and use it in GitHub Desktop.
TASK [set user limits] *********************************************************
failed: [default] (item={u'comment': u'Oracle', u'domain': u'oracle', u'type': u'soft', u'name': u'nofile', u'value': 1024}) => {"failed": true, "item": {"comment": "Oracle", "domain": "oracle", "name": "nofile", "type": "soft", "value": 1024}, "msg": "Invalid configuration of '/etc/security/limits.conf'. Current value of nofile is unsupported."}
failed: [default] (item={u'comment': u'Oracle', u'domain': u'oracle', u'type': u'hard', u'name': u'nofile', u'value': 65536}) => {"failed": true, "item": {"comment": "Oracle", "domain": "oracle", "name": "nofile", "type": "hard", "value": 65536}, "msg": "Invalid configuration of '/etc/security/limits.conf'. Current value of nofile is unsupported."}
failed: [default] (item={u'comment': u'Oracle', u'domain': u'oracle', u'type': u'soft', u'name': u'nproc', u'value': 2047}) => {"failed": true, "item": {"comment": "Oracle", "domain": "oracle", "name": "nproc", "type": "soft", "value": 2047}, "msg": "Invalid configuration of '/etc/security/limits.conf'. Current value of nofile is unsupported."}
failed: [default] (item={u'comment': u'Oracle', u'domain': u'oracle', u'type': u'hard', u'name': u'nproc', u'value': 16384}) => {"failed": true, "item": {"comment": "Oracle", "domain": "oracle", "name": "nproc", "type": "hard", "value": 16384}, "msg": "Invalid configuration of '/etc/security/limits.conf'. Current value of nofile is unsupported."}
failed: [default] (item={u'comment': u'Oracle', u'domain': u'oracle', u'type': u'soft', u'name': u'stack', u'value': 10240}) => {"failed": true, "item": {"comment": "Oracle", "domain": "oracle", "name": "stack", "type": "soft", "value": 10240}, "msg": "Invalid configuration of '/etc/security/limits.conf'. Current value of nofile is unsupported."}
failed: [default] (item={u'comment': u'Oracle', u'domain': u'oracle', u'type': u'hard', u'name': u'stack', u'value': 32768}) => {"failed": true, "item": {"comment": "Oracle", "domain": "oracle", "name": "stack", "type": "hard", "value": 32768}, "msg": "Invalid configuration of '/etc/security/limits.conf'. Current value of nofile is unsupported."}
vars:
oracle_limits:
- { domain: oracle, type: soft, name: nofile, value: 1024, comment: Oracle }
- { domain: oracle, type: hard, name: nofile, value: 65536, comment: Oracle }
- { domain: oracle, type: soft, name: nproc, value: 2047, comment: Oracle }
- { domain: oracle, type: hard, name: nproc, value: 16384, comment: Oracle }
- { domain: oracle, type: soft, name: stack, value: 10240, comment: Oracle }
- { domain: oracle, type: hard, name: stack, value: 32768, comment: Oracle }
tasks:
- name: set user limits
pam_limits:
limit_item: "{{ item.name }}"
limit_type: "{{ item.type }}"
value: "{{ item.value }}"
domain: "{{ item.domain }}"
comment: "{{ item.comment }}"
with_items: "{{ oracle_limits }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment