Import OS-specific vars in tasks instead of play
Something seems to have happened as of Ansible 2.4.0.0 where this no longer works. I suspect it is related to the major changes to static and dynamic imports that landed around this same time. We make sure that this tasks always runs by using the special tag of the same name.
This commit is contained in:
parent
73e6d0b7ed
commit
e30e4d4b1e
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
# ported from top-level play because it stopped working around Ansible 2.4.0.0
|
||||||
|
- name: Import OS-specific variables
|
||||||
|
include_vars: "vars/{{ ansible_os_family }}.yml"
|
||||||
|
tags: always
|
||||||
|
|
||||||
- name: Configure network time
|
- name: Configure network time
|
||||||
import_tasks: ntp.yml
|
import_tasks: ntp.yml
|
||||||
tags: ntp
|
tags: ntp
|
||||||
|
Loading…
Reference in New Issue
Block a user