Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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
Nounous
Ansible
Commits
e894ae12
Commit
e894ae12
authored
4 years ago
by
me5na7qbjqbrp
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_ntp_role' into 'newinfra'
Small fix on ntp See merge request
!117
parents
46677d59
460e2995
No related branches found
Branches containing commit
No related tags found
1 merge request
!117
Small fix on ntp
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
all.yml
+1
-4
1 addition, 4 deletions
all.yml
plays/backup.yml
+0
-2
0 additions, 2 deletions
plays/backup.yml
roles/ntp-client/tasks/main.yml
+2
-2
2 additions, 2 deletions
roles/ntp-client/tasks/main.yml
with
3 additions
and
8 deletions
all.yml
+
1
−
4
View file @
e894ae12
#!/usr/bin/env ansible-playbook
---
# Set variable adm_iface for all servers
-
import_playbook
:
plays/get_adm_iface.yml
# Core playboot to have minimal configuration
-
import_playbook
:
plays/root.yml
-
import_playbook
:
plays/mail.yml
-
import_playbook
:
plays/nfs.yml
#- import_playbook: plays/logs.yml
-
import_playbook
:
plays/backup.yml
#
- import_playbook: plays/backup.yml
-
import_playbook
:
plays/network-interfaces.yml
-
import_playbook
:
plays/monitoring.yml
...
...
This diff is collapsed.
Click to expand it.
plays/backup.yml
+
0
−
2
View file @
e894ae12
...
...
@@ -3,8 +3,6 @@
# zephir backups virtual machines.
# omnomnom backups home dirs.
-
import_playbook
:
get_adm_iface.yml
# Rsync client on all server to allow backup
#- hosts: server
# vars:
...
...
This diff is collapsed.
Click to expand it.
roles/ntp-client/tasks/main.yml
+
2
−
2
View file @
e894ae12
...
...
@@ -7,7 +7,7 @@
register
:
apt_result
retries
:
3
until
:
apt_result is succeeded
when
:
inventory_hostname in ntp_servers
when
:
inventory_hostname
not
in ntp_servers
-
name
:
Configure NTP
lineinfile
:
...
...
@@ -15,4 +15,4 @@
regexp
:
'
^NTP='
line
:
"
NTP={{
ntp_servers
|
join('
')
}}"
notify
:
Restart systemd-timesyncd
when
:
inventory_hostname in ntp_servers
when
:
inventory_hostname
not
in ntp_servers
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