Skip to content

Instantly share code, notes, and snippets.

@dictvm
Last active September 24, 2018 20:08
Show Gist options
  • Save dictvm/a5e08bf1ce10f3897ad4 to your computer and use it in GitHub Desktop.
Save dictvm/a5e08bf1ce10f3897ad4 to your computer and use it in GitHub Desktop.
- name: copy updated files to ghost directory
synchronize: src={{ item.src }} dest={{ item.dest }} checksum=yes times=no
with_fileglob:
- { src: '{{ ghost_dir_new }}/*.js', dest: '{{ ghost_dir_current }}' }
- { src: '{{ ghost_dir_new }}/*.json', dest: '{{ ghost_dir_current }}' }
- { src: '{{ ghost_dir_new }}/*.md', dest: '{{ ghost_dir_current }}' }
- { src: '{{ ghost_dir_new }}/core', dest: '{{ ghost_dir_current }}' }
- { src: '"{{ ghost_dir_new }}/{{ theme_dir }}"', dest: '"{{ ghost_dir_current }}/{{ theme_dir }}"' }
delegate_to: "{{ inventory_hostname }}"
TASK: [copy updated files to ghost directory] *********************************
fatal: [schedar.uberspace.de] => Unexpected error while executing task: 'dict' object has no attribute 'startswith'
FATAL: all hosts have already failed -- aborting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment