From 6560212d8190fc79176c3e493489f54aec544113 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 24 Jul 2022 03:07:25 +0200 Subject: [PATCH] docs(role): Document example tasks output --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index c6475dd..b24735c 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,32 @@ In your `playbook.yml` call it like so: roles: - 'role_common_local-os-password' ``` + +# Output + +Ansible tasks is for example: + +``` +... + +TASK [role_common_local-os-password : Get secrets] ************************************************* +ok: [fully.qualified.domain.name] => (item=None) +ok: [fully.qualified.domain.name] => (item=None) +ok: [fully.qualified.domain.name] + +TASK [role_include_vault-check : If a secret is missing: Fail progress] **************************** +ok: [fully.qualified.domain.name] => (item=password) => { + "msg": "Vault has secret 'password' at 'name/domain/qualified/fully/os/root'" +} +ok: [fully.qualified.domain.name] => (item=password_salt) => { + "msg": "Vault has secret 'password_salt' at 'name/domain/qualified/fully/os/root'" +} + +TASK [role_common_local-os-password : Set fact: New OS local account password] ********************* +ok: [fully.qualified.domain.name] + +TASK [role_common_local-os-password : Set local OS account password] ******************************* +ok: [fully.qualified.domain.name] + +... +```