deploy/test_playbook.yml
author ymh <ymh.work@gmail.com>
Fri, 14 Sep 2018 22:07:56 +0200
changeset 1 66f388fa2130
parent 0 5f4fcbc80b37
child 2 f72ffe8b30b1
permissions -rw-r--r--
correct deploy scripts

---
#
# all actions
#
- hosts: all
  become: true
  tasks:
    - name: install deps
      apk:
        name: python-dev,python3-dev,py-virtualenv,nginx,supervisor,shadow,build-base,musl-dev,gcc,linux-headers
        update_cache: yes
    - name: create etc supervisor.d folder
      file:
        path: /etc/supervisor.d
        state: directory
    - name: starts supervisord
      service:
        name: supervisord
        state: started