Why Am I Getting "User does not exist" Error When Using Ansible's User Module With "local: true" Parameter ?

Solution Verified - Updated -


When creating a new user on the using user module with local:true parameter, the playbook fails with following error.

"msg": "User testuser does not exist.\n"


Ansible Engine < 2.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In