Basic config

ntfy_url: "https://ntfy.domain.tld"
ntfy_token: "[ntfy api token]"

Pull from Infisical

ntfy_url: "https://ntfy.domain.tld"
ntfy: "{{ lookup('infisical.vault.read_secrets', universal_auth_client_id='[machine id]', universal_auth_client_secret='[machine secret]', project_id='[project uuid]', path='/', env_slug='[prod]', secret_name='[ANSIBLE]', url='[https://secrets.domain.tld]') }}"
ntfy_token: "{{ ntfy.value }}"
  • [machine id] = Replace with the machine ID in Access Control Machine Identities [click on name] Client ID under Authentication
  • [machine secret] = Replace with the client secret in Access Control Machine Identities [click on name] `Client Secrets under Authentication
  • [project uuid] = Replace with the project UUID. This can be found in the URL bar of the project or navigate to [click on project] Project Settings Copy Project ID
  • [prod] = Replace with your environment slug. This will most likely remain prod
  • [ANSIBLE] = Replace with your secret name.
  • [https://secrets.domain.tld] = Replace with the URL you use to access Infisical.