Skip to content

Instantly share code, notes, and snippets.

@mtpereira
Created January 30, 2014 17:55
Show Gist options
  • Save mtpereira/8714618 to your computer and use it in GitHub Desktop.
Save mtpereira/8714618 to your computer and use it in GitHub Desktop.
ansible synchronize error playbook
prm.yml:
---
- hosts: all
sudo: yes
vars_files:
- defaults/main.yml
tasks:
- include: tasks/main.yml
######
tasks/main.yml:
---
- include: pkg.yml tags=pkg
- include: gem.yml tags=gem
- include: repo.yml tags=repo
####
tasks/repo.yml:
---
- name: repo - sync local files with repo
synchronize: src=files/repo/ dest={{ prm_repo_directory }} archive=no
####
prm_repo_directory: /srv/repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment