Compare commits
No commits in common. "948c9a5d8d9aeb44db847b8ef8104aa21cbda1fd" and "4ed2b7826a518c0f629ca8722166193815bb4906" have entirely different histories.
948c9a5d8d
...
4ed2b7826a
5 changed files with 10 additions and 11 deletions
|
@ -37,7 +37,6 @@ templates:
|
|||
- "/etc/sysctl.d/congestion.conf"
|
||||
- "/etc/sysctl.d/coredump.conf"
|
||||
- "/etc/docker/daemon.json"
|
||||
- "/etc/ntp.conf"
|
||||
services:
|
||||
- runlevel: "sysinit"
|
||||
service: "devfs"
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
---
|
||||
- name: "Create directories."
|
||||
file:
|
||||
state: "directory"
|
||||
path: "/mnt/etc/docker"
|
||||
- name: "Install configuration files."
|
||||
template:
|
||||
src: "templates{{ item }}.j2"
|
||||
|
|
|
@ -5,12 +5,14 @@ iface lo inet loopback
|
|||
auto eth0
|
||||
|
||||
iface eth0 inet static
|
||||
address {{ ansible_host }}/{{ netmask }}
|
||||
gateway {{ gateway }}
|
||||
address {{ hostvars[inventory_hostname].ansible_default_ipv4.address }}
|
||||
netmask {{ hostvars[inventory_hostname].ansible_default_ipv4.netmask }}
|
||||
gateway {{ hostvars[inventory_hostname].ansible_default_ipv4.gateway }}
|
||||
|
||||
{% if ip6 is defined %}
|
||||
iface eth0 inet6 static
|
||||
address {{ ip6 }}/{{ netmask6 }}
|
||||
address {{ ip6 }}
|
||||
netmask {{ netmask6 }}
|
||||
gateway {{ gateway6 }}
|
||||
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
|
||||
{% endif %}
|
||||
|
|
5
templates/etc/ntp.conf
Normal file
5
templates/etc/ntp.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
pool pool.ntp.org
|
||||
driftfile /var/lib/ntp/ntp.drift
|
||||
restrict default kod limited nomodify nopeer noquery
|
||||
restrict 127.0.0.1
|
||||
restrict ::1
|
|
@ -1,3 +0,0 @@
|
|||
# https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d
|
||||
server time.cloudflare.com nts iburst
|
||||
driftfile /var/lib/ntp/ntp.drift
|
Loading…
Reference in a new issue