This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MOVED to public repo: https://github.com/catchdave/ssl-certs/blob/main/replace_synology_ssl_certs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |