Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
807 B

  1. ---
  2. - hosts: 'matrix'
  3. gather_facts: false
  4. tags:
  5. - 'lxc'
  6. tasks:
  7. - import_role: name='lxc_guest'
  8. vars:
  9. vm_name: '{{ inventory_hostname }}'
  10. vm_size: '2G'
  11. vg_name: '{{ hostvars[ansible_lxc_host]["vg_name"] }}'
  12. delegate_to: '{{ ansible_lxc_host }}'
  13. - set_fact: ansible_connection='ssh_lxc'
  14. - setup:
  15. - import_role: name='ssh_server'
  16. - set_fact: ansible_connection='ssh'
  17. - hosts: 'matrix'
  18. roles:
  19. - role: 'dns_record'
  20. - role: 'reverse_proxy'
  21. server_fqdns:
  22. - 'matrix.{{ domain }}'
  23. - 'riot.{{ domain }}'
  24. - role: 'coturn'
  25. - role: 'matrix-synapse'
  26. server_fqdn: 'matrix.{{ domain }}'
  27. - role: 'riot-web'
  28. server_fqdn: 'riot.{{ domain }}'
  29. - hosts: 'status'
  30. roles:
  31. - role: 'icinga2-monitoring'