Hey @Thomas, by default ansible runs these commands parellely. If you want it to be executed sequencially then you need to explicitly mention it using --fork.
On adhoc command:
ansible aws -a "hostname" --forks=1
Inside the playbook:
- hosts: aws
- your tasks