Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Anonymous
2 years agoCreating login items from Ansible
Im trying to figure out how to use 1Password CLI to create items from Ansible.
Everything I tried is giving me an error: "Failed to create item: invalid JSON"
Here is my test task:
- name...
Anonymous
2 years agoHere is a raw error msg (from the first command) in case its helpful:
fatal: [ans-test3 -> localhost]: FAILED! => {
"changed": true,
"cmd": [
"op",
"item",
"create",
"--category",
"login",
"--title",
"Test"
],
"delta": "0:00:01.144492",
"end": "2023-04-28 12:21:14.001860",
"invocation": {
"module_args": {
"_raw_params": "op item create --category login --title 'Test'",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2023-04-28 12:21:12.857368",
"stderr": "[ERROR] 2023/04/28 12:21:13 Failed to create item: invalid JSON",
"stderr_lines": [
"[ERROR] 2023/04/28 12:21:13 Failed to create item: invalid JSON"
],
"stdout": "",
"stdout_lines": []
}