File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ The following variables are available to configure the role:
23
23
- ** nginx_drupal_git**
24
24
- ** repo** : The URL of the Git repository to checkout the base
25
25
configuration from, defaults to https://github.com/perusio/drupal-with-nginx.git
26
- - ** version** The version of the version of the repository to
26
+ - ** version** : The version of the version of the repository to
27
27
check out. This can be the full 40-character SHA-1 hash, the literal string
28
28
HEAD, a branch name, or a tag name. Defaults to 'D7'.
29
+ - ** force_checkout** : True to always do a git checkout. Defaults to False.
29
30
- ** nginx_drupal_config_path** : The path to Nginx configuration folder,
30
31
defaults to "/etc/nginx".
31
32
- ** nginx_drupal_log_path** : The path to Nginx log files, defaults to
Original file line number Diff line number Diff line change 4
4
register : nginx_drupal_config_path_dot_git
5
5
- name : " Remove existing configurarion directory"
6
6
file : path={{nginx_drupal_config_path}} state=absent
7
- when : nginx_drupal_config_path_dot_git.stat.exists == false
7
+ when : not nginx_drupal_config_path_dot_git.stat.exists
8
8
- name : " Checkout configuration directory"
9
- git : dest={{nginx_drupal_config_path}} repo={{nginx_drupal_git.repo}} version={{nginx_drupal_git.version}} force=no
9
+ git : dest={{nginx_drupal_config_path}} repo={{nginx_drupal_git.repo}} version={{nginx_drupal_git.version}} force=yes
10
+ when : (not nginx_drupal_config_path_dot_git.stat.exists) or (nginx_drupal_git.force_checkout|default(False))
10
11
notify :
11
12
- reload nginx
12
13
- name : " Remove example.com configuration file"
You can’t perform that action at this time.
0 commit comments