You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB
YAML

---
- name: Install required dependencies
apt:
state: present
name:
- git-core
- g++
- python-dev
- python-virtualenv
- name: Clone git repository
become_user: "{{ system_user }}"
git:
clone: yes
dest: "{{ installation_directory }}"
force: no
repo: "{{ remote_repository_url }}"
update: yes
version: "{{ remote_repository_version }}"
- name: Build project
become_user: "{{ system_user }}"
make:
chdir: "{{ installation_directory }}"
target: build
notify: restart firefox-sync
- name: Configure firefox sync server
template:
src: syncserver.ini
dest: "{{ configuration_file_path }}"
owner: "root"
group: "{{ system_user }}"
mode: "u=rw,g=r,o="
notify: restart firefox-sync
- name: Configure socket directory
file:
state: directory
path: "{{ socket_directory }}"
owner: "{{ system_user }}"
group: "{{ nginx_system_user }}"
mode: "u=rwx,g=rx,o="
- name: Register socket for firefox sync server
template:
src: "firefox.socket"
dest: "{{ global_systemd_configuration_directory }}/{{ socket_name }}"
owner: root
group: root
mode: "u=rw,g=r,o="
notify:
- reload systemd
- restart firefox-sync
- name: Register service for firefox sync server
template:
src: "firefox.service"
dest: "{{ global_systemd_configuration_directory }}/{{ service_name }}"
owner: root
group: root
mode: "u=rw,g=r,o="
notify:
- reload systemd
- restart firefox-sync