Do configuration as tes3mp user
This commit is contained in:
parent
43e089dd90
commit
5c32a14c19
@ -45,13 +45,15 @@
|
|||||||
remote_src: yes
|
remote_src: yes
|
||||||
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}"
|
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}"
|
||||||
when: get_archive is changed
|
when: get_archive is changed
|
||||||
- name: Configure server
|
- name: Configure server
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}/{{ item.dest }}"
|
dest: "{{ tes3mp.dest }}/{{ tes3mp.name }}/{{ item.dest }}"
|
||||||
loop:
|
loop:
|
||||||
- { src: "tes3mp-server-default.cfg", dest: "tes3mp-server-default.cfg" }
|
- { src: "tes3mp-server-default.cfg", dest: "tes3mp-server-default.cfg" }
|
||||||
notify: "restart tes3mp {{ tes3mp.name }}"
|
notify: "restart tes3mp {{ tes3mp.name }}"
|
||||||
|
become: yes
|
||||||
|
become_user: tes3mp
|
||||||
- name: Set up system
|
- name: Set up system
|
||||||
block:
|
block:
|
||||||
- name: Start and enable service
|
- name: Start and enable service
|
||||||
|
Loading…
Reference in New Issue
Block a user