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
domains.yml 450 B
Newer Older
---
- name: List currently installed domains
  shell: yunohost domain list --output-as json
  register: yunohost_installed_domains_raw
  changed_when: False

- name: Format json of domains
  set_fact: yunohost_installed_domains="{{ yunohost_installed_domains_raw.stdout | from_json }}"

- name: Create domains
  shell: yunohost domain add {{ item }}
  with_items: "{{ yunohost.extra_domains }}"
  when: item not in yunohost_installed_domains.domains