1
0
Fork 0
No description
Find a file
therojam c3f7b0355d switch -m (mail) was deprecated in favor of -d (--domaim)
also added example users w/ {{ domain }}
2021-05-01 18:33:45 +02:00
default Update main.yml 2020-05-12 17:18:37 +02:00
meta updated meta data 2021-05-01 17:24:41 +02:00
tasks switch -m (mail) was deprecated in favor of -d (--domaim) 2021-05-01 18:33:45 +02:00
LICENSE Initial commit 2017-08-23 12:42:15 +02:00
README.md switch -m (mail) was deprecated in favor of -d (--domaim) 2021-05-01 18:33:45 +02:00

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 frontend users. 
  users: 
    - name: user1 # user which uses the default domain for its account
      pass: p@ssw0rd
      firstname: Jane
      lastname: Doe
      domain: {{ domain }} 
    - name: user1 # user which uses the first extra_domain for its account
      pass: p@ssw0rd
      firstname: Jane
      lastname: Doe
      domain: {{ extra_domain.[1] }} 

Dependencies

None.

Example Playbook

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

  roles:
     - { role: sylvainar.yunohost }

License

GPL-3.0