aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'ansible')
-rw-r--r--ansible/plays/malabaricus-base.yml2
-rw-r--r--ansible/roles/timezone/handlers/main.yml4
-rw-r--r--ansible/roles/timezone/tasks/main.yml4
-rw-r--r--ansible/roles/unix-machine/tasks/main.yml5
4 files changed, 7 insertions, 8 deletions
diff --git a/ansible/plays/malabaricus-base.yml b/ansible/plays/malabaricus-base.yml
index e782fb2..79a93e1 100644
--- a/ansible/plays/malabaricus-base.yml
+++ b/ansible/plays/malabaricus-base.yml
@@ -4,6 +4,8 @@
- import_role:
name: unix-machine
- import_role:
+ name: timezone
+ - import_role:
name: lusers
- import_role:
name: superusers
diff --git a/ansible/roles/timezone/handlers/main.yml b/ansible/roles/timezone/handlers/main.yml
index daf0f5f..1faf38e 100644
--- a/ansible/roles/timezone/handlers/main.yml
+++ b/ansible/roles/timezone/handlers/main.yml
@@ -1,3 +1,3 @@
----
-- name: reconfigure tzdata
+- become: yes
+ name: reconfigure tzdata
shell: dpkg-reconfigure -f noninteractive tzdata
diff --git a/ansible/roles/timezone/tasks/main.yml b/ansible/roles/timezone/tasks/main.yml
index 3b81702..672dca7 100644
--- a/ansible/roles/timezone/tasks/main.yml
+++ b/ansible/roles/timezone/tasks/main.yml
@@ -1,6 +1,4 @@
----
-- tags:
- - timezone
+- become: yes
file:
src: /usr/share/zoneinfo/Europe/Oslo
dest: /etc/localtime
diff --git a/ansible/roles/unix-machine/tasks/main.yml b/ansible/roles/unix-machine/tasks/main.yml
index 82d835d..9143fd2 100644
--- a/ansible/roles/unix-machine/tasks/main.yml
+++ b/ansible/roles/unix-machine/tasks/main.yml
@@ -17,7 +17,6 @@
- name: packages
tags: packages
apt:
- name: "{{ item }}"
+ name:
+ - iputils-ping
install_recommends: no
- with_items:
- - iputils-ping