Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uptime
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
uptime
Commits
a98ebd12
Commit
a98ebd12
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting
parent
16a769af
Branches
main
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/main.yml
+47
-47
47 additions, 47 deletions
tasks/main.yml
with
49 additions
and
47 deletions
defaults/main.yml
+
2
−
0
View file @
a98ebd12
---
uptime_mode
:
main
uptime_domain
:
localhost:8082
uptime_username
:
uptime
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
47
−
47
View file @
a98ebd12
...
...
@@ -9,58 +9,58 @@
-
block
:
-
name
:
Ensure uptime user
mongodb_user
:
database
:
uptime
login_database
:
admin
login_user
:
root
login_password
:
root
name
:
root
password
:
root
ignore_errors
:
yes
when
:
uptime_mode == 'main'
-
name
:
Ensure uptime user
mongodb_user
:
database
:
uptime
login_database
:
admin
login_user
:
root
login_password
:
root
name
:
root
password
:
root
ignore_errors
:
yes
when
:
uptime_mode == 'main'
-
name
:
Ensure directory
file
:
path
:
/var/www
state
:
directory
mode
:
0755
-
name
:
Ensure directory
file
:
path
:
/var/www
state
:
directory
mode
:
0755
-
name
:
Checkout latest version of Uptime
git
:
repo
:
https://gitlab.lakedrops.com/tools/uptime.git
dest
:
/var/www/uptime
force
:
yes
notify
:
-
Restart Uptime
-
name
:
Checkout latest version of Uptime
git
:
repo
:
https://gitlab.lakedrops.com/tools/uptime.git
dest
:
/var/www/uptime
force
:
yes
notify
:
-
Restart Uptime
-
name
:
Install node components
npm
:
path
:
/var/www/uptime
notify
:
-
Restart Uptime
-
name
:
Install node components
npm
:
path
:
/var/www/uptime
notify
:
-
Restart Uptime
-
name
:
Configure uptime
template
:
src
:
production.yaml
dest
:
/var/www/uptime/config/production.yaml
owner
:
root
group
:
root
mode
:
0644
notify
:
-
Restart Uptime
-
name
:
Configure uptime
template
:
src
:
production.yaml
dest
:
/var/www/uptime/config/production.yaml
owner
:
root
group
:
root
mode
:
0644
notify
:
-
Restart Uptime
-
name
:
List Patches
shell
:
ls /var/www/uptime/patches -1
register
:
patch_list
-
name
:
List Patches
shell
:
ls /var/www/uptime/patches -1
register
:
patch_list
-
name
:
Apply Patches
shell
:
patch -p1 --ignore-whitespace --forward < /var/www/uptime/patches/{{ item }}
args
:
chdir
:
/var/www/uptime
with_items
:
'
{{
patch_list.stdout_lines
}}'
ignore_errors
:
yes
notify
:
-
Restart Uptime
-
name
:
Apply Patches
shell
:
patch -p1 --ignore-whitespace --forward < /var/www/uptime/patches/{{ item }}
args
:
chdir
:
/var/www/uptime
with_items
:
'
{{
patch_list.stdout_lines
}}'
ignore_errors
:
yes
notify
:
-
Restart Uptime
when
:
not excluded_roles or "uptime" 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