管理用户密码:
--- - hosts: test tasks: - name: changed password shell: echo root:123456 | chpasswd remote_user: root
管理用户密码:
--- - hosts: test tasks: - name: changed password shell: echo root:123456 | chpasswd remote_user: root
转载于:https://www.cnblogs.com/37yan/p/7112469.html