ansible-role-default-webpage/tasks/main.yml

16 lines
550 B
YAML

---
- block:
- name: Create the web document root if it does not exists
file: dest={{ web_document_root }} state=directory
- name: Copy the CSS and images under the http server document web root in smartgears nodes
copy: src={{ item }} dest={{ web_document_root }}/ force=yes owner=root group=root
with_items:
- images
- css
- name: Install the index.html file
template: src=index.html.j2 dest={{ web_document_root }}/index.html owner=root group=root mode=0644
tags: [ 'nginx', 'apache', 'web_document_index' ]