You cannot use loops on 'import_tasks' statements.

You should use 'include_tasks' instead.
This commit is contained in:
2022-02-20 18:00:31 +01:00
parent d3f75ead02
commit 64b6a61912

View File

@@ -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