This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2016-12-07 14:43:11 +01:00
|
|
|
---
|
2016-12-11 22:06:30 +01:00
|
|
|
- name: Archlinux
|
|
|
|
include: archlinux.yml
|
|
|
|
when: (ansible_distribution == "Antergos") or (ansible_os_family == "Archlinux")
|
2016-12-07 20:30:26 +01:00
|
|
|
|
2016-12-11 22:06:30 +01:00
|
|
|
- name: Ubuntu
|
|
|
|
include: ubuntu.yml
|
|
|
|
when: (ansible_distribution == "Debian") or (ansible_distribution == "Ubuntu")
|
2016-12-07 20:30:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
- name: Create destination directory
|
|
|
|
file: path=/srv/http/domain/{{warehost_webclient_domain}} state=directory mode=0755 owner={{http_usr}} group={{http_grp}}
|
|
|
|
|
|
|
|
# does not work (https://github.com/ansible/ansible/issues/11873)
|
|
|
|
#- name: Copy generated files
|
|
|
|
# delegate_to: "{{ inventory_hostname }}"
|
|
|
|
# synchronize:
|
|
|
|
# src: /usr/src/warehost-client-web/build/
|
|
|
|
# dest: /srv/http/domain/{{warehost_webclient_domain}}/
|
|
|
|
# delete: True
|
|
|
|
|
|
|
|
- name: Copy files
|
|
|
|
command: >
|
|
|
|
rsync -a --delete
|
|
|
|
/usr/src/warehost-client-web/build/
|
|
|
|
/srv/http/domain/{{warehost_webclient_domain}}/
|
|
|
|
|
2016-12-07 14:43:11 +01:00
|
|
|
- name: Configurate caddy for warehost client web
|
|
|
|
template: src=caddy.conf dest=/etc/caddy/hosts/79-warehost_client_web.act owner={{http_usr}} mode=0644
|
|
|
|
notify: reload caddy
|