ansible批量增加用户和设置密码
---- hosts: all
user: root
vars:
# created with:
# # python -c 'python -c 'import crypt; print crypt.crypt("hh4213", "hadoop")'
password: haHAfV7dvUhpM
tasks:
- user: name=hruser password=`password` update_password=always
页:
[1]