Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
ansible-shared
webservices
Commits
f70fdec5
Commit
f70fdec5
authored
5 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Add simple role for preparing framadate installation
parent
4d086da1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
framadate/defaults/main.yml
+3
-0
3 additions, 0 deletions
framadate/defaults/main.yml
framadate/tasks/main.yml
+52
-0
52 additions, 0 deletions
framadate/tasks/main.yml
with
55 additions
and
0 deletions
framadate/defaults/main.yml
0 → 100644
+
3
−
0
View file @
f70fdec5
---
framadate_name
:
"
framadate"
This diff is collapsed.
Click to expand it.
framadate/tasks/main.yml
0 → 100644
+
52
−
0
View file @
f70fdec5
---
-
name
:
install packages
apt
:
name
:
-
php
-
php-mbstring
-
php-mysql
-
php-intl
-
composer
-
name
:
ensure a group for framadate exist
group
:
name
:
"
{{framadate_name}}"
state
:
present
system
:
true
-
name
:
ensure a user for framadate exist
user
:
name
:
"
{{framadate_name}}"
group
:
"
{{framadate_name}}"
state
:
present
system
:
true
shell
:
/usr/bin/nologin
home
:
"
/var/www/{{framadate_name}}"
createhome
:
false
-
name
:
ensure the directory for framadate exist
file
:
path
:
"
/var/www/{{framadate_name}}"
state
:
directory
owner
:
"
{{framadate_name}}"
group
:
"
{{framadate_name}}"
mode
:
'
0755'
-
name
:
create the mysql database
mysql_db
:
name
:
"
{{framadate_name}}"
state
:
present
login_user
:
root
login_password
:
"
{{lookup('passwordstore',
'db/{{ansible_hostname}}-mysql')}}"
no_log
:
true
-
name
:
create mysql db user
mysql_user
:
name
:
"
{{framadate_name}}"
password
:
"
{{lookup('passwordstore',
'db/{{ansible_hostname}}-mysql-{{framadate_name}}
create=true
length=20')}}"
state
:
present
login_user
:
root
login_password
:
"
{{lookup('passwordstore',
'db/{{ansible_hostname}}-mysql')}}"
priv
:
"
{{framadate_name}}.*:ALL"
no_log
:
true
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