1
0
Fork 0
home-ansible/roles/nginx-proxy-manager/tasks/main.yml

37 lines
673 B
YAML

---
- name: Create npm user
user:
name: npm
groups: docker
shell: /bin/bash
state: present
- name: Create npm directory
become: yes
become_user: npm
file:
path: /home/npm/npm
state: directory
- name: Put npm docker-compose in place
copy:
src: files/docker-compose.yml
dest: /home/npm/npm/docker-compose.yml
mode: 0600
owner: npm
group: npm
- name: Put default npm config in place
copy:
src: files/default.conf
dest: /home/npm/npm/default.conf
mode: 0644
owner: npm
group: npm
- name: Start npm
become: yes
become_user: npm
command:
chdir: /home/npm/npm
cmd: docker compose up -d