Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
hpc-team
HPCasCode
Commits
721fce1e
Commit
721fce1e
authored
5 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
on ubuntu ntpd is called ntp
parent
f25940e2
No related branches found
No related tags found
1 merge request
!293
Ubuntu
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/set_timezone/tasks/main.yml
+16
-2
16 additions, 2 deletions
roles/set_timezone/tasks/main.yml
with
16 additions
and
2 deletions
roles/set_timezone/tasks/main.yml
+
16
−
2
View file @
721fce1e
...
...
@@ -4,15 +4,29 @@
become
:
true
become_user
:
root
-
name
:
restart ntpd
-
name
:
restart ntpd
redhat
service
:
name=ntpd state=restarted
become
:
true
become_user
:
root
when
:
ansible_os_family == "RedHat"
-
name
:
ensure ntpd is enabled and started
-
name
:
ensure ntpd is enabled and started
redhat
service
:
name=ntpd state=started enabled=yes
become
:
true
become_user
:
root
when
:
ansible_os_family == "RedHat"
-
name
:
restart ntpd ubuntu
service
:
name=ntp state=restarted
become
:
true
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
ensure ntpd is enabled and started ubuntu
service
:
name=ntp state=started enabled=yes
become
:
true
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
set local timezone
file
:
path=/etc/localtime state=link src={{ TIMEZONE_PATH }}
...
...
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
96d64307
·
4 years ago
mentioned in commit
96d64307
mentioned in commit 96d6430702616b9d417a9480b21b13b9bf810d74
Toggle commit list
Andreas Hamacher
@handreas
mentioned in commit
a355d845
·
4 years ago
mentioned in commit
a355d845
mentioned in commit a355d8452dacef5933610148c4f43436b70903af
Toggle commit list
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