Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Install Minimal Xfce4 with Wayland in Fedora Server
- hosts: localhost
- vars:
- username: 'aluno'
- password: 'aluno'
- tasks:
- - name: Print all available facts
- ansible.builtin.debug:
- var: ansible_facts
- - name: Encrypt PASSWORD
- set_fact:
- encrypted_password: "{{ password | password_hash('sha512') }}"
- - name: Add user
- ansible.builtin.user:
- name: "{{ username }}"
- password: "{{ encrypted_password }}"
- update_password: always
- - name: Update system
- package:
- name: '*'
- state: latest
- - name: Install Xfce packages
- dnf:
- name: "@xfce-desktop-environment"
- state: present
- - name: Install Xfce packages
- dnf:
- name: "xfce4-panel, xfce4-session, xfwm4, xfdesktop, xfce4-settings, xfce4-terminal, xfce4-notifyd, xfce4-pulseaudio-plugin, thunar, libxfce4ui"
- state: present
- - name: Install Wayland packages
- dnf:
- name: "libwayland-client, libwayland-server, wayland-devel, wayland-protocols-devel"
- state: present
- - name: Install display manager
- dnf:
- name: "lightdm"
- state: present
- - name: Enable and start display manager
- systemd:
- name: lightdm
- state: started
- enabled: yes
- - name: reboot the system
- command: /sbin/reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement