Skip to content

Commit

Permalink
ansible: fix assert after breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Dec 5, 2023
1 parent a9fb8c8 commit 72f2c41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions roles/plex/tasks/subtasks/preferences/claim_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
- name: Claim Server | Assert {{ plex_name | title }} claim code exists
ansible.builtin.assert:
that:
- "plex_claim_code is defined"
- "plex_claim_code is not none"
- "plex_claim_code | trim | length > 0"
- plex_claim_code is defined
- plex_claim_code is not none
- plex_claim_code | trim | length > 0
quiet: true

- name: "Claim Server | Display {{ plex_name | title }} claim code"
Expand Down
2 changes: 1 addition & 1 deletion roles/sanity_check/tasks/subtasks/04_ansible_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- name: Ansible Tags | Ensure valid Ansible tag(s) were provided
ansible.builtin.assert:
that:
- '"{{ item }}" in available_ansible_tags.stdout_lines'
- item in available_ansible_tags.stdout_lines
msg: >-
You must supply valid tag(s)
(get a list of valid tags by running 'sb list')
Expand Down
2 changes: 1 addition & 1 deletion roles/settings/tasks/subtasks/finish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
that:
- accounts_yml.stat.exists
- accounts_yml.stat.checksum != accounts_yml_default.stat.checksum
- '"{{ user.domain }}" != "testsaltbox.ml"'
- user.domain != "testsaltbox.ml"
msg: "You must configure 'accounts.yml' before running the Saltbox installer"

0 comments on commit 72f2c41

Please sign in to comment.