How do you create a directory www at /srv on a Debian-based system using an Ansible playbook?
www
/srv
You can directly run the command and create directly using ansible
ansible -v targethostname -m shell -a "mkdir /srv/www" -u targetuser
OR
ansible -v targethostname -m file -a "path=/srv/www state=directory" -u targetuser