How do you create a directory www at /srv on a Debian-based system using an Ansible playbook?
www
/srv
Directory can be created using file module only, as directory is nothing but a file.
# create a directory if it doesn't exist - file: path: /etc/some_directory state: directory mode: 0755 owner: foo group: foo