File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
documentation/docs/content/Customization Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,36 @@ For customization just add your shell scripts into these directories for the sim
3434
3535Ansible provision
3636-----------------
37+
38+ For Ansible the provision events are available as tags. The roles are located inside ``/opt/docker/provision/roles/ ``
39+ and must be registred with the provision system:
40+
41+ .. code-block :: bash
42+
43+ /opt/docker/bin/provision add --tag bootstrap my-own-role
44+
45+
46+ Multiple tags can be defined with multiple ``--tag `` options:
47+
48+ .. code-block :: bash
49+
50+ /opt/docker/bin/provision add --tag bootstrap --tag build my-own-role
51+
52+ There is a pritory system for roles in which order they should be executed, default priority is 100:
53+
54+ .. code-block :: bash
55+
56+ # # run before
57+ /opt/docker/bin/provision add --tag bootstrap --priority 40 my-own-role-first
58+
59+ # # run with normal priority
60+ /opt/docker/bin/provision add --tag bootstrap my-own-role
61+
62+ # # run after
63+ /opt/docker/bin/provision add --tag bootstrap --priority 200 my-own-role-last
64+
65+ It's also possible to run one role with the provision command:
66+
67+ .. code-block :: bash
68+
69+ /opt/docker/bin/provision run --tag bootstrap my-own-role
You can’t perform that action at this time.
0 commit comments