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>
8 - name: "setup enabling preset for {{ service_name }}"
11 dest: "/etc/systemd/system-preset/10-somesible-{{ service_name }}.preset"
16 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/10-somesible-service.preset.j2"
17 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/10-somesible-service.preset.j2"
18 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/10-somesible-service.preset.j2"
19 - "templates/10-somesible-service.preset.j2"
20 when: not '@' in service_name
21 tags: ['systemd', 'systemd-enable-and-start']
24 - name: "enable and start {{ service_name }}"
26 name: "{{ service_name }}"
29 state: "{{ service_state }}"
30 tags: ['systemd', 'systemd-enable-and-start']