ansible에서 존재하지 않는 디렉토리를 자동으로 만드는 쉬운 방법은 무엇입니까? 내 Ansible 플레이 북에서 여러 번 거기에 파일을 만들어야합니다. - name: Copy file template: src: code.conf.j2 dest: "{{project_root}}/conf/code.conf" 이제 여러 번 confdir이 없습니다. 그런 다음 먼저 해당 디렉토리를 만들기 위해 더 많은 작업을 만들어야합니다. 어떤 옵션과 함께 존재하지 않는 경우 디렉토리를 자동 생성하는 쉬운 방법이 있습니까? 지금이게 유일한 방법 - name: Ensures {{project_root}}/conf dir exists file: path={{project_root}}/conf state=directory -..