mirror of
https://github.com/nicolabs/ansible-role-grub.git
synced 2026-04-10 21:01:19 +02:00
Switching to ansible_connection to conditionally run tasks.
This commit is contained in:
parent
f03b8c4cb1
commit
ddbb9afe76
|
|
@ -3,8 +3,7 @@
|
|||
- name: update grub
|
||||
command: "{{ grub_update_grub_command }}"
|
||||
when:
|
||||
- ansible_virtualization_type != "docker"
|
||||
- ansible_virtualization_type != "container"
|
||||
- ansible_connection != "docker"
|
||||
notify:
|
||||
- reboot
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue