[ansible] added deploy role
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
- name: install tankz systemd unit file
|
||||
template: src=template/tankz.j2 dest=/etc/systemd/system/tankz.service
|
||||
|
||||
- name: start tankz
|
||||
systemd: state=started name=tankz daemon_reload=yes
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=Tank'z game server
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
PIDFile=/var/run/tankz.pid
|
||||
WorkingDirectory=/home/holop/repo/tankz/current/target
|
||||
User=www-data
|
||||
Group=www-data
|
||||
ExecStart=/usr/bin/neko /home/holop/repo/tankz/current/target/tankz.n
|
||||
TimeoutSec=300
|
||||
Restart=always
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,3 +0,0 @@
|
||||
ansible_become: yes
|
||||
ansible_user: barin
|
||||
ansible_become_pass: 1234!QAZ
|
||||
Reference in New Issue
Block a user