ansible-ffibk/roles/server-basic/tasks/main.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

---
- name: ensure common packages are installed
package:
name: "{{ item }}"
state: present
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
- name: set timezone to Europe/Berlin
timezone:
name: Europe/Berlin
- name: create ffmwu custom config dir
file:
path: /home/admin/.config
state: directory
owner: admin
group: admin
mode: 0750
- 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"
- 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