ansible-role-promtail icon indicating copy to clipboard operation
ansible-role-promtail copied to clipboard

fix: changed set_fact to uri call

Open HerbBoy opened this issue 1 year ago • 4 comments

Notes: The set_fact was causing the following error:

objc[18913]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.

this change corrects this whilst keeping the desired functionality.

HerbBoy avatar Mar 29 '23 06:03 HerbBoy

@HerbBoy

Unfortunately your change breaks compatibility with ansible 2.10 and 3.4 :

TASK [ansible-role-promtail : Get checksum for amd64 architecture] ************* fatal: [instance]: FAILED! => {"msg": "template error while templating string: No filter named 'split'.. String: {{ __promtail_checksums.content | split('\n') }}"}

Please see the failing tests

patrickjahns avatar Apr 04 '23 16:04 patrickjahns

@HerbBoy

Unfortunately your change breaks compatibility with ansible 2.10 and 3.4 :

TASK [ansible-role-promtail : Get checksum for amd64 architecture] ************* fatal: [instance]: FAILED! => {"msg": "template error while templating string: No filter named 'split'.. String: {{ __promtail_checksums.content | split('\n') }}"}

Please see the failing tests

Will look into alternatives. I am running the latest ver so forgot to check on whether it was compatible.

HerbBoy avatar Apr 05 '23 03:04 HerbBoy

how do we circumvent this error meanwhile?

dearlordylord avatar Aug 31 '23 08:08 dearlordylord

@Firfi

Please see upstream issue https://github.com/ansible/ansible/issues/76322 regarding this. The role works as designed

patrickjahns avatar Sep 06 '23 16:09 patrickjahns