Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
owncloud
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
owncloud
Commits
fac5abe7
Commit
fac5abe7
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting
parent
db2067be
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+5
-5
5 additions, 5 deletions
defaults/main.yml
handlers/main.yml
+1
-1
1 addition, 1 deletion
handlers/main.yml
tasks/main.yml
+15
-12
15 additions, 12 deletions
tasks/main.yml
with
21 additions
and
18 deletions
defaults/main.yml
+
5
−
5
View file @
fac5abe7
...
...
@@ -3,8 +3,8 @@ owncloud_ssl: false
owncloud_cron_core
:
active
:
true
month
:
'
*'
day
:
'
*'
weekday
:
'
*'
hour
:
'
*'
minute
:
'
0,15,30,45
'
month
:
*
day
:
*
weekday
:
*
hour
:
*
minute
:
0,15,30,45
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
1
−
1
View file @
fac5abe7
---
# file: roles/owncloud/handlers/main.yml
-
name
:
'
ownCloud
|
Restart
Apache
'
-
name
:
ownCloud | Restart Apache
service
:
name=apache2 state=restarted
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
15
−
12
View file @
fac5abe7
---
# file: roles/owncloud/tasks/main.yml
-
name
:
"
ownCloud
Role"
set_fact
:
role_owncloud_started=true
tags
:
'
always'
-
name
:
ownCloud Role
set_fact
:
role_owncloud_started
:
yes
tags
:
-
always
-
block
:
-
name
:
'
ownCloud
|
Install
Public
Repo
Key
'
-
name
:
ownCloud | Install Public Repo Key
apt_key
:
url='http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key'
state=present
-
name
:
'
ownCloud
|
Add
ownCloud
Repository
To
Apt
'
-
name
:
ownCloud | Add ownCloud Repository To Apt
copy
:
content='deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/ /'
dest='/etc/apt/sources.list.d/owncloud.list'
mode='644'
-
name
:
'
ownCloud
|
Install
the
package
'
-
name
:
ownCloud | Install the package
apt
:
pkg=owncloud
state=present
update_cache=yes
-
name
:
'
ownCloud
|
Configuration
file
for
apache
'
-
name
:
ownCloud | Configuration file for apache
template
:
src=etc-apache2-sites-available-owncloud
dest=/etc/apache2/sites-available/owncloud
-
name
:
'
ownCloud
|
Enable
the
ownCloud
site
for
Apache
'
-
name
:
ownCloud | Enable the ownCloud site for Apache
command
:
a2ensite owncloud creates=/etc/apache2/sites-enabled/owncloud
notify
:
-
'
ownCloud
|
Restart
Apache
'
-
ownCloud | Restart Apache
-
name
:
'
ownCloud
|
Install
cron
job
'
-
name
:
ownCloud | Install cron job
cron
:
name='ownCloud cron'
month='{{ owncloud_cron_core.month|default(omit) }}'
...
...
@@ -45,6 +47,7 @@
user='www-data'
disabled='{{ crons_disabled|default(false) }}'
when
:
owncloud_cron_core.active
tags
:
'
cron'
tags
:
-
cron
when
:
'
"owncloud"
not
in
excluded_roles
'
when
:
not excluded_roles or
"owncloud" not in excluded_roles
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