--- - name: Change root's password hosts: all gather_facts: false become: true #vars_files: tasks: - name: "Import variables from include/root_user/root.userinfo.yaml" include_vars: dir: "include/root_user" ignore_unknown_extensions: True extensions: [ 'userinfo.yaml', 'yaml' ] - name: "Perform password change on root user" user: name: "root" password: "{{ shadowhash }}" password_expire_max: 0 password_expire_min: 0 password_lock: false update_password: always