Advertisement
wagnermarques

Install Minimal Xfce in Wayland in Fedora Server

Jan 17th, 2023 (edited)
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.40 KB | Source Code | 0 0
  1. ---
  2. - name: Install Minimal Xfce4 with Wayland in Fedora Server
  3.   hosts: localhost
  4.   vars:
  5.     username: 'aluno'
  6.     password: 'aluno'
  7.   tasks:
  8.     - name: Print all available facts
  9.       ansible.builtin.debug:
  10.         var: ansible_facts
  11.  
  12.     - name: Encrypt PASSWORD
  13.       set_fact:
  14.         encrypted_password: "{{ password | password_hash('sha512') }}"
  15.  
  16.     - name: Add user
  17.       ansible.builtin.user:
  18.         name: "{{ username }}"
  19.         password: "{{ encrypted_password }}"
  20.         update_password: always
  21.  
  22.     - name: Update system
  23.       package:
  24.         name: '*'
  25.         state: latest
  26.  
  27.     - name: Install Xfce packages
  28.       dnf:
  29.         name: "@xfce-desktop-environment"
  30.         state: present
  31.  
  32.     - name: Install Xfce packages
  33.       dnf:
  34.         name: "xfce4-panel, xfce4-session, xfwm4, xfdesktop, xfce4-settings, xfce4-terminal, xfce4-notifyd, xfce4-pulseaudio-plugin, thunar, libxfce4ui"
  35.         state: present
  36.  
  37.     - name: Install Wayland packages
  38.       dnf:
  39.         name: "libwayland-client, libwayland-server, wayland-devel, wayland-protocols-devel"
  40.         state: present
  41.  
  42.     - name: Install display manager
  43.       dnf:
  44.         name: "lightdm"
  45.         state: present
  46.  
  47.     - name: Enable and start display manager
  48.       systemd:
  49.         name: lightdm
  50.         state: started
  51.         enabled: yes
  52.  
  53.     - name: reboot the system
  54.       command: /sbin/reboot
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement