Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
package.lighttpd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simple Deploy- and Management
package.lighttpd
Commits
fa0c1ed1
Commit
fa0c1ed1
authored
Jul 09, 2019
by
Pietsch, Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redesign role
parent
533e7c1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
17 deletions
+28
-17
tasks/configure.yml
tasks/configure.yml
+26
-0
tasks/main.yml
tasks/main.yml
+1
-16
vars/main.yml
vars/main.yml
+1
-1
No files found.
tasks/configure.yml
View file @
fa0c1ed1
---
-
name
:
copy lighttpd configuration
template
:
src
:
"
{{
system_config_directory
}}/lighttpd/lighttpd.conf"
dest
:
"
{{
lighttpd_configfile
}}"
owner
:
root
group
:
wheel
mode
:
0644
-
name
:
start lighttpd
service
:
name
:
"
{{
_service
}}"
state
:
started
loop
:
"
{{
package_services[os.distribution
|
lower()]
}}"
loop_control
:
loop_var
:
_service
register
:
_lighttpd_started
-
name
:
reload lighttpd
service
:
name
:
"
{{
_service
}}"
state
:
started
loop
:
"
{{
package_services[os.distribution
|
lower()]
}}"
loop_control
:
loop_var
:
_service
when
:
_lighttpd_started.changed == False
tasks/main.yml
View file @
fa0c1ed1
...
...
@@ -4,26 +4,11 @@
import_role
:
name
:
package
-
name
:
copy lighttpd configuration
template
:
src
:
lighttpd.conf.j2
dest
:
"
{{
lighttpd_configfile
}}"
owner
:
root
group
:
wheel
mode
:
0644
-
name
:
create lighttpd data directory
file
:
path
:
"
{{
lighttpd_datadirectory
}}"
state
:
directory
mode
:
0755
-
name
:
start lighttpd
service
:
name
:
"
{{
_service
}}"
state
:
started
loop
:
"
{{
package_services[os.distribution
|
lower()]
}}"
loop_control
:
loop_var
:
_service
-
include_tasks
:
configure
vars/main.yml
View file @
fa0c1ed1
---
lighttpd_datadirectory
:
"
/var/www"
lighttpd_configfile
:
"
/usr/local/etc/lighttpd/lighttpd.conf
"
lighttpd_configfile
:
"
lighttpd.conf.j2
"
package_packages
:
{
"
freebsd"
:
[
"
lighttpd"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment