Skip to content

Commit

Permalink
Revised variable naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Manuel García Muñoz committed Feb 22, 2017
1 parent 61809f4 commit 0460657
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ Role Variables

# Shared paths and basedir shared files creation.
# By default the shared paths directories and base directories for shared files are created automatically if not exists. But in some scenarios those paths could be symlinks to another directories in the filesystem, and the deployment process would fails. With these variables you can disable the involved tasks. If you have two or three shared paths, and don't need creation only for some of them, you always could disable the automatic creation and add a custom task in a hook.
ansistrano_ensure_shared_paths_exists: yes
ansistrano_ensure_basedir_shared_files_exists: yes
ansistrano_ensure_shared_paths_exist: yes
ansistrano_ensure_basedirs_shared_files_exist: yes

ansistrano_deploy_via: "rsync" # Method used to deliver the code to the server. Options are copy, rsync, git, svn, s3 or download. Copy, download and s3 have an optional step to unarchive the downloaded file which can be used by adding _unarchive. You can check all the options inside tasks/update-code folder!
ansistrano_allow_anonymous_stats: yes
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ ansistrano_shared_paths: []
ansistrano_shared_files: []

# Shared paths and basedir shared files creation
ansistrano_ensure_shared_paths_exists: yes
ansistrano_ensure_basedir_shared_files_exists: yes
ansistrano_ensure_shared_paths_exist: yes
ansistrano_ensure_basedirs_shared_files_exist: yes

# Number of releases to keep in your hosts, if 0, unlimited releases will be kept
ansistrano_keep_releases: 0
Expand Down
4 changes: 2 additions & 2 deletions tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
state: directory
path: "{{ ansistrano_deploy_to }}/shared/{{ item }}"
with_items: "{{ ansistrano_shared_paths }}"
when: ansistrano_ensure_shared_paths_exists
when: ansistrano_ensure_shared_paths_exist

# Ensure basedir shared files exists
- name: ANSISTRANO | Ensure basedir shared files exists
file:
state: directory
path: "{{ ansistrano_deploy_to }}/shared/{{ item | dirname }}"
with_items: "{{ ansistrano_shared_files }}"
when: ansistrano_ensure_basedir_shared_files_exists
when: ansistrano_ensure_basedirs_shared_files_exist

0 comments on commit 0460657

Please sign in to comment.