From f72496241cd197cf06a25ed203b0cc76aee682da Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 18 Aug 2021 08:18:47 +0200 Subject: baserock_webserver: Move to Ubuntu and Nginx --- baserock_webserver/instance-hastebin-config.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'baserock_webserver/instance-hastebin-config.yml') 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 -- cgit v1.2.1