Consider the following playbook.
—
– hosts: local
become: yes
tasks:
– name: create users
user: name: “{{item}}” with_items:
– sam
– john
– bob
How many times is the user module invoked?
A. 5
B. 3
C. 1
D. 0
Explanation:
The call count will be based on the number of times the with_items loop executes – which is 3 in this case