Published: 18 May 2018 › Updated: 18 May 2018
ansible 批量添加/删除用户
- user 模块添加用户
ansible 192.168.5.212 -m user -a "name=www shell=/bin/bash createhome=yes"
- command模块删除用户及家目录
ansible 192.168.5.212 -m command -a "userdel www -r"
Leave ansible 批量添加/删除用户 to:
Read more #ansible posts
Best Posts From jpory
We have not curated any of jpory's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.