- hosts: workers gather_facts: True vars: share_root: "/share" selinux_state: enforcing vars_files: - vars/static-vars-{{ ansible_distribution | lower }}.yml - vars/samba.yml - vars/proftpd.yml - vars/smtplog.yml - vars/certificates.yml - vars/local.yml become: yes pre_tasks: - name: Check if the directory containing the bundle to install exists local_action: module: stat path: "{{ configs.deployment_dir }}" register: deployment_dir_exists become: no - fail: msg: Deployment directory does not exist {{ configs.deployment_dir }} when: deployment_dir_exists.stat.exists == False - name: Check if the license to install exists local_action: module: find path: "{{ configs.deployment_dir }}" patterns: "*.WibuCmRaU" file_type: file register: found_licenses become: no - fail: msg: No license file found in {{ configs.deployment_dir }} when: found_licenses.matched == 0 - name: List MFT packages local_action: module: find path: "{{ configs.deployment_dir }}" patterns: "tixstream-mft-*.tgz" file_type: file register: found_packages become: no - fail: msg: No MFT package found in {{ configs.deployment_dir }} when: found_packages.matched == 0 - name: Set global facts import_tasks: set-global-facts.yml roles: - role: mft - role: mft-codemeter - role: mft-setup-mariadb - role: mft-setup-smtplog - role: smtplog - role: mft-setup-nginx - role: mft-tls-enable - role: mft-create-certificates - role: mft-create-test-files - role: mft-restart-services - role: mft-create-nodes - role: mft-create-local-shares # vim:ft=ansible