Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (32 sloc) 683 Bytes
---
- name: provision base image
hosts: all
gather_facts: no
tasks:
- name: bootstrap python
raw: apk add python2 rsync sudo --no-cache
- name: configure nginx
hosts: all
tasks:
- name: transfer nginx site config
copy:
src: ./files/default.conf
dest: /etc/nginx/conf.d/
owner: root
group: root
- name: make webroot
file:
path: /var/www
state: directory
owner: root
group: root
- name: transfer site files
synchronize:
src: site/public/
dest: /var/www/
- name: cleanup
hosts: all
gather_facts: no
tasks:
- name: purge packages
shell: apk del python2 rsync sudo --no-cache
You can’t perform that action at this time.