summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2021-08-18 09:25:25 +0200
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2021-08-18 09:25:25 +0200
commit30f0a026ec4e33665c9b0ea421feb5f1e8c50a95 (patch)
tree39c498b45f64cd2af65f14c80d6b143fbdd76e9e
parent5ba460e97136de3750998477931611c5c226470e (diff)
downloadinfrastructure-30f0a026ec4e33665c9b0ea421feb5f1e8c50a95.tar.gz
baserock_webserver/instance-hastebin-config.yml: Update for ubuntu
-rw-r--r--baserock_webserver/instance-hastebin-config.yml18
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