--- - hosts: biff roles: - role: lxc_guest vm_name: seafile vm_size: 30G distro: stretch - hosts: seafile tasks: - name: generate random password for seafile mysql user gen_passwd: length=16 register: random_seafile_db_pass - debug: var: random_seafile_db_pass.passwd vars: seafile_db_pass: "{{ random_seafile_db_pass.passwd }}" - hosts: seafile vars_files: - group_vars/seafile.yaml roles: - role: nginx - role: seafile.mysql - role: seafile