unknown url type: "" when running init@homeserver.yml playing role tasks in init-server/install-pkgs.yml
#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is the full error return:
Note that more precisely, this was the result when running:
The versions of the files mentioned that were used during execution have not yet been pulled/pushed into this bare repo, yet.
It seems that the error was due to the task files of the
init-serverrole--as used in theinit@homeserver.ymlplay--having a semantically incorrect conditional case that their execution was contingent on.Specifically, setting task
whenattribute to something like${x} is definedor${x} is undefineddoesn't actually work despite what Ansible's Jinja2 documentation else. Surprisingly, using${x} is not Noneor${x} is Nonealso leads to errors.Turns out the solution is to instead use constructs like:
${x} != Noneor${x} == None.