60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
---
|
|
- name: Install packages
|
|
ansible.builtin.apt:
|
|
name:
|
|
- lxqt
|
|
- spice-vdagent
|
|
- vim
|
|
- git
|
|
- mariadb-server
|
|
- extrepo
|
|
update_cache: true
|
|
|
|
- name: Remove screensaver
|
|
ansible.builtin.apt:
|
|
name:
|
|
- xscreensaver
|
|
autoremove: true
|
|
state: absent
|
|
|
|
- name: Activate contrib and non-free repos for extrepo
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/extrepo/config.yaml
|
|
regexp: '^# - {{ item }}'
|
|
line: '- {{ item }}'
|
|
with_items:
|
|
- contrib
|
|
- non-free
|
|
|
|
- name: Allow sudo without password for user
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/sudoers.d/95-user
|
|
line: 'user ALL=(root) NOPASSWD: ALL'
|
|
create: true
|
|
owner: root
|
|
group: root
|
|
mode: '0700'
|
|
|
|
- name: Enable autologin for user
|
|
ansible.builtin.copy:
|
|
content: |
|
|
[Autologin]
|
|
User=user
|
|
Session=lxqt.desktop
|
|
dest: /etc/sddm.conf
|
|
mode: '0644'
|
|
|
|
- name: Set grub default to zero
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/default/grub
|
|
regexp: '^GRUB_TIMEOUT=.*'
|
|
line: GRUB_TIMEOUT=0
|
|
notify: Update grub
|
|
|
|
- name: Deploy http proxy config
|
|
ansible.builtin.blockinfile:
|
|
path: /home/user/.profile
|
|
block: |
|
|
export http_proxy="http://192.168.122.1:3128"
|
|
export https_proxy="http://192.168.122.1:3128"
|
|
export ftp_proxy="http://192.168.122.1:3128"
|