Skip to content

Commit

Permalink
update pinned pkg test with task
Browse files Browse the repository at this point in the history
  • Loading branch information
rajrohanyadav committed Jan 7, 2025
1 parent ef9463a commit b55455c
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions test/packaging/ansible/installation-pinned.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---

- name: installation-pinned
- name: Installation-pinned
hosts: testing_hosts_linux
become: true
gather_facts: yes
gather_facts: true

pre_tasks:
- name: Initial cleanup
include_role:
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
uninstall: true
Expand All @@ -18,16 +17,26 @@
target_agent_version: "1.57.1" # minimum version for ubuntu sles 15.6

block:

- name: install agent
include_role:
- name: Install agent
# when: "'-fips' not in inventory_hostname"
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
target_version: "{{ target_agent_version }}"
repo_endpoint: "http://nr-downloads-ohai-staging.s3-website-us-east-1.amazonaws.com/infrastructure_agent"

# TODO: https://new-relic.atlassian.net/browse/NR-355845 Uncomment when FIPS version is available for the minimum version
# - name: Install agent - FIPS
# when: "'-fips' in inventory_hostname"
# ansible.builtin.include_role:
# name: caos.ansible_roles.infra_agent
# vars:
# target_version: "{{ target_agent_version }}"
# repo_endpoint: "http://nr-downloads-ohai-staging.s3-website-us-east-1.amazonaws.com/infrastructure_agent"
# fips_enabled: true

- name: Assert version
include_role:
ansible.builtin.include_role:
name: caos.ansible_roles.assert_version
vars:
target_versions:
Expand Down

0 comments on commit b55455c

Please sign in to comment.