Skip to content

Instantly share code, notes, and snippets.

# Note: real path is inventory_plugins/dummy.py (adjacent to playbook)
from ansible.plugins.inventory import BaseInventoryPlugin
DOCUMENTATION = """
name: dummy
author: Olvier Clavel (@zeitounator)
short_description: Dummy inventory demo plugin for https://stackoverflow.com/questions/66820243
description:
- This is an inventory plugin for pure demo and test.
- Do not use in production.
@catchdave
catchdave / replace_synology_ssl_certs.sh
Last active November 9, 2024 01:27
CLI script to programmatically replace SSL certs on Synology NAS
# MOVED to public repo: https://github.com/catchdave/ssl-certs/blob/main/replace_synology_ssl_certs.sh
@zefanja
zefanja / nut-plugin-client
Created November 27, 2017 00:58
Check_MK integration for NUT (check plugin for Server and Client)
#!/bin/sh
if which upsc > /dev/null 2>&1 ; then
echo '<<<nut>>>'
for ups in $(upsc -l)
do
upsc $ups| sed "s,^,$ups ,"
done
fi