ansible-desktop/deploy.yml

58 lines
1.3 KiB
YAML

---
- name: "deploy workstation"
hosts: localhost
connection: local
become: true
become_method: sudo
vars_files:
- vars.yml
roles:
- cups
- firefox
- git
- google-chrome
- kerberos
- ldap
- mutt
- rpmfusion-nonfree-repo
- spotify
- thinlinc
- thunderbird
tasks:
- name: remove unneeded packages
ansible.builtin.package:
name: "{{ item }}"
state: absent
with_items:
- abrt
- mlocate
- name: install extra packages
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
- emacs # more editors
- gstreamer1-plugin-openh264 # h264 plugin for browser
- podman-docker # add docker compatibility
- vim # better vi
- virt-manager # manage virtual machines
- name: hide grub menu during boot
ansible.builtin.lineinfile:
path: /etc/default/grub
line: GRUB_TIMEOUT_STYLE=hidden
regexp: "^GRUB_TIMEOUT_STYLE=.*"
notify: reconfigure grub
handlers:
- name: reconfigure grub
ansible.builtin.command:
argv:
- grub2-mkconfig
- -o
- /boot/grub2/grub.cfg