File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2626 ansible_host: staging.pycon.tw
2727 ansible_user: changchaishi
2828 ansible_ssh_private_key_file: private.pem
29- ansible_python_interpreter: /usr/bin/python3
29+ ansible_python_interpreter: /home/dev/.pyenv/shims/python
Original file line number Diff line number Diff line change 2020 state : directory
2121
2222 - name : Copy entire project files to remote server
23- ansible.builtin.copy :
24- src : .
23+ ansible.posix.synchronize :
24+ src : ./
2525 dest : " {{ project_dir }}"
26+ delete : true
2627
2728 - name : Ensure docker network network-2023 exists
2829 community.docker.docker_network :
2930 name : network-2023
3031
3132 - name : Build and start service
3233 community.docker.docker_compose :
33- project_src : web-projects/pycontw-2023-ansible
34+ project_src : " {{ project_dir }} "
3435 build : true
3536 # try to build first, without up the service
3637 state : present
37-
You can’t perform that action at this time.
0 commit comments