diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-13 16:29:05 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-13 16:29:05 +0100 |
| commit | 954ab1887b20e9e0d5885c1cec8d71641cb3dcd4 (patch) | |
| tree | 45cb7191fe51f3fa099e8a01e5cd0a0c37e034ec /ansible/roles/etherpad/tasks | |
| parent | f9272fdf3ea23070583c944b110a7b8f16c5a4ff (diff) | |
remove homelab config
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 |
