What is the `args` section in an ansible command

Viewed 13171

This example only runs when /path/to/database doesn't exist:

# You can also use the 'args' form to provide the options.
- name: This command will change the working directory to somedir/ and will only run when /path/to/database doesn't exist.
  command: /usr/bin/make_database.sh arg1 arg2
  args:
    chdir: somedir/
    creates: /path/to/database

but why is it listed under args:?

And what's the args: setting for?

1 Answers
Related