Перезапустить сервис на всех хостах ansible

Ad-hoc перезапуск сервиса с повышением привилегий (-b)

ansible webservers -m service -a 'name=nginx state=restarted' -b -i inventory.ini
more ansible all 56 commands →