summaryrefslogtreecommitdiffhomepage
path: root/ansible.html.markdown
diff options
context:
space:
mode:
authorsirkubax <muszynski@so1.net>2018-01-01 21:39:09 +0100
committersirkubax <muszynski@so1.net>2018-01-01 21:39:09 +0100
commit71ce506fc95d1aa8ed0b20f5a8b3687235639c0d (patch)
tree7279679e6a44dcc0e7ff7b73b3be8c5fb1549af1 /ansible.html.markdown
parentca0e3475a019cfbe4532ddee6b1d9e5c1191c93c (diff)
update
Diffstat (limited to 'ansible.html.markdown')
-rw-r--r--ansible.html.markdown10
1 files changed, 10 insertions, 0 deletions
diff --git a/ansible.html.markdown b/ansible.html.markdown
index bca1331c..a35bcf82 100644
--- a/ansible.html.markdown
+++ b/ansible.html.markdown
@@ -347,6 +347,16 @@ Some static content
```
Jinja may have some limitations, but it is a powerfull tool that you might like.
+Please examine this simple example that install apache2 and generate index.html from the template
+"playbooks/roles/simple_apache_role/templates/index.html"
+
+```bash
+$ source environment.sh
+$ # Now we would run the above playbook with roles
+(venv) user@host:~/ansible-for-learnXinYminutes$ ansible-playbook playbooks/simple_role.yml --tags apache2
+```
+
+
#### Jinja2 CLI
You can use the jinja in the CLI too
```bash