TASK [robertdebock.cups : Configure cups] **************************************
fatal: [staging-2.localdomain]: FAILED! => {"changed": false, "checksum": "4bcc5dff4c0183708e300b6c69624ddbdb203991", "exit_status": 1, "msg": "failed to validate", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
fatal: [staging-2.localdomain]: FAILED! => {
"changed": false,
"checksum": "4bcc5dff4c0183708e300b6c69624ddbdb203991",
"diff": [],
"exit_status": 1,
"invocation": {
"module_args": {
"_original_basename": "cupsd.conf.j2",
"attributes": null,
"backup": false,
"checksum": "4bcc5dff4c0183708e300b6c69624ddbdb203991",
"content": null,
"dest": "/etc/cups/cupsd.conf",
"directory_mode": null,
"follow": false,
"force": true,
"group": null,
"local_follow": null,
"mode": "0640",
"owner": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": "/home/admin/.ansible/tmp/ansible-tmp-1695691360.9995403-26245-83999800941144/source",
"unsafe_writes": false,
"validate": "cupsd -t -c %s"
}
},
"msg": "failed to validate",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
Describe the bug
The
Configure cupstask fails with:failed to validatePlaybook
Output
Environment
Ubuntu 22.04.3 LTSansible [core 2.15.0]Ubuntu 20.04.5 LTS