yavdr-ansible/roles/yavdr-common/tasks/configure_system.yml

62 lines
1.4 KiB
YAML
Raw Normal View History

- name: use bash instead of dash
shell: |
echo "set dash/sh false" | debconf-communicate
dpkg-reconfigure -f noninteractive dash
- name: create vdr group
group:
gid: '{{ vdr.gid }}'
state: present
name: '{{ vdr.group }}'
- name: create vdr user
user:
name: '{{ vdr.user }}'
group: '{{ vdr.group }}'
uid: '{{ vdr.uid }}'
home: '{{ vdr.home }}'
shell: '/bin/bash'
state: present
append: true
- name: disable release-upgrade notifications
lineinfile:
dest: /etc/update-manager/release-upgrades
backrefs: yes
state: present
regexp: '^(Prompt=).*$'
line: '\1never'
ignore_errors: yes
2017-11-22 11:37:20 +01:00
with_first_found:
2017-11-22 11:40:17 +01:00
- files:
2017-11-22 11:37:20 +01:00
- /etc/update-manager/release-upgrades
skip: true
- name: apt | install basic packages
apt:
name:
- anacron
- acl
- at
- bash-completion
#- biosdevname # caution: may change device names after a minimal installation!
- debconf-utils
- linux-firmware
- psmisc
2019-03-10 20:35:58 +01:00
- python-jmespath
- python-kmodpy
- python-requests
- python-usb
- python3-usb
- software-properties-common
- ssh
- wget
- wpasupplicant
- usbutils
- xfsprogs
- yavdr-i18n
state: present
install_recommends: no
- name: apt | install extra packages
apt:
name: '{{ extra_packages }}'
state: present
install_recommends: no