Code Monkey home page Code Monkey logo

ansible-yunohost's Introduction

ansible-yunohost

Deploy Yunohost with Ansible !

Requirements

None.

Role Variables

Example of Variables:

yunohost:
  # Link to the install script
  install_script_url: https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost
  # The main domain, then a list of other domains.
  domain: example.com
  extra_domains:
    - example2.com
    - example3.com
  # Yunohost admin password
  password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
  # If you don't want to use a noho.st url
  ignore_dyndns: False
  # The list of apps you want to install.
  apps:
    - label: Tiny Tiny RSS # Label is important, it's a reference for the Playbook.
      link: ttrss # It can be the name of an official app or a github link
      args: # Provide here args. Path and domain are mandatory, other args depend of the app (cf manifest.json of app).
        path: /ttrss
        domain: example.com
  # The list of users.
  users:
    - name: user1
      pass: p@ssw0rd
      firstname: Jane
      lastname: Doe
      mail: [email protected]

Dependencies

None.

Example Playbook

- name: Provision servers
  hosts: all
  remote_user: root
  pre_tasks:
    - name: Update all packages and index
      apt:
        upgrade: dist
        update_cache: yes

  roles:
     - { role: sylvainar.yunohost }

License

GPL-3.0

ansible-yunohost's People

Contributors

rthouvenin avatar sylvainar avatar zamentur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-yunohost's Issues

script install_yunohost.sh not available anymore

Hi !
Thxx for your work !
i would try to install ynh with ansible BUT i'm stuck on the download step !
is not really an issue with your code but .....
the link : "https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost" is not available anymore.
may have you this script somewhere ? updated with the last version of the ynh installation ?
Thx a lot.
Have good day .

EDIT : https://install.yunohost.org ...... but failed post install.
EDIT 2: ok, arguments on my playbook where wrong ! so , juste change url of the script to the new one and everything 'll be ok =)

usage w/o ssh-key is unsecure

Instead of allow password authentication for ssh I suggest to use publickey only. i've prepared some thing for this.
but please check my pr first.

Certificate installation on a fresh install does not work as expected

When running the role on a fresh server, the task "Install certificates" does not actually install the certificates, because it expects that a diagnosis was run before. More over, the task is reported as OK, because the command returns exit code 0 even though it failed.

I've reported the wrong exit code here: YunoHost/issues#1681

I think the role should be updated to accommodate this new expectation of the CLI, in one of these ways:

  • Add the option --no-checks to bypass the expectation
  • Add a task to run a diagnosis before installing the certificate (then even if the diagnosis result is not perfect, cert-install will accept to run as long as the domains have a valid DNS record)

I'm happy to PR the change, but I'm not sure which option makes most sense :)

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.