diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2021-08-18 08:18:47 +0200 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2021-09-09 16:49:25 +0100 |
commit | f72496241cd197cf06a25ed203b0cc76aee682da (patch) | |
tree | d7abf240f07d71f88ff6277b4d5e375786f138bf /baserock_webserver/instance-hastebin-config.yml | |
parent | 6cbf77d26ad36c915877b568aa5921538e67b87e (diff) | |
download | infrastructure-f72496241cd197cf06a25ed203b0cc76aee682da.tar.gz |
baserock_webserver: Move to Ubuntu and Nginx
Diffstat (limited to 'baserock_webserver/instance-hastebin-config.yml')
-rw-r--r-- | baserock_webserver/instance-hastebin-config.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/baserock_webserver/instance-hastebin-config.yml b/baserock_webserver/instance-hastebin-config.yml index aacffe0a..2adc8ca6 100644 --- a/baserock_webserver/instance-hastebin-config.yml +++ b/baserock_webserver/instance-hastebin-config.yml @@ -8,11 +8,15 @@ - haste_server_service_name: haste-server tasks: - name: Install Git - dnf: name=git state=latest + apt: + name: git + state: latest become: yes - name: Install Redis - dnf: name=redis state=latest + apt: + name: redis + state: latest become: yes - name: Start Redis service @@ -23,7 +27,11 @@ become: yes - name: Install Node.js - dnf: name=nodejs state=latest + apt: + pkg: + - nodejs + - npm + state: latest become: yes - name: hastebin user @@ -47,7 +55,9 @@ become_user: hastebin - name: Install service for the haste server - template: src=hastebin/haste-server.service.in dest=/etc/systemd/system/{{ haste_server_service_name }}.service + template: + src: hastebin/haste-server.service.in + dest: /etc/systemd/system/{{ haste_server_service_name }}.service become: yes - name: Restart haste service |