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.

24 lines
532 B

  1. ---
  2. - hosts: biff
  3. roles:
  4. - role: lxc_guest
  5. vm_name: seafile
  6. vm_size: 30G
  7. distro: stretch
  8. - hosts: seafile
  9. tasks:
  10. - name: generate random password for seafile mysql user
  11. gen_passwd: length=16
  12. register: random_seafile_db_pass
  13. - debug:
  14. var: random_seafile_db_pass.passwd
  15. vars:
  16. seafile_db_pass: "{{ random_seafile_db_pass.passwd }}"
  17. - hosts: seafile
  18. vars_files:
  19. - group_vars/seafile.yaml
  20. roles:
  21. - role: nginx
  22. - role: seafile.mysql
  23. - role: seafile