Ansible使用user模块实现用户管理
使用 ‘user’ 模块可以方便的创建账户,删除账户,或是管理现有的账户:
ansible all -m user -a "name=foo password=<crypted password here>"
ansible all -m user -a "name=foo state=absent"
使用 ‘user’ 模块可以方便的创建账户,删除账户,或是管理现有的账户:
ansible all -m user -a "name=foo password=<crypted password here>"
ansible all -m user -a "name=foo state=absent"