summaryrefslogtreecommitdiff
path: root/roles/common-linux/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common-linux/tasks')
-rw-r--r--roles/common-linux/tasks/git.yml12
-rw-r--r--roles/common-linux/tasks/main.yml29
-rw-r--r--roles/common-linux/tasks/ntp.yml10
3 files changed, 51 insertions, 0 deletions
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