Ansible-Jinja2 Templating.

- hosts: webserver
vars:
pkg_name: httpd
http_port: 8080
web_path: /var/www/html
tasks:
- name: Install apache Webserver
package:
name: "{{ pkg_name }}
state: present
- name: Deploy web page
template:
dest: "{{ web_path }}/index.html"
src: home.html.j2

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store