如何在没有 "T" 权限的情况下创建目录

How ansible create dir without "T" right

当我用ansible创建目录时,她的权限是:

dr------wT"

代码:

- name: "Create Dir in opt"
  become: yes
  file:
    path: "/opt/test"
    state: directory
    mode: 770
    owner: test
    group: test

如何创建具有简单权限的目录?

drwxrwx---

再次感谢!

好的,我发现:

770前加0

 mode: 0770

谢谢大家!