Coder Social home page Coder Social logo

ansible-role-code-server's Introduction

ansible-role-code-server

Ansible Role Build Status

This role installs and configures the latest or specified version of code-server, supporting v3, v2 and v1.

Requirements

None.

Role Variables

Variable Default Comment
code_server_ver (undefined) code-server release name on GitHub.
Defaults to the latest version (including pre-release).
code_server_data_dir {{ ansible_user_dir }}/.local/share/code-server Defaults to .local/share/code-server in the home directory of the remote user.
code_server_work_dir (undefined) Working directory.
Defaults to welcome screen if not set in v3 and v2.
Defaults to the home directory of the remote user in v1.
code_server_auth password Authentication with password or none.
Available for code-server v3 and v2.
code_server_password (undefined) Leave undefined to use auto-generated password.
Check it with journalctl -u code-server
code_server_user {{ ansible_user_id }} The user to run code-server.
Defaults to the user used in ansible ssh connection.
code_server_host 0.0.0.0
code_server_port 8080
code_server_tls_cert (undefined) Leave undefined to use self-signed certificate.
code_server_tls_cert_remote no Change to yes if you're using a certificate that's already in your server (e.g.: if you use Let's Encrypt)
code_server_tls_key (undefined) Leave undefined to use self-signed certificate.
code_server_tls_key_remote no Change to yes if you're using a key that's already in your server (e.g.: if you use Let's Encrypt)

Dependencies

None.

Example Playbook

#!/usr/bin/env ansible-playbook
---
- hosts: localhost
  gather_facts: yes
  roles:
    - name: pallxk.code_server
      code_server_password: SuperSecret
      code_server_user: "{{ ansible_user_id }}"
      code_server_host: 0.0.0.0
      code_server_port: 8443
      code_server_tls_cert: /etc/letsencrypt/live/example.com/fullchain.pem
      code_server_tls_key: /etc/letsencrypt/live/example.com/privkey.pem

License

The MIT License (MIT)

Author Information

pallxk testcab

ansible-role-code-server's People

Contributors

benjaminbwright avatar ikea-shark-official avatar pallxk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.