How to create a directory using Ansible

后端 未结 22 1479
暗喜
暗喜 2020-12-22 16:44

How do you create a directory www at /srv on a Debian-based system using an Ansible playbook?

22条回答
  •  时光说笑
    2020-12-22 17:11

    to create directory

    ansible host_name -m file -a "dest=/home/ansible/vndir state=directory"
    

提交回复
热议问题