DevOpsGOServer
/
playbook_dev.yaml
16 строк · 357.0 Байт
1- name: Run test_server
2hosts: dev
3remote_user: ansible-user
4
5tasks:
6- name: copy binary file
7copy:
8src: test_server
9dest: /home/ansible-user/test_server
10
11- name: run test_server
12shell: |
13chmod +x test_server
14nohup ./test_server > /dev/null 2>&1 &
15args:
16chdir: /home/ansible-user