ansible playbook実行時に下記のエラーがでたときの対処
TASK [Gathering Facts] *********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TimeoutError: Timer expired after 10 seconds
fatal: [10.193.xx.xx]: FAILED! => {"changed": false, "cmd": "/usr/bin/udevadm info --query property --name /dev/sdn1", "msg": "Timer expired after 10 seconds", "rc": 257}
対処方法
udevadmコマンドがこけてるように見えるが、実際はansible.cfgに設定されているtimeout時間を超えてしまったためにでるエラー。
なので、このtimeout時間を伸ばしてやれば良い。
ansible.cfg
gather_timeout=20
参考