[project]
org='seapath'
name='ansible'
flavors='prepare manual module_documentation lint format export'

[build]
command='check_yaml && ansible-lint -c ansible-lint.conf'

[prepare]
command='./prepare.sh'

[manual]
command='asciidoctor-pdf README.adoc OVS_configuration.adoc'

[module_documentation]
command='./generate_module_documentation.sh'

[lint]
command='ansible-lint'

[format]
command='ansible-lint --fix=yaml'

[export]
command="./prepare.sh && \
         tar czf /tmp/ansible-$(git describe --tags).tar.gz \
            --transform 's|^.|seapath-ansible|' \
            --exclude 'ansible*.tar.gz' \
            --exclude .git \
            . && \
         mv /tmp/ansible-*.tar.gz ."
