DevOpsGOServer
/
playbook_prod.yaml
16 строк · 358.0 Байт
1- name: Run test_server2hosts: prod3remote_user: ansible-user4
5tasks:6- name: copy binary file7copy:8src: test_server9dest: /home/ansible-user/test_server10
11- name: run test_server12shell: |13chmod +x test_server
14nohup ./test_server > /dev/null 2>&1 &
15args:16chdir: /home/ansible-user