Fixing relative path issue with ansible
This commit is contained in:
parent
bb79bccc9d
commit
77f348dcc0
@ -72,7 +72,6 @@ deploy-shockrah.xyz:
|
|||||||
- ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts
|
- ssh-keyscan shockrah.xyz 2>&1 >> ~/.ssh/known_hosts
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- pwd && ls -Ra
|
|
||||||
- ansible-playbook -i $INVENTORY scripts/deploy-blog.yml
|
- ansible-playbook -i $INVENTORY scripts/deploy-blog.yml
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
remote_user: ubuntu
|
remote_user: ubuntu
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
|
# Note that the path for src is relative to this playbook
|
||||||
|
# not from the calling site
|
||||||
- name: Copy Blog Content
|
- name: Copy Blog Content
|
||||||
copy:
|
copy:
|
||||||
src: "public/"
|
src: "../public/"
|
||||||
dest: /var/www/shockrah.xyz
|
dest: /var/www/shockrah.xyz
|
||||||
|
Loading…
Reference in New Issue
Block a user