Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ Defaults:
sources_git_pem: files/git.pem
sources_target_dir: ~/web-app
sources_force: no
sources_register: ""
sources_create_deploy_user: true

sources_version - git branch/tag/commit
sources_git_pem - path to private key to get access to your git repo through ssh. By default it fill search file "git.pem"
sources_register - variable name for the repo update result. You can check if the repo was updated

Example Playbook
----------------
Expand Down
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ sources_repo: ssh://[email protected]:22/projects/web-app.git
sources_git_pem: files/git.pem
sources_target_dir: ~/web-app
sources_force: no
sources_register: ""
sources_create_deploy_user: true
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
become: yes
become_user: '{{sources_target_user}}'
git: 'repo={{sources_repo}} dest={{sources_target_dir}} version={{sources_version}} accept_hostkey=true force={{sources_force}}'
register: '{{sources_register}}'
register: 'sources_register'