This role is for managing operating system settings.
Following are the requirements of this role.
- Ansible
- An already initialized system running Linux.
When executing the role via Ansible these are the applicable variables:
-
enable_core_dump
When
true
, enable operating system facilities to capture and save core dumps. Default:false
-
enable_user_profiling
When
true
, sets relevant operating system settings such that any user and profile the system as well as disabling any masking of operating system kernel memory addresses. Default:false
These variables can be assigned in the pre_tasks
definition of the Playbook.
Content of the inventory.yml
:
all:
children:
primary:
hosts:
pgsql1.dbt2.internal:
ansible_host: 10.1.1.3
private_ip: 10.1.1.3
Content of the inventory.yml
file:
---
- hosts: all
name: Example
become: yes
pre_tasks:
- name: Initialize the user defined variables
ansible.builtin.set_fact:
enable_core_dump: true
enable_user_profiling: true
collections:
- edb_devops.edb_postgres
roles:
- role: manage_operating_system
$ ansible-playbook playbook.yml \
-i inventory.yml \
-u centos \
--private-key <key.pem> \
--extra-vars="enable_user_profiling=true enable_core_dump=true"
BSD
Author:
- Mark Wong
- EDB Postgres
- edb-devops@enterprisedb.com www.enterprisedb.com