Skip to content

wbedu/valheim-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

valheim-server

installs and runs valheim

Requirements

debian OS Family

Role Variables

Variable Description Default
gm_name username on host that owns server files and processes hvadmin
gm_pass password for linux user (password is disabled as default) not defined
gm_ssh_key ssh public key (accepts url, lists, string, and lookup) not defined
run_valheim determins whether to run the game server or not yes
valheim_server_name valheim server name valheim community server
valheim_server_password valheim server password hunter2345
valheim_server_port valheim server port 2456

Role Requirements

roles:
  - src: https://github.com/Aversiste/ansible-steamcmd.git
    name: Aversiste.ansible-steamcmd
    version: master

Example Playbooks

Minimal example

    - hosts: servers
      roles:
        - role: valheim-server

Full example

    - hosts: servers
      roles:
        - role: valheim-server
          vars:
            gm_name: "user1234"
            gm_pass: "good secure password that won't be shared with non admins"
            gm_ssh_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
            run_valheim: yes
            valheim_server_name: "server 0123"
            valheim_server_password: "sooper dooper secret"
            valheim_server_port: "2456"

License

MIT

Author Information

wbedu@github | me@willbedu.com