Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
README.md 1.63 KiB
Newer Older
  • Learn to ignore specific revisions
  • sylvainar's avatar
    sylvainar committed
    ansible-yunohost
    =========
    
    
    Deploy Yunohost with Ansible!
    
    sylvainar's avatar
    sylvainar committed
    
    Requirements
    ------------
    
    None.
    
    Role Variables
    --------------
    
    Example of Variables:
    ```yml
    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.
    
    sylvainar's avatar
    sylvainar committed
      domain: example.com
    
      extra_domains:
        - example2.com
        - example3.com
    
    sylvainar's avatar
    sylvainar committed
      # Yunohost admin password
      password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
      # If you don't want to use a noho.st url
      ignore_dyndns: False
    
    sylvainar's avatar
    sylvainar committed
      # 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
    
    sylvainar's avatar
    sylvainar committed
            domain: example.com
    
      # The list of frontend users. 
      users: 
        - name: user1 # user which uses the default domain for its account
    
    sylvainar's avatar
    sylvainar committed
          pass: p@ssw0rd
    
          firstname: Jane
          lastname: Doe
    
    therojam's avatar
    therojam committed
          domain: '{{ domain }}'
    
        - name: user2 # user which uses the first extra_domain for its account
    
    therojam's avatar
    therojam committed
          domain: '{{ extra_domain.[1] }}'
    
    sylvainar's avatar
    sylvainar committed
    ```
    
    Dependencies
    ------------
    
    None.
    
    Example Playbook
    ----------------
    ```yml
    - name: Provision servers
      hosts: all
      remote_user: root
      pre_tasks:
        - name: Update all packages and index
    
          ansible.builtin.apt:
    
    sylvainar's avatar
    sylvainar committed
            upgrade: dist
            update_cache: yes
    
      roles:
    
         - { role: sylvainar.yunohost }
    
    sylvainar's avatar
    sylvainar committed
    ```
    
    License
    -------
    
    GPL-3.0