jpmens,
@jpmens@mastodon.social avatar

deleted_by_author

  • Loading...
    dirksteins,
    @dirksteins@social.cologne avatar

    @jpmens looks like a magic incantation to me.

    mdione,
    @mdione@en.osm.town avatar

    @jpmens

    a) how did you know I had a wrapper? is it that usual?[1]
    b) can you explain what it does?


    [1] in my case it's because it's running on a virtualenv

    jpmens,
    @jpmens@mastodon.social avatar

    deleted_by_author

  • Loading...
  • mdione,
    @mdione@en.osm.town avatar

    @jpmens 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...

    ronny,
    @ronny@metalhead.club avatar

    @jpmens put it to ansible.cfg and you have one issue less for other playbooks :)

    jpmens,
    @jpmens@mastodon.social avatar

    deleted_by_author

  • Loading...
  • ronny,
    @ronny@metalhead.club avatar

    @jpmens you can't do that conditionally, but what you can do is creat ansible.cfg per project, so you don't have that to all of them :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Ansible
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines