From 1962287758ddb6a2ae62f605c57fc98470b093e9 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] add examples --- eoptasks.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eoptasks.py b/eoptasks.py index 0e9f6a4..e138a0c 100755 --- a/eoptasks.py +++ b/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