From 64dfd20134ee028cc865745d8d8bfec31299ff0a Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 18 Dec 2023 14:49:09 +0100 Subject: initial commit --- roles/common-linux/tasks/git.yml | 12 ++++++++++++ roles/common-linux/tasks/main.yml | 29 +++++++++++++++++++++++++++++ roles/common-linux/tasks/ntp.yml | 10 ++++++++++ 3 files changed, 51 insertions(+) create mode 100644 roles/common-linux/tasks/git.yml create mode 100644 roles/common-linux/tasks/main.yml create mode 100644 roles/common-linux/tasks/ntp.yml (limited to 'roles/common-linux/tasks') diff --git a/roles/common-linux/tasks/git.yml b/roles/common-linux/tasks/git.yml new file mode 100644 index 0000000..4ed5012 --- /dev/null +++ b/roles/common-linux/tasks/git.yml @@ -0,0 +1,12 @@ +- name: git config user.email + git_config: + name: user.email + scope: global + value: "admin" + +- name: git config user.name + git_config: + name: user.name + scope: global + value: "admin" + diff --git a/roles/common-linux/tasks/main.yml b/roles/common-linux/tasks/main.yml new file mode 100644 index 0000000..f0319fb --- /dev/null +++ b/roles/common-linux/tasks/main.yml @@ -0,0 +1,29 @@ + +- name: set hostname + hostname: + name: '{{ inventory_hostname }}' + +- name: set timezone + timezone: + name: "Europe/Berlin" + hwclock: "UTC" + +- name: locale en_US.UTF-8 + locale_gen: + name: en_US.UTF-8 + state: present + +- name: locale de_DE.UTF-8 + locale_gen: + name: de_DE.UTF-8 + state: present + +- import_tasks: git.yml + +- import_tasks: ntp.yml + + #- import_tasks: cronjobs.yml + + + + diff --git a/roles/common-linux/tasks/ntp.yml b/roles/common-linux/tasks/ntp.yml new file mode 100644 index 0000000..603b456 --- /dev/null +++ b/roles/common-linux/tasks/ntp.yml @@ -0,0 +1,10 @@ +- name: install ntp + apt: + name: + - 'ntp' + +- name: ntp.conf + copy: + src: ntp.conf + dest: /etc/ntp.conf + notify: restart ntpd -- cgit v1.2.3