diff --git a/.gitignore b/.gitignore index 620a9b7..aab768d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ # ---> Ansible *.retry EXAMPLES - +roles diff --git a/ansible.cfg b/ansible.cfg index b87b990..eaf3e8f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,6 +1,7 @@ [defaults] inventory = ./inventory +roles_path = ./roles remote_user = hpf-ans host_key_checking = False diff --git a/local.yml b/local.yml new file mode 100644 index 0000000..4dc36f2 --- /dev/null +++ b/local.yml @@ -0,0 +1,18 @@ +--- +- name: Configure time synchronization + hosts: all + become: true + vars: + timesync_ntp_provider: chrony + timesync_ntp_servers: + - hostname: 0.north-america.pool.ntp.org + iburst: true + - hostname: 1.north-america.pool.ntp.org + iburst: true + - hostname: 2.north-america.pool.ntp.org + iburst: true + timesync_chrony_custom_settings: + - "logdir /var/log/chrony" + - "log measurements statistics tracking" + roles: + - linux-system-roles.timesync diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..d91efa8 --- /dev/null +++ b/requirements.yml @@ -0,0 +1,4 @@ +--- +roles: + - name: linux-system-roles.timesync + version: 1.14.1