2017-09-05 12:01:27 +02:00
|
|
|
---
|
|
|
|
- name: ensure common packages are installed
|
2017-10-11 17:53:20 +02:00
|
|
|
package:
|
2017-09-05 12:01:27 +02:00
|
|
|
name: "{{ item }}"
|
2017-10-11 17:53:20 +02:00
|
|
|
state: present
|
2017-09-05 12:01:27 +02:00
|
|
|
with_items: "{{ packages }}"
|
|
|
|
|
|
|
|
- name: ensure vim is default editor
|
|
|
|
alternatives:
|
|
|
|
name: editor
|
|
|
|
path: /usr/bin/vim.basic
|
|
|
|
|
2017-11-12 12:44:20 +01:00
|
|
|
- name: ensure default locale is installed
|
|
|
|
locale_gen:
|
|
|
|
name: "{{ default_locale }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: ensure default locale is set
|
|
|
|
command: "/usr/bin/localectl set-locale LANG={{ default_locale }}"
|
|
|
|
changed_when: false
|
|
|
|
|
2017-09-05 12:01:27 +02:00
|
|
|
- name: set timezone to Europe/Berlin
|
|
|
|
timezone:
|
|
|
|
name: Europe/Berlin
|
2017-11-06 17:41:17 +01:00
|
|
|
|
|
|
|
- name: create ffmwu custom config dir
|
|
|
|
file:
|
|
|
|
path: /home/admin/.config
|
|
|
|
state: directory
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
mode: 0750
|
2017-11-12 14:35:11 +01:00
|
|
|
|
|
|
|
- name: configure dummy module to load on system boot
|
|
|
|
template:
|
|
|
|
src: dummy.module.conf.j2
|
|
|
|
dest: /etc/modules-load.d/dummy.conf
|
|
|
|
|
|
|
|
- name: load dummy module
|
|
|
|
modprobe:
|
|
|
|
name: "dummy"
|
|
|
|
state: present
|
|
|
|
params: "numdummies=0"
|
2017-12-30 22:47:58 +01:00
|
|
|
|
|
|
|
- name: manage apt auto upgrades
|
|
|
|
template:
|
|
|
|
src: apt-20auto-upgrades.j2
|
|
|
|
dest: /etc/apt/apt.conf.d/20auto-upgrades
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
|
|
|
- name: manage apt unattended upgrades
|
|
|
|
template:
|
|
|
|
src: apt-50unattended-upgrades.j2
|
|
|
|
dest: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
|
|
mode: 0644
|
|
|
|
owner: root
|
|
|
|
group: root
|