Hey @Kyraa, to encrypt an existing file using Ansible Vault, you could use the ansible-vault command. It'll promt you for a password and then again to confirm the password. 
Something like this:
# Encrypt a role's defaults/main.yml file 
ansible-vault encrypt defaults/main.yml 
> New Vault password: 
> Confirm New Vault password: 
> Encryption successful