Ansible使用user模块实现用户管理

使用 ‘user’ 模块可以方便的创建账户,删除账户,或是管理现有的账户:

ansible all -m user -a "name=foo password=<crypted password here>"
ansible all -m user -a "name=foo state=absent"
posted @ 2020-10-28 11:46  Varden  阅读(324)  评论(0编辑  收藏  举报