Do configuration as tes3mp user

This commit is contained in:
Salt 2020-08-23 23:36:20 -05:00
parent 43e089dd90
commit 5c32a14c19

View File

@ -45,13 +45,15 @@
remote_src: yes
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}"
when: get_archive is changed
- name: Configure server
template:
src: "{{ item.src }}"
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}/{{ item.dest }}"
loop:
- { src: "tes3mp-server-default.cfg", dest: "tes3mp-server-default.cfg" }
notify: "restart tes3mp {{ tes3mp.name }}"
- name: Configure server
template:
src: "{{ item.src }}"
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}/{{ item.dest }}"
loop:
- { src: "tes3mp-server-default.cfg", dest: "tes3mp-server-default.cfg" }
notify: "restart tes3mp {{ tes3mp.name }}"
become: yes
become_user: tes3mp
- name: Set up system
block:
- name: Start and enable service