▲ 14 r/ansible

Correct way to reference env vars moving forward?

[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: /Users/user/project/playbooks/agents/yoke-agent-setup.yml:5:11

3   hosts: my-host
4   environment:
5     PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}"
            ^ column 11

Use `ansible_facts["fact_name"]` (no `ansible_` prefix) instead.

This warning is seemingly misleading, as ansible_facts['env'] does not exist. ansible_env[...] is also being deprecated. What is the correct way to reference these moving forward?

reddit.com
u/stacktoodeep — 11 days ago

Track duration 0:00 after migrating from EngineDJ

I've just made the switch to Lexicon from EngineDJ. I synced everything into Lexicon, and now I have ~120 tracks (out of ~1000) where the duration is not set. I've tried reloading the tags (unchecked all the tags, I believe it should reload the duration still). Analyzing the tracks does nothing. They all play fine and had a duration in EngineDJ. What can I do to fix them?

reddit.com
u/stacktoodeep — 1 month ago

Any way to control git identity via Hermes?

Today my agent decided to start using Hermes agent git identity again (hermes@nousresearch.com). Is there any way to tell Hermes to use a different identity?

I've already configured git directly, and had no issues the last few weeks, then suddenly today it switched. Tempted to build some sort for git proxy to manage this, generally is a bit annoying to get it to do git stuff correctly, consistently.

reddit.com
u/stacktoodeep — 2 months ago