diff options
author | sirkubax <muszynski@so1.net> | 2018-01-01 21:39:09 +0100 |
---|---|---|
committer | sirkubax <muszynski@so1.net> | 2018-01-01 21:39:09 +0100 |
commit | 71ce506fc95d1aa8ed0b20f5a8b3687235639c0d (patch) | |
tree | 7279679e6a44dcc0e7ff7b73b3be8c5fb1549af1 | |
parent | ca0e3475a019cfbe4532ddee6b1d9e5c1191c93c (diff) |
update
-rw-r--r-- | ansible.html.markdown | 10 |
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 |