ansible/roles/common/templates/nproc_service.j2

15 lines
298 B
Plaintext
Raw Normal View History

2023-09-26 09:29:37 +00:00
{# Updated: 2023-09-26 #}
# master: {{ common_mastering }}
# updated: {{ ansible_date_time.date }}
[Unit]
Description=VM define NPROC
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c 'echo "NPROC=$(nproc)" > {{ nproc_default }}'
[Install]
WantedBy=multi-user.target