Difference between ansible vars_files vs include_vars
Both of them have some commonalities but they solve different purposes. vars_files are read when the play starts. include_vars are read when the play reaches the task. Format vars_files: directive and include_vars module vars_files: vars_file directive can only be used when defining a play to specify variable files. The variables from those files are included…
