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

38 lines
673 B
YAML
Raw Permalink Normal View History

2022-12-23 00:08:11 -05:00
---
- 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