Hey @Moana, you playbook is missing the tasks session and even the identations aren't how they are suppossed to be.
Write it something like this:
---
- hosts : server
vars:
inventory_hostname : vyos_host
tasks:
- name : setting host name
vyos_config:
lines:
- set system host-name {{ inventory_hostname }}