- name: Install repos dnf: name: - elrepo-release - epel-release state: present - name: Install kmod wireguard dnf: name: - kmod-wireguard - wireguard-tools - name: Enable wg-quick systemd unit systemd: name: wg-quick@{{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] | basename | split('.') | first }} enabled: yes daemon_reload: yes