From 8e27df82ca0bc380d72e2e44acb96be9c2ee556c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 1 Dec 2018 16:07:58 +0800 Subject: README: Add basic usage and Ansible version --- README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95b0bfa..9fdfde5 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,11 @@ Ansible Playbooks for Personal DragonFly BSD Server Created: 2018-02-14 +Ansible: 2.7.1 + Introduction ------------ -An Ansible playbook to manage a small (even 512 MB RAM) personal VPS to +An Ansible playbook to manage a very small (read 512MB RAM) VPS to self-host various services including: * _DNS_ (NSD for authoritative DNS service) * _Email_ (Postfix, Dovecot) @@ -109,6 +111,38 @@ Extensions * `filter_plugins/` Custom template filters +Usages +------ +* Test host connection: + + ``` + $ ansible vultr -m ping + ``` + +* List tasks: + + ``` + $ ansible-playbook -v --list-tasks + ``` + +* Run (check only but don't make changes) the whole playbook: + + ``` + $ ansible-playbook -vD [--check] + ``` + +* Run the playbook from a specific task: + + ``` + $ ansible-playbook -vD --step --start-at-task="..." + ``` + +* Run the tasks with specific tags: + + ``` + $ ansible-playbook -vD --tags="..." + ``` + References ---------- * Securing a Server with Ansible -- cgit v1.2.2