mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-16 14:03:31 +02:00
Add Ansible provisioning of Vagrant env
This commit is contained in:
1
provisioning/roles/ntp/files/timezone
Normal file
1
provisioning/roles/ntp/files/timezone
Normal file
@ -0,0 +1 @@
|
||||
Europe/Oslo
|
3
provisioning/roles/ntp/handlers/main.yml
Normal file
3
provisioning/roles/ntp/handlers/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: update timezone
|
||||
command: dpkg-reconfigure --frontend=noninteractive tzdata
|
15
provisioning/roles/ntp/tasks/main.yml
Normal file
15
provisioning/roles/ntp/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: set timezone
|
||||
copy: src=timezone
|
||||
dest=/etc/timezone
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
notify:
|
||||
- update timezone
|
||||
|
||||
- name: install ntp
|
||||
apt: pkg=ntp state=latest
|
||||
|
||||
- name: make sure ntp is running
|
||||
service: name=ntp state=running enabled=yes
|
Reference in New Issue
Block a user