You cannot use loops on 'import_tasks' statements.
You should use 'include_tasks' instead.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
- import_tasks: users/ansible.yml
|
||||
|
||||
- name: users | all | repeating tasks for all users
|
||||
import_tasks: user/all.yml
|
||||
include_tasks: user/all.yml
|
||||
loop:
|
||||
- rene
|
||||
- root
|
||||
|
||||
Reference in New Issue
Block a user