diff --git a/.gitignore b/.gitignore index 7f411f6..893d187 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ .DS_Store /requirements.yml +/setup.yml diff --git a/justfile b/justfile index 488e575..d75d9ed 100644 --- a/justfile +++ b/justfile @@ -39,7 +39,7 @@ install-service service *extra_args: setup-all *extra_args: (run-tags "setup-all,start" extra_args) # Runs the playbook with the given list of arguments -run +extra_args: requirements-yml +run +extra_args: requirements-yml setup-yml ansible-playbook -i inventory/hosts setup.yml {{ extra_args }} # Runs the playbook with the given list of comma-separated tags and optional arguments @@ -66,3 +66,10 @@ requirements-yml: if [ ! -f "{{ justfile_directory() }}/requirements.yml" ]; then cp {{ justfile_directory() }}/requirements.all.yml {{ justfile_directory() }}/requirements.yml fi + +# Prepares the setup.yml file +setup-yml: + #!/usr/bin/env sh + if [ ! -f "{{ justfile_directory() }}/setup.yml" ]; then + cp {{ justfile_directory() }}/setup.all.yml {{ justfile_directory() }}/setup.yml + fi diff --git a/setup.yml b/setup.all.yml similarity index 100% rename from setup.yml rename to setup.all.yml