gsoft-inc / ansible-role-azure-devops-agent

An Ansible role that installs and configures a Linux machine to be used as an Azure DevOps build or deployment agent.
59 stars 72 forks source link

agent version is not "modifyable" #34

Closed OckyKristanto-TomTom closed 3 years ago

OckyKristanto-TomTom commented 4 years ago

[Description] variable az_devops_agent_version is used to define agent version. However this version can only be used once and consecutive change will not take effect

[Possible root cause] if config.sh already present in the target node then this step will be skipped. Thus, the version number which embedded inside az_devops_agent_package_url is ignored. In the end, upgrade/downgrade agent is not doable without manually delete config.sh in the target node

- name: Download and unarchive
  unarchive:
    src: "{{ az_devops_agent_package_url }}"
    dest: "{{ az_devops_agent_folder }}"
    remote_src: yes
    owner: "{{ az_devops_agent_user }}"
    group: "{{ az_devops_agent_user }}"
    creates: "{{ az_devops_agent_folder }}/config.sh"
boldandbusted commented 3 years ago

Just confirming. I'd like to upgrade the version of the agent without needing to destroy the host or uninstall the agent manually. I'd prefer to be able to do an upgrade by bumping az_devops_agent_version. Thanks for this sweet Ansible role! 🗞️

yohanb commented 3 years ago

hey guys, sorry for the late reply. I'll have a look at this today.