diff --git a/website/source/docs/provisioners/ansible.html.md.erb b/website/source/docs/provisioners/ansible.html.md.erb index 4f4a481c1..ff2608cca 100644 --- a/website/source/docs/provisioners/ansible.html.md.erb +++ b/website/source/docs/provisioners/ansible.html.md.erb @@ -25,6 +25,7 @@ provisioner. This is a fully functional template that will provision an image on DigitalOcean. Replace the mock `api_token` value with your own. +Example Packer template: ``` json { "provisioners": [ @@ -45,6 +46,23 @@ DigitalOcean. Replace the mock `api_token` value with your own. } ``` +Example playbook: + +``` +--- +# playbook.yml +- name: "Provision Image" + hosts: default + become: true + + tasks: + - name: install Apache + package: + name: "httpd" + state: present + +``` + ## Configuration Reference Required Parameters: @@ -451,4 +469,4 @@ Example playbook: - name: install Apache yum: name: httpd -``` \ No newline at end of file +```