--- - name: install notify_push block: - name: install app ansible.builtin.command: chdir: ~/html cmd: php occ app:install notify_push - name: set permissions ansible.builtin.file: path: ~/html/apps/notify_push/x86_64/notify_push mode: 0744 - name: create symlink ansible.builtin.file: path: ~/bin/notify_push src: ~/html/apps/notify_push/x86_64/notify_push state: link - name: create service ansible.builtin.template: src: notify_push_service.j2 dest: ~/etc/services.d/notify_push.ini mode: 0644 notify: - reload supervisorctl - update supervisorctl - name: get backend list ansible.builtin.command: uberspace web backend list register: backends - name: add backend when: backend.stdout.find('http:7867') == -1 ansible.builtin.command: uberspace web backend set /push --http --port 7867 - name: get ip route ansible.builtin.command: ip route register: ip - name: set trusted proxies ansible.builtin.command: chdir: ~/html cmd: php occ config:system:set trusted_proxies 0 --value="{{ ip.stdout.split().8 }}" - name: configure notify_push app with backend ansible.builtin.command: chdir: ~/html cmd: php occ notify_push:setup https://{{ domain }}/push