# create a directory # https://phoenixnap.com/kb/ansible-create-file --- - name: "07 - Playing with Ansible - create a directory" # hosts: all hosts: localhost connection: local tasks: - name: Create a new directory file: path: "~/ansible_created_directory" state: directory ...