--- - name: Bootstrap Alpine Linux hosts: alpine gather_facts: false become: true tasks: - name: Install Python 3 ansible.builtin.raw: test -x /usr/bin/python3 || apk add --no-cache python3 register: bootstrap_python changed_when: bootstrap_python.stdout != "" - name: Provision VPS hosts: vps become: true roles: - role: base vars: hostname: "vps" username: "cmmm" nameservers: - "212.227.123.16" - "212.227.123.17" repositories: - "https://dl-cdn.alpinelinux.org/alpine/edge/main" - "https://dl-cdn.alpinelinux.org/alpine/edge/community" - "https://dl-cdn.alpinelinux.org/alpine/edge/testing" - "/home/cmmm/packages/testing" - role: fail2ban - role: nginx