Verified Commit c893867e authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

matrix: Use npm instead of yarn

The service ships package-lock.json and not yarn.lock, and we should
honor that. Also, ansible's integration with npm seems to be better.
parent 051555c1
......@@ -5,7 +5,7 @@
when: 'matrix_domain is defined'
- name: install packages
pacman: name=python,git,yarn,jemalloc,gcc,pkg-config,python2
pacman: name=python,git,npm,make,jemalloc,gcc,pkg-config,python2
- name: add synapse group
group: name=synapse system=yes gid=198
......@@ -53,27 +53,16 @@
notify:
- restart matrix-appservice-irc
- name: install matrix-appservice-irc
command: yarn install
args:
chdir: /var/lib/synapse/matrix-appservice-irc
creates: /var/lib/synapse/matrix-appservice-irc/node_modules
npm:
path: /var/lib/synapse/matrix-appservice-irc
production: yes
become: yes
become_user: synapse
become_method: sudo
notify:
- restart matrix-appservice-irc
- name: upgrade matrix-appservice-irc
command: yarn upgrade
args:
chdir: /var/lib/synapse/matrix-appservice-irc
become: yes
become_user: synapse
become_method: sudo
# FIXME: Find out how to notify only when upgrade did something
- name: add synapse postgres db
postgresql_db: db=synapse
become: yes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment