diff options
author | Sacha Chua <sacha@sachachua.com> | 2023-10-17 11:58:58 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2023-10-17 11:58:58 -0400 |
commit | d51d86133dbd93bbf6203fdb1683a23aa40beae6 (patch) | |
tree | d07b456596efa0ce35f078f76e339229ccc9706f /roles/pad/tasks | |
parent | ebba562c95e2f50c5cbac1706fd62457cf9d5eaa (diff) | |
download | emacsconf-ansible-d51d86133dbd93bbf6203fdb1683a23aa40beae6.tar.xz emacsconf-ansible-d51d86133dbd93bbf6203fdb1683a23aa40beae6.zip |
update pad
Diffstat (limited to 'roles/pad/tasks')
-rw-r--r-- | roles/pad/tasks/main.yml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/roles/pad/tasks/main.yml b/roles/pad/tasks/main.yml index 7d71f59..9851d66 100644 --- a/roles/pad/tasks/main.yml +++ b/roles/pad/tasks/main.yml @@ -10,11 +10,12 @@ - sudo - name: Add nodesource key apt_key: - url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key + id: 2F59B5F99B1BE0B4 + keyserver: keyserver.ubuntu.com state: present - name: Add nodesource repository ansible.builtin.apt_repository: - repo: deb https://deb.nodesource.com/node_13.x buster main + repo: deb https://deb.nodesource.com/node_20.x nodistro main update_cache: yes - name: Install packages apt: @@ -38,6 +39,7 @@ - name: Set up etherpad as the etherpad user tags: etherpad-src become: true + become_user: "{{ etherpad_user }}" block: - name: Install etherpad git: @@ -102,7 +104,7 @@ - name: Wait for OK tags: create-pads uri: - url: "http://localhost:9001/api/1/createPad?apikey={{ etherpad_api_key }}&padID={{etherpad_year}}" + url: "https://{{ etherpad_server_name }}/api/1/createPad?apikey={{ etherpad_api_key }}&padID={{etherpad_year}}" register: _result until: _result.status == 200 retries: 720 @@ -113,5 +115,5 @@ - name: Create pads tags: create-pads uri: - url: "http://localhost:9001/api/1/createPad?apikey={{ etherpad_api_key }}&padID={{etherpad_year}}-{{ item.slug }}" + url: "https://{{ etherpad_server_name }}/api/1/createPad?apikey={{ etherpad_api_key }}&padID={{etherpad_year}}-{{ item.slug }}" loop: "{{ talks | json_query('talks[*]') }}" |