Marcos Dione on Nostr: npub1rmlrk…xxa6t ah, ugh, no wonder I was having issues parsing that. I personally ...
npub1rmlrk8t89jh2vv57je7xczz4nn5shkaa6m6zqqyh2hjt5ay9m9vs9xxa6t (npub1rml…xa6t) ah, ugh, no wonder I was having issues parsing that. I personally don't quite like that level of shortcuttery, I would prefer a full fledged:
`# enable YAML metadata output if -v provided`
`if echo "$@" | grep --quiet -- '-v'; then`
` export ANSIBLE_STDOUT_CALLBACK=yaml`
`fi`
Quite more readable and 'self documented'. Not to mention i hope you never have to give your playbook any argument that actually _has_ `-v` in it's name...
Published at
2024-02-19 15:40:37Event JSON
{
"id": "64b191c071eed7b4eadba31d4a6a1558959bcfcf0ef39768427678a19f98acd8",
"pubkey": "61b25e6ff2310e896ffe39e09ab21c420f0c31f8d44a12773dabab5d2a4fc70a",
"created_at": 1708357237,
"kind": 1,
"tags": [
[
"p",
"1efe3b1d672caea6329e967c6c08559ce90bdbbdd6f420009755e4ba7485d959",
"wss://relay.mostr.pub"
],
[
"p",
"4421e6f8f57df36e663f1a4568344196e61ea62eb94203c9c02d83bcb3eb9c66",
"wss://relay.mostr.pub"
],
[
"e",
"660837efdcf0b4c45993d5e98d14fa7dd230ee1d7cfe9aceaf772cfdf3c996df",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://en.osm.town/users/mdione/statuses/111958899938437473",
"activitypub"
]
],
"content": "nostr:npub1rmlrk8t89jh2vv57je7xczz4nn5shkaa6m6zqqyh2hjt5ay9m9vs9xxa6t ah, ugh, no wonder I was having issues parsing that. I personally don't quite like that level of shortcuttery, I would prefer a full fledged:\n\n`# enable YAML metadata output if -v provided`\n`if echo \"$@\" | grep --quiet -- '-v'; then`\n` export ANSIBLE_STDOUT_CALLBACK=yaml`\n`fi`\n\nQuite more readable and 'self documented'. Not to mention i hope you never have to give your playbook any argument that actually _has_ `-v` in it's name...",
"sig": "cb3da7b231dadca43919760cf15327333082059f145502f442d53f67371076a1dd28bd2b613da7ecc933610014735336915f7e5ef341b99c371ce9fed261d752"
}