From e5373e3ef2687a31297a7ce600e461ba499bd3fa Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: May 13 2019 14:53:13 +0000 Subject: Define ansible implementation for the prepare step Include a full example and description for the ansible prepare implementation. This resolves #16. --- diff --git a/l2/README.md b/l2/README.md index b3f6fd5..ad548e8 100644 --- a/l2/README.md +++ b/l2/README.md @@ -130,11 +130,21 @@ Examples of preparation implementation: * `shell` ... execute arbitratry shell commands to set up the system * `ansible` ... apply ansible playbook to get the desired final state -Example config: +Example prepare config using the `ansible` implementation: prepare: how: ansible - playbook: setup.yml + roles: + - nginxinc.nginx + playbooks: + - common.yml + - rhel7.yml + +One or more playbooks can be provided as a list under the `playbooks` attribute. +Each of them will be applied using `ansible-playbook` in the given order. +Optional attribute `roles` can be used to enable additional roles. +Role can be either an ansible galaxy role name, git url or a path to file with detailed requirements. + ### Execute