Can't fix "ERROR! the field 'hosts' is required but was not set"

318 views
Skip to first unread message

Oneday “onedayapps” App

unread,
Nov 11, 2022, 7:35:08 AM11/11/22
to Ansible Project
OnPaste.20221111-133457.png

Todd Lewis

unread,
Nov 11, 2022, 11:36:51 AM11/11/22
to ansible...@googlegroups.com
You have
- tasks:
where you should have
  tasks:
with no leading dash. That dash effectively starts a second play within the playbook, a play for which you have not specified "hosts:".


On 11/11/22 7:35 AM, Oneday “onedayapps” App wrote:

Rowe, Walter P. (Fed)

unread,
Nov 14, 2022, 9:38:39 AM11/14/22
to ansible...@googlegroups.com
Does the blank line at the top matter, or not having one is simply a best practice?

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9cf29a7d-aa41-b6f6-6a25-adf820a5e8a0%40gmail.com.

Reply all
Reply to author
Forward
0 new messages