You want Ansible to create directories on managed nodes. How do you write a playbook to do this?
This assumes that you have installed and configured Ansible. If you do not know how to deploy Ansible, see this posting if you are using a Red Hat derivative. If you are using Linux SUSE, see this posting. If you need help running a playbook, see this posting.
In the playbook (the .yaml file) for the section that creates the subdirectory, add these two stanzas where "cooluser" is a username with sudoer privileges on the managed node:
Here is a complete playbook that creates a directory called "contint" in the /etc/ directory:
- name: something