diff options
| author | admin | 2023-12-19 01:24:39 +0100 |
|---|---|---|
| committer | admin | 2023-12-19 01:24:39 +0100 |
| commit | 963e76aa55e4c5aec79d43dd6784c3aaf722d8bf (patch) | |
| tree | 4409b054529f4b0fe96a0aa7b5e30dece460db0d | |
| parent | e8a075fdafefc288909a5a1c1677e56138cf0f1f (diff) | |
| download | ansible-963e76aa55e4c5aec79d43dd6784c3aaf722d8bf.tar.gz | |
removes ntp, installs rsync
| -rw-r--r-- | roles/common-linux/files/ntp.conf | 29 | ||||
| -rw-r--r-- | roles/common-linux/tasks/main.yml | 3 | ||||
| -rw-r--r-- | roles/common-linux/tasks/ntp.yml | 10 | ||||
| -rw-r--r-- | roles/packages/defaults/main.yml | 1 |
4 files changed, 1 insertions, 42 deletions
diff --git a/roles/common-linux/files/ntp.conf b/roles/common-linux/files/ntp.conf deleted file mode 100644 index 6aee0df..0000000 --- a/roles/common-linux/files/ntp.conf +++ /dev/null @@ -1,29 +0,0 @@ -driftfile /var/lib/ntp/ntp.drift -statsdir /var/log/ntpstats/ - -statistics loopstats peerstats clockstats -filegen loopstats file loopstats type day enable -filegen peerstats file peerstats type day enable -filegen clockstats file clockstats type day enable - -# Unser Zeitserver -server 141.20.1.120 prefer # timehost.rz.hu-berlin.de - -# Stratum-2-Server -server 0.de.pool.ntp.org -server 1.de.pool.ntp.org -server 2.de.pool.ntp.org -server 3.de.pool.ntp.org - -# Fallback: die eigene Uhr (mit stratum 10 kuenstlich schlecht gemacht) -server 127.127.1.0 # local clock -fudge 127.127.1.0 stratum 10 - -# By default, exchange time with everybody, but don't allow configuration. -restrict -4 default kod notrap nomodify nopeer noquery -restrict -6 default kod notrap nomodify nopeer noquery - -# Local users may interrogate the ntp server more closely. -restrict 127.0.0.1 -restrict ::1 - diff --git a/roles/common-linux/tasks/main.yml b/roles/common-linux/tasks/main.yml index 35d9fde..5813a63 100644 --- a/roles/common-linux/tasks/main.yml +++ b/roles/common-linux/tasks/main.yml @@ -1,4 +1,3 @@ - - name: set hostname hostname: name: '{{ inventory_hostname }}' @@ -20,8 +19,6 @@ - import_tasks: git.yml -- import_tasks: ntp.yml - - name: mkdir ~/code file: path: /home/horus/code diff --git a/roles/common-linux/tasks/ntp.yml b/roles/common-linux/tasks/ntp.yml deleted file mode 100644 index 603b456..0000000 --- a/roles/common-linux/tasks/ntp.yml +++ /dev/null @@ -1,10 +0,0 @@ -- name: install ntp - apt: - name: - - 'ntp' - -- name: ntp.conf - copy: - src: ntp.conf - dest: /etc/ntp.conf - notify: restart ntpd diff --git a/roles/packages/defaults/main.yml b/roles/packages/defaults/main.yml index 3338f2c..bb7c23d 100644 --- a/roles/packages/defaults/main.yml +++ b/roles/packages/defaults/main.yml @@ -14,6 +14,7 @@ default_packages_present_all: - whois - make - golang + - rsync # - imagemagick # - imagemagick-6.q16 |
