From a5dba0d9888482a448ce7f9ec75e4abf5798bcd4 Mon Sep 17 00:00:00 2001 From: salty Date: Tue, 23 Jul 2024 17:22:33 +0200 Subject: [PATCH] fetch saltbox.fact before running playbook --- sb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sb.py b/sb.py index be8bd8a..bf6d480 100644 --- a/sb.py +++ b/sb.py @@ -423,6 +423,9 @@ def update_saltbox(saltbox_repo_path, saltbox_playbook_file, verbosity=0): git_fetch_and_reset(saltbox_repo_path, "master", custom_commands=custom_commands) + # Always update saltbox.fact during update + download_and_install_saltbox_fact(always_update=True) + # Run Settings role with specified tags and skip-tags tags = ['settings'] skip_tags = ['sanity-check', 'pre-tasks'] @@ -436,9 +439,6 @@ def update_saltbox(saltbox_repo_path, saltbox_playbook_file, verbosity=0): print("Saltbox Commit Hash changed, updating tags cache.") asyncio.run(run_and_cache_ansible_tags(saltbox_repo_path, saltbox_playbook_file, "")) - # Always update saltbox.fact during update - download_and_install_saltbox_fact(always_update=True) - print("Saltbox Update Completed.")