From 6ab9ef3c9c2f9b8c3ba7aaa775a7f542cf49a0e0 Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Fri, 17 May 2019 16:27:44 +0200 Subject: [PATCH] implementing version control --- defaults/main.yml | 3 +++ tasks/main.yml | 3 ++- vars/main.yml | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 05a46f4..1238512 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -19,3 +19,6 @@ ntp_servers: # Enable or disable ntp statistics # Default is false ntp_statistics: false + +# version check for this playbook +submodules_versioncheck: true diff --git a/tasks/main.yml b/tasks/main.yml index b656bc1..76217f5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,6 @@ --- -# Main tasks file for ansible-role-ntp +- include_tasks: versioncheck.yml + when: submodules_versioncheck|bool - name: Include OS specific variables. include_vars: "{{ ansible_os_family }}.yml" diff --git a/vars/main.yml b/vars/main.yml index e4e06f2..f4b94e9 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,2 +1,3 @@ --- -# vars file for ansible-role-ntp \ No newline at end of file +playbook_version_number: 100 +playbook_version_path: '/etc/ansible-version/role-ntp_chaos-bodensee_github.com.version'