Fix Adam deployment

This commit is contained in:
Salt 2020-06-09 01:29:20 -05:00
parent 7a1a4dfaf9
commit c3fd867197

View File

@ -2,7 +2,7 @@
# vim:ft=ansible:
- name: Set up Adam
block:
- name: Install Node
- name: Install required packages
apt:
name:
- libopus0
@ -15,18 +15,17 @@
file:
path: "/var/adam"
state: directory
mode: 0755
# Sticky, SetGID
mode: 3775
owner: root
group: root
- name: Create specific data directory
file:
path: "/var/adam/{{ adam_name }}"
state: directory
mode: 0755
owner: discord-adam
group: discord-adam
- name: Set up bot root
block:
- name: Create specific data directory
file:
path: "/var/adam/{{ adam_name }}"
state: directory
mode: 0755
- name: Clone bot repo
git:
repo: "{{ adam_repo }}"
@ -39,8 +38,10 @@
src: "auth.json"
dest: "/var/adam/{{ adam_name }}/auth.json"
mode: "0700"
owner: discord-adam
group: discord-adam
become: yes
become_user: discord-adam
- name: Set up system configuration
block:
- name: Template out service
template:
src: "adam@.service"