2017-09-05 12:01:27 +02:00
|
|
|
---
|
2018-03-04 19:51:35 +01:00
|
|
|
- name: configure debian apt repositories
|
|
|
|
template:
|
|
|
|
src: apt-sources-list.j2
|
|
|
|
dest: /etc/apt/sources.list
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: update package information
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
|
2018-02-28 06:06:14 +01:00
|
|
|
- name: ensure rpcbind is not installed
|
|
|
|
package:
|
|
|
|
name: rpcbind
|
|
|
|
state: absent
|
|
|
|
|
2017-09-05 12:01:27 +02:00
|
|
|
- name: ensure common packages are installed
|
2017-10-11 17:53:20 +02:00
|
|
|
package:
|
2018-09-16 12:38:33 +02:00
|
|
|
name: "{{ packages }}"
|
2017-10-11 17:53:20 +02:00
|
|
|
state: present
|
2017-09-05 12:01:27 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
2019-03-23 14:59:12 +01:00
|
|
|
- name: copy resolvconf if-up
|
|
|
|
copy:
|
|
|
|
src: resolvconf.if-up
|
|
|
|
dest: /etc/network/if-up.d/000resolvconf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: copy resolvconf if-down
|
|
|
|
copy:
|
|
|
|
src: resolvconf.if-down
|
|
|
|
dest: /etc/network/if-down.d/resolvconf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
2017-11-06 17:41:17 +01:00
|
|
|
- name: create ffmwu custom config dir
|
|
|
|
file:
|
2017-12-31 13:41:15 +01:00
|
|
|
path: /home/admin/.ffmwu-config
|
2017-11-06 17:41:17 +01:00
|
|
|
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:
|
2017-12-30 23:08:42 +01:00
|
|
|
src: modules_load_dummy.conf.j2
|
2017-11-12 14:35:11 +01:00
|
|
|
dest: /etc/modules-load.d/dummy.conf
|
2017-12-30 23:08:42 +01:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: configure dummy module options
|
|
|
|
template:
|
|
|
|
src: modprobe_dummy.conf.j2
|
|
|
|
dest: /etc/modprobe.d/dummy.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2017-11-12 14:35:11 +01:00
|
|
|
|
|
|
|
- name: load dummy module
|
|
|
|
modprobe:
|
|
|
|
name: "dummy"
|
|
|
|
state: present
|
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
|
2018-02-05 17:37:52 +01:00
|
|
|
|
|
|
|
- name: create systemd override dir for networking.service
|
|
|
|
file:
|
|
|
|
path: /etc/systemd/system/networking.service.d
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: configure systemd unit overrides
|
|
|
|
template:
|
|
|
|
src: networking_service_overrides.j2
|
|
|
|
dest: /etc/systemd/system/networking.service.d/override.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify:
|
|
|
|
- reload systemd
|