summaryrefslogtreecommitdiffhomepage
path: root/ansible.html.markdown
diff options
context:
space:
mode:
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