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
45f16f82
Commit
45f16f82
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Improve roles drupal and drush
parent
aff5f99c
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/drupal.yml
+1
-1
1 addition, 1 deletion
tasks/drupal.yml
tasks/install.yml
+19
-3
19 additions, 3 deletions
tasks/install.yml
tasks/main.yml
+2
-2
2 additions, 2 deletions
tasks/main.yml
templates/sites.php
+9
-0
9 additions, 0 deletions
templates/sites.php
with
33 additions
and
6 deletions
defaults/main.yml
+
2
−
0
View file @
45f16f82
drupal_default_settings
:
[]
drupal_install_drupal
:
true
drupal_configure_drupal
:
true
drupal_update_drupal
:
true
drupal_contrib_subdir
:
'
'
drupal_settings
:
-
root
:
'
{{
apache_server_default_root
}}'
...
...
This diff is collapsed.
Click to expand it.
tasks/drupal.yml
+
1
−
1
View file @
45f16f82
...
...
@@ -68,7 +68,7 @@
-
name
:
"
Drupal
|
Create
the
settings.php
files"
template
:
src={{ item.0.version }}_settings.php
src={{
item.0.template_dir|default('') }}{{
item.0.version }}_settings.php
dest=/var/www/{{ item.0.root }}/sites/{{ item.1.shortname }}/settings.php
owner=www-data
group=www-data
...
...
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
19
−
3
View file @
45f16f82
...
...
@@ -27,7 +27,7 @@
with_items
:
drupal_settings
when
:
item.root in drupal_missing_repos.stdout_lines
-
name
:
"
Drupal
|
Install
and
update
Drupal
trees
from
SVN"
-
name
:
"
Drupal
|
SVN
|
Install
and
update
Drupal
trees
from
SVN"
subversion
:
repo={{ item.src.url }}
dest=/var/www/{{ item.src.target }}
...
...
@@ -39,7 +39,7 @@
-
"
Apache
|
Change
ownership
for
web
server
files"
-
"
Apache
|
Change
mode
for
web
server
files"
-
name
:
"
Drupal
|
Copy
Drush
Make
files
to
the
server"
-
name
:
"
Drupal
|
Drush
|
Copy
Drush
Make
files
to
the
server"
copy
:
src={{ inventory_dir }}/files/drush/{{ item.src.makefile }}.make
dest=/var/www/drush/{{ item.src.makefile }}.make
...
...
@@ -49,7 +49,7 @@
with_items
:
drupal_settings
when
:
item.src.mode == 'drush'
-
name
:
"
Drupal
|
Install
and
update
Drupal
trees
from
Drush
Make"
-
name
:
"
Drupal
|
Drush
|
Install
and
update
Drupal
trees
from
Drush
Make"
shell
:
drush make --force-complete '/var/www/drush/{{ item.src.makefile }}.make' . chdir='/var/www/{{ item.root }}'
sudo
:
no
with_items
:
drupal_settings
...
...
@@ -58,5 +58,21 @@
-
"
Apache
|
Change
ownership
for
web
server
files"
-
"
Apache
|
Change
mode
for
web
server
files"
-
name
:
"
Drupal
|
GitScript
|
Clone
repository"
git
:
accept_hostkey
:
"
yes"
repo
:
"
{{
item.src.git.repository
}}"
dest
:
"
{{
item.src.git.target
}}"
force
:
"
yes"
version
:
"
{{
item.src.git.branch|default(omit)
}}"
sudo
:
false
with_items
:
drupal_settings
when
:
item.root in drupal_missing_repos.stdout_lines and item.src.mode == 'gitscript'
-
name
:
"
Drupal
|
GitScript
|
Run
script"
shell
:
"
{{
item.src.git.target
}}/{{
item.src.script
}}"
with_items
:
drupal_settings
when
:
item.root in drupal_missing_repos.stdout_lines and item.src.mode == 'gitscript'
-
name
:
'
Drupal
|
Change
mode
for
web
server
root
directory'
command
:
chmod 755 /var/www
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
2
View file @
45f16f82
...
...
@@ -7,8 +7,8 @@
-
name
:
"
Drupal
|
Configure
Drupal"
include
:
drupal.yml
when
:
drupal_
install
_drupal
when
:
drupal_
configure
_drupal
-
name
:
"
Drupal
|
Update
Drupal"
include
:
update.yml
when
:
drupal_
install
_drupal
when
:
drupal_
update
_drupal
This diff is collapsed.
Click to expand it.
templates/sites.php
+
9
−
0
View file @
45f16f82
...
...
@@ -7,4 +7,13 @@ $sites = array(
'{{ alias }}'
=>
'{{ drupaldomain.shortname }}'
,
{
%
endfor
%
}
{
%
endfor
%
}
{
%
if
item
.0.
sites_extra_domain
is
defined
%
}
{
%
for
drupaldomain
in
item
.0.
sites_extra_domain
%
}
'{{ drupaldomain.domain }}'
=>
'{{ drupaldomain.shortname }}'
,
{
%
for
alias
in
drupaldomain
.
aliases
%
}
'{{ alias }}'
=>
'{{ drupaldomain.shortname }}'
,
{
%
endfor
%
}
{
%
endfor
%
}
{
%
endif
%
}
//[NEXT]
);
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