M ansible/deploy.yml => ansible/deploy.yml +4 -4
@@ 5,9 5,9 @@
- name: Ensure host connectivity
ansible.builtin.ping:
- name: Stop game server
- ansible.builtin.shell:
+ ansible.builtin.command:
cmd: sv stop starkingdoms
- sudo: yes
+ become: true
- name: Download new game server file
ansible.builtin.get_url:
url: "{{ server_binary_url }}"
@@ 23,6 23,6 @@
dest: /opt/starkingdoms/client/
remote_src: yes
- name: Start game server
- ansible.builtin.shell:
+ ansible.builtin.command:
cmd: sv start starkingdoms
- sudo: yes>
\ No newline at end of file
+ become: true<
\ No newline at end of file
M ansible/environments/unstable.yml => ansible/environments/unstable.yml +8 -0
@@ 10,5 10,13 @@ gameservers:
3961663664623962310a663265313036663835636638636561303363373962303139396235633631
32646362336332356630633138613765616563653164316134306463316466326266623863343631
3134616435636662666637623638383736343064626564616135
+ ansible_become_password: !vault |
+ $ANSIBLE_VAULT;1.1;AES256
+ 30633533383938356363613936373132616565383938343732346462633263383237356364656139
+ 6564373961356564623930363538616539326562343733390a616564636332373666386531313033
+ 65623837366639393462333830616562366136343630393833393966663062343438326333393565
+ 3961663664623962310a663265313036663835636638636561303363373962303139396235633631
+ 32646362336332356630633138613765616563653164316134306463316466326266623863343631
+ 3134616435636662666637623638383736343064626564616135
vars:
ansible_user: stk=
\ No newline at end of file