feat: Initial roles
This commit is contained in:
28
justfile
28
justfile
@@ -1,13 +1,29 @@
|
||||
work_dir := "/tmp/hpa-playbook-tmp"
|
||||
[private]
|
||||
default:
|
||||
just --list
|
||||
|
||||
# Run the playbook with the passed in arguments.
|
||||
[group('plays')]
|
||||
run-playbook *ARGS:
|
||||
@ansible-playbook ./main.yml \
|
||||
--extra-vars output_dir={{work_dir}} \
|
||||
{{ARGS}}
|
||||
|
||||
# Run the repo-template option in the `dir` with the passed in arguements.
|
||||
[group('plays')]
|
||||
create-repo-template dir *ARGS:
|
||||
@just run-playbook \
|
||||
--tags repo-template \
|
||||
--extra-vars output_dir={{dir}} \
|
||||
{{ARGS}}
|
||||
|
||||
# Run the build-project option in the `dir` with the passed in arguements.
|
||||
[group('plays')]
|
||||
build-project dir *ARGS:
|
||||
@just run-playbook \
|
||||
--tags build-project \
|
||||
--extra-vars project_dir={{dir}} \
|
||||
{{ARGS}}
|
||||
|
||||
[group('test')]
|
||||
test *ARGS:
|
||||
@ansible-playbook ./test/test.yml {{ARGS}}
|
||||
|
||||
[group("utilities")]
|
||||
clean:
|
||||
@rm -rf {{work_dir}}
|
||||
|
||||
Reference in New Issue
Block a user