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.

27 lines
607 B

  1. ---
  2. - hosts: projects
  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: '4G'
  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. - include_role: name='ssh_server'
  16. - set_fact: ansible_connection='ssh'
  17. - hosts: projects
  18. roles:
  19. - role: dns_record
  20. - role: reverse_proxy
  21. hostname: projects
  22. - role: gitlab
  23. - hosts: status
  24. roles:
  25. - role: icinga2-monitoring