Avoid multiple entries with the same key in mappings.
In the example below, the name
key has been duplicated:
- name: restart webserver
service:
name: httpd
state: restarted
name: httpd # duplication of `name` key
Remove duplicate keys, if any.
- name: restart webserver
service:
name: httpd
state: restarted