sysdiglabs / agent-ansible-collection

Ansible collection to manage the Sysdig Agent
https://galaxy.ansible.com/ui/repo/published/sysdig/agent/
4 stars 0 forks source link

agent_install fails with: dragent.service: Job dragent.service/start failed with result 'dependency' #503

Open jvalderrama-magnolia opened 6 months ago

jvalderrama-magnolia commented 6 months ago

Trying to install the role sysdig.agent.agent_install I always have the next error when the dragent service is beign started in Ubuntu: dragent.service: Job dragent.service/start failed with result 'dependency'

Entire error trace:

TASK [sysdig.agent.agent_install : Start dragent Service] ******************************************************************************************************************************************************************************
fatal: [X.X.X.X]: FAILED! => {"changed": false, "msg": "Unable to start service dragent: A dependency job for dragent.service failed. See 'journalctl -xe' for details.\n"}

TASK [sysdig.agent.agent_install : Attempting to Start dragent Service with sysvinit] **************************************************************************************************************************************************
fatal: [X.X.X.X]: FAILED! => {"changed": false, "msg": "Could not find the requested service dragent: "}

PLAY RECAP *****************************************************************************************************************************************************************************************************************************
X.X.X.X              : ok=13   changed=5    unreachable=0    failed=1    skipped=7    rescued=1    ignored=0   

Ubuntu specifications

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

My project structure to use the ansible recipe is:

- sysdig-agent
   - meta
     main.yaml

main.yaml file

---
# Role variables https://galaxy.ansible.com/ui/repo/published/sysdig/agent/content/role/agent_install/
dependencies:
  - role: sysdig.agent.agent_install
    vars:
    configuration:
      monitoring: standard
      security: standard
      connection:
        access_key: <any_key>
        region: <any_region>
      agent:
        driver:
          install_build_dependencies: true
    features:
      monitoring:
        jmx:
          enabled: false

I have tested some variations but I got the same error always. Any help please?

mavimo commented 6 months ago

@jvalderrama-magnolia thanks for your feedback, I'll look into it ASAP.