Skip to content

Instantly share code, notes, and snippets.

@roelofjan-elsinga
Created June 10, 2020 14:09
Show Gist options
  • Save roelofjan-elsinga/6f2f6d872dd079719dd187e85b89a350 to your computer and use it in GitHub Desktop.
Save roelofjan-elsinga/6f2f6d872dd079719dd187e85b89a350 to your computer and use it in GitHub Desktop.
An ansible role to pull changes from a repository
- name: "Pull changes from GitHub"
git:
repo: "{{github_repo_url}}", # This is how we can make this step reusable across projects
dest: "{{working_directory}}"
version: master # Branch to pull
accept_hostkey: yes
notify:
- install_composer_deps
- cache_laravel_config
- clear_laravel_views
- run_laravel_migrations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment