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

43 lines
936 B
YAML

---
- 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
- 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"