diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-13 16:35:47 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-13 16:35:47 +0100 |
| commit | 9f2ebc2cce3af0e685677c23f2098c115e034adf (patch) | |
| tree | bc6609cf851ee3f0a4f572d762b4ea35a34610f6 /ansible/roles/etherpad/tasks | |
| parent | f31e65c51681823ade14abad87c742101a1b823d (diff) | |
move ansible/ dir to root
Diffstat (limited to 'ansible/roles/etherpad/tasks')
| -rw-r--r-- | ansible/roles/etherpad/tasks/main.yml | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/ansible/roles/etherpad/tasks/main.yml b/ansible/roles/etherpad/tasks/main.yml deleted file mode 100644 index 185fe51..0000000 --- a/ansible/roles/etherpad/tasks/main.yml +++ /dev/null @@ -1,65 +0,0 @@ -- name: Install PNPM and Git - community.general.apk: - name: - - pnpm - - git - -- name: Install tsx globally - ansible.builtin.shell: pnpm install --global tsx - register: pnpm_install_tsx - changed_when: "'Already up to date' not in pnpm_install_tsx.stdout" - environment: - PNPM_HOME: "{{ ansible_facts.env.HOME }}/.local/share/pnpm" - PATH: "{{ ansible_facts.env.PATH }}:{{ ansible_facts.env.HOME }}/.local/share/pnpm" - -- name: Checkout source code for latest etherpad release - register: etherpad_src - ansible.builtin.git: - repo: https://github.com/ether/etherpad.git - dest: "{{ src_dir }}/etherpad" - depth: 1 - version: master - -- name: Install etherpad settings - register: etherpad_settings - ansible.builtin.template: - src: settings.json - dest: "{{ src_dir }}/etherpad/settings.json" - mode: "640" - -- name: Install etherpad dependencies - register: etherpad_dependencies - changed_when: "'Already up to date' not in etherpad_dependencies.stdout" - ansible.builtin.command: - chdir: "{{ src_dir }}/etherpad" - cmd: pnpm install - -- name: Install etherpad service - register: etherpad_service - ansible.builtin.template: - src: openrc/etherpad - dest: /etc/init.d/etherpad - mode: "755" - -- name: Restart etherpad service and configure to start on boot - when: - etherpad_src is changed - or etherpad_service is changed - or etherpad_settings is changed - or etherpad_dependencies is changed - ansible.builtin.service: - name: etherpad - enabled: true - state: restarted - -- name: Start etherpad service and configure to start on boot - when: - not ( - etherpad_src is changed - or etherpad_settings is changed - or etherpad_service is changed - or etherpad_dependencies is changed ) - ansible.builtin.service: - name: etherpad - enabled: true - state: started |
