Copied from the environment repository's roles and scrubbed for the Collection: galaxy namespace mortis, molecule scenarios call the roles by their FQCN and take their paths from the workflow, README examples use mortis.kamino.* and documentation addresses, repository-local references (issue numbers, ADRs, inventory paths) are dropped. network_interfaces loses its Legacy name guard and the molecule play that tested it: the guard only protected the in-repo rename, and a new consumer never had the old names. mock_roles in .ansible-lint lists both FQCNs. Not verified locally: the molecule scenarios (they run on the kamino-molecule runner in CI) and ansible-test sanity. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
27 lines
628 B
YAML
27 lines
628 B
YAML
---
|
|
- name: Ensure system.conf.d directory exists
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: /etc/systemd/system.conf.d
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
|
|
- name: Harden systemd manager (global settings)
|
|
become: true
|
|
ansible.builtin.copy:
|
|
dest: /etc/systemd/system.conf.d/hardening.conf
|
|
content: |
|
|
[Manager]
|
|
DefaultLimitNOFILE=65535
|
|
DefaultLimitNPROC=16384
|
|
DefaultLimitCORE=0
|
|
DefaultTasksAccounting=yes
|
|
DefaultMemoryAccounting=yes
|
|
DefaultCPUAccounting=yes
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: "systemd reload"
|