From 7c7760ac9295fbf229b27a0864e692c8f4acd75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 22 Dec 2018 15:08:51 +0100 Subject: [PATCH] eoptasks: add examples --- eoptasks/eoptasks.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py index 0e9f6a4..e138a0c 100755 --- a/eoptasks/eoptasks.py +++ b/eoptasks/eoptasks.py @@ -18,6 +18,18 @@ # [config] # servergroups = /path/to/servergroups.yaml # ignore = server1, server2 +# +# Examples: +# +# eoptasks -k test apt.upgrade +# Run (sudo) apt upgrade on all test servers. +# +# eoptasks -k test,-database sudo apt install python-gadjo +# Run sudo apt install python-gadjo on all test servers except database servers. +# +# eoptasks -k saas/test/passerelle,ext/test --list-servers +# List servers that have saas AND test AND passerelle keywords, OR the +# ext AND test keywords. import argparse import configparser