Fixing relative path issue with ansible

This commit is contained in:
shockrah 2023-01-16 16:54:22 -08:00
parent bb79bccc9d
commit 77f348dcc0
2 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,6 @@ deploy-shockrah.xyz:
- ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- pwd && ls -Ra
- ansible-playbook -i $INVENTORY scripts/deploy-blog.yml

View File

@ -3,7 +3,9 @@
remote_user: ubuntu
become: yes
tasks:
# Note that the path for src is relative to this playbook
# not from the calling site
- name: Copy Blog Content
copy:
src: "public/"
src: "../public/"
dest: /var/www/shockrah.xyz