1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00

update ansible role

This commit is contained in:
diodonfrost 2019-01-22 11:47:43 +01:00
parent 779f25448a
commit 632431e866
5 changed files with 19 additions and 14 deletions

View file

@ -68,7 +68,11 @@ platforms:
- name: ubuntu-14.04 - name: ubuntu-14.04
driver: driver:
image: diodonfrost/ubuntu-14.04-ansible image: diodonfrost/ubuntu-14.04-ansible
provision_command: apt-get install -y init
platform: ubuntu platform: ubuntu
run_command: /sbin/init
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
# Debian # Debian
- name: debian-9 - name: debian-9

View file

@ -0,0 +1,8 @@
---
# Tasks file for install ntp daemon on MacOSX system
- name: Service ntp on MacOSX
service:
name: "{{ ntp_service }}"
enabled: yes
state: started

View file

@ -1,10 +0,0 @@
Vagrant.configure(2) do |config|
config.vm.provision "shell", inline: <<-SHELL
pkg install -r gcc
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
tar zxvf Python-3.7.1.tgz && cd Python-3.7.1
./configure
make
make install
SHELL
end

View file

@ -1,4 +0,0 @@
Vagrant.configure("2") do |c|
c.vm.provision :shell, path: "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
c.vm.provision :shell, path: "https://chocolatey.org/install.ps1"
end

7
vars/Darwin.yml Normal file
View file

@ -0,0 +1,7 @@
ntp_package:
ntp_service: ntp
ntp_configfile: /private/etc/ntp.conf
ntp_configfile_user: root
ntp_configfile_group: root
ntp_driftfile: /private/var/lib/ntp/drift