у меня точная такая же 16 этажка и не горит(с) старый советский анекдот про погромистов
ansible-playbook 2.9.1
1.yml взял копипастой
ansible-playbook -i localhost, 1.yml graylog_api
PLAY [localhost] **************************************************************************************
Monday 13 January 2020 17:06:27 +0300 (0:00:00.027) 0:00:00.027 ********
TASK [Gathering Facts] ********************************************************************************
ok: [localhost]
Monday 13 January 2020 17:06:32 +0300 (0:00:04.962) 0:00:04.990 ********
TASK [debug] ******************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: dict_keys object has no element 0\n\nThe error appears to be in '/Users/wom/wellmax/ansible/newpb/1.yml': line 7, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - debug:\n ^ here\n”}