  - name: Install packages to scan
    shell: apt -y install {{ packages_to_scan }} || true

  - name: Create configuration from template
    shell: "sed '{{conf_regex}}' {{mca_path}}/etc/flb.conf.in > {{mca_path}}/etc/flb.conf"

  - name: Scan directory
    shell: "{{binary}} /sbin {{flb}} {{flb_plugin}} {{flb_conf}} {{log}}"
    shell: "{{binary}} /bin {{flb}} {{flb_plugin}} {{flb_conf}} {{log}}"

  - name: "Build successful, connect to:"
    shell: "true"
