]> git.somenet.org - root/pub/somesible.git/blob - roles/base/sysctl/tasks/main.yml
[roles/base/sysctl] Set system settings - TODO: move to systemd subrole?
[root/pub/somesible.git] / roles / base / sysctl / tasks / main.yml
1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
6 #
7 ---
8 - name: copy/overwrite sysctl.conf
9   copy:
10     src: "{{item}}"
11     dest: "/etc/sysctl.conf"
12   with_first_found:
13     - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/sysctl.conf"
14     - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/sysctl.conf"
15     - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/sysctl.conf"
16     - "default/sysctl.conf"
17   notify: reload sysctl settings