Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_* vs *: #11

Closed
jokjr opened this issue Jan 6, 2022 · 0 comments
Closed

with_* vs *: #11

jokjr opened this issue Jan 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jokjr
Copy link
Contributor

jokjr commented Jan 6, 2022

- name: make some directories
  file:
    type: directory
    dest: "/tmp/directory_{{ item }}"
  items:
    - a
    - b

will throw an error:

ERROR! conflicting action statements: file, items                                                                             

because it should be with_items:. It seems like a plausible typo and should be easy to detect that there's more than one key under a name: when the second key isn't one of the finite set of additional allowed toplevel keys {with_items, register, when, etc}.

@jokjr jokjr added the enhancement New feature or request label Jan 6, 2022
@jokjr jokjr closed this as completed in ab0eaa4 Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant