Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
drupal
Commits
2c2a8a0f
Commit
2c2a8a0f
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug so that first installation always executes
parent
fa6d8d04
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/deploy/gitscript.yml
+2
-2
2 additions, 2 deletions
tasks/deploy/gitscript.yml
tasks/install.yml
+6
-2
6 additions, 2 deletions
tasks/install.yml
with
8 additions
and
4 deletions
tasks/deploy/gitscript.yml
+
2
−
2
View file @
2c2a8a0f
...
...
@@ -18,7 +18,7 @@
force
:
yes
version
:
'
{{
drupal.src.git.branch|default(omit)
}}'
become
:
false
when
:
not drupal.src.git.bare|default(false)
when
:
drupal_first_installation or
not drupal.src.git.bare|default(false)
-
name
:
"
Second
Clone
Git
Repository"
git
:
...
...
@@ -26,7 +26,7 @@
dest
:
'
{{
webRoot
}}{{
drupal.src.git.target2
}}'
force
:
yes
version
:
'
{{
drupal.src.git.branch|default(omit)
}}'
when
:
drupal.src.git.target2 is defined and not drupal.src.git.bare|default(false)
when
:
drupal.src.git.target2 is defined and
(drupal_first_installation or
not drupal.src.git.bare|default(false)
)
-
name
:
"
Run
Script"
shell
:
'
{{
webRoot
}}{{
drupal.src.git.target
}}{{
drupal.src.script
}}'
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
6
−
2
View file @
2c2a8a0f
...
...
@@ -48,11 +48,15 @@
register
:
drupal_available
failed_when
:
false
-
include
:
install/{{ installSource.mode|default("none") }}.yml
-
set_fact
:
drupal_first_installation=false
-
set_fact
:
drupal_first_installation=true
when
:
drupal_install_drupal and drupal_available is defined and drupal_available.stdout != '{{ drupalRoot }}/index.php'
-
include
:
install/{{ installSource.mode|default("none") }}.yml
when
:
drupal_first_installation
-
include
:
install/{{ drupal.version|default("d7") }}.yml
when
:
drupal_
install_drupal and drupal_available is defined and drupal_available.stdout != '{{ drupalRoot }}/index.php'
when
:
drupal_
first_installation
-
include
:
deploy/{{ installSource.mode|default("none") }}.yml
when
:
drupal_install_drupal
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment