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
96d64307
Commit
96d64307
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
on ubuntu ntpd is called ntp
Former-commit-id:
721fce1e
parent
9ef23236
No related branches found
No related tags found
No related merge requests found
Changes
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 @
96d64307
...
...
@@ -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.
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