In my machine I have all envs in /etc/environment.
I need to load one env to run a systemd service with a config file with that env.
Here my ansible code
- name: Enable filebeat
  become: true
  systemd:
    name: filebeat
    enabled: true
  environment:
    HELK_ID
I also tried this one:
- name: Start filebeat
  become: true
  shell: |
    source /etc/environment
    systemctl import-environment {{ansible_env.HELK_ID}} && systemctl start filebeat
I always get an the error AnsibleUndefinedVariable: 'HELK_ID' is undefined"
What am I wrong?
