--- version: "3" set: [errexit, pipefail, nounset] shopt: [globstar] env: ANSIBLE_OPTIONS: --diff --become-method=doas -K ANSIBLE_PLAYBOOK: playbook.yml ANSIBLE_USER: ephase tasks: inventory: cmds: - ansible-inventory --graph -i inventory.ini dryrun: deps: - install:deps cmds: - | ansible-playbook -i inventory.ini \ --check {{.ANSIBLE_OPTIONS}} {{.ANSIBLE_PLAYBOOK}} \ -u {{ .ANSIBLE_USER }} run: deps: - install:deps cmds: - | ansible-playbook -i inventory.ini \ {{.ANSIBLE_OPTIONS}} {{.ANSIBLE_PLAYBOOK}} \ -u {{.ANSIBLE_USER}} install:deps: internal: true cmds: - | ansible-galaxy install \ --ignore-errors \ --roles-path="deps/" \ --role-file="requirements.yml" sources: - requirements.yaml