Skip to content

Commit

Permalink
fetch saltbox.fact before running playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jul 23, 2024
1 parent 085254c commit a5dba0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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.")


Expand Down

0 comments on commit a5dba0d

Please sign in to comment.