Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible-playbooks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
github-mirror
ansible-playbooks
Commits
12c69aca
Commit
12c69aca
authored
May 09, 2018
by
Julian K
Committed by
aflatto
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for Ubuntu 18.04 (#83)
parent
cfbee6d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
icinga2-ansible-web2-ui/tasks/icinga2_web2_ui_Debian_install.yml
...-ansible-web2-ui/tasks/icinga2_web2_ui_Debian_install.yml
+14
-4
No files found.
icinga2-ansible-web2-ui/tasks/icinga2_web2_ui_Debian_install.yml
View file @
12c69aca
...
...
@@ -5,13 +5,23 @@
-
name
:
Install PHP requirements
apt
:
name
:
"
{{
item}}"
name
:
"
{{
item
}}"
state
:
present
with_items
:
-
php7.0
-
libapache2-mod-php7.0
-
php
-
php-gd
-
libapache2-mod-php
-
name
:
Get PHP version
command
:
php --version
register
:
php_version
changed_when
:
false
-
name
:
Set PHP version
set_fact
:
php_version="{{ php_version.stdout_lines[0] | regex_replace('^PHP (\d\.\d).*$','\\1') }}"
-
name
:
Enable PHP apache module
apache2_module
:
name="php{{ php_version }}""
-
name
:
Find out timezone
slurp
:
...
...
@@ -20,7 +30,7 @@
-
name
:
Timezone in php.ini
lineinfile
:
path
:
/etc/php/7.0/apache2/php.ini
path
:
'
/etc/php/{{
php_version
}}/apache2/php.ini'
regexp
:
'
^;?date.timezone
='
line
:
'
date.timezone
=
"{{
etc_timezone["content"]
|
b64decode
|
regex_replace("\n")
}}"'
notify
:
restart apache2
...
...
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