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: install needed tools
15 when: grub_setup | bool
17 ignore_errors: "{{ignore_online_errors | bool}}"
20 - name: setup grub-defaults
23 dest: "/etc/default/grub"
25 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/grub"
26 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/grub"
27 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/grub"
29 when: grub_setup | bool
33 - name: setup grub protections
36 dest: "/etc/grub.d/10_linux"
41 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/10_linux.j2"
42 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/10_linux.j2"
43 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/10_linux.j2"
44 - "templates/10_linux.j2"
45 when: grub_setup | bool