Skip to content

Instantly share code, notes, and snippets.

@alekseyfilippov
alekseyfilippov / custom_log_path.py
Last active January 19, 2024 01:04
Ansible callback plugin dynamic log path (depends on inventory)
import os
import logging
import datetime
from ansible.plugins.callback import CallbackBase
from ansible.utils.display import FilterUserInjector
from ansible import context
class CallbackModule(CallbackBase):
CALLBACK_VERSION = 2.0

Keybase proof

I hereby claim:

  • I am alekseyfilippov on github.
  • I am smok999 (https://keybase.io/smok999) on keybase.
  • I have a public key ASCKf5oYf9eOncE_7EnrVCVcdS1saoEv57oPTyBnBJuwxAo

To claim this, I am signing this object:

@alekseyfilippov
alekseyfilippov / Acsessibility hidden
Created January 6, 2018 17:47
Acsessibility hidden
.visually-hidden {
position: absolute;
clip: rect(0 0 0 0);
width: 1px;
height: 1px;
margin: -1px;
}