Added building Ubuntu 20.04 template
This commit is contained in:
11
ansible/roles/os-linux-prep-templ/handlers/main.yml
Normal file
11
ansible/roles/os-linux-prep-templ/handlers/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Update config grub on Debian like
|
||||
shell: "update-grub"
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Reboot the server from shell
|
||||
shell: 'shutdown -r now "Reboot the server by Ansible"'
|
||||
# ignore_errors: true
|
||||
async: 30
|
||||
poll: 0
|
Reference in New Issue
Block a user