--- - name: install etherpad deps apt: pkg: git - name: ensure etherpad user is present user: name: "etherpad" home: "/srv/etherpad" shell: "/bin/bash" state: present - name: ensure etherpad is latest git: repo: "https://github.com/ether/etherpad-lite" dest: "/srv/etherpad/etherpad" version: "master" become: true become_user: "etherpad" register: repository - name: ensure etherpad systemd unit is latest template: src: etherpad.service.j2 dest: /etc/systemd/system/etherpad.service owner: root group: root mode: 0644 - name: copy etherpad settings.json template: src: settings.json.j2 dest: /srv/etherpad/etherpad/settings.json owner: etherpad group: etherpad mode: 0644 - name: ensure etherpad will start after system is booted service: name: etherpad enabled: yes - name: install etherpad deps become: true become_user: etherpad shell: /srv/etherpad/etherpad/bin/installDeps.sh args: chdir: /srv/etherpad/etherpad/ - name: install etherpad plugins npm: name: "{{ item }}" path: "/srv/etherpad/etherpad" become: true become_user: etherpad with_items: "{{ plugins|d() }}" notify: restart etherpad - include: abiword.yml