-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathinstallation-root.yml
41 lines (35 loc) · 1.09 KB
/
installation-root.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- name: Installation-root
hosts: testing_hosts_linux
become: true
gather_facts: true
pre_tasks:
- name: Initial cleanup
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
uninstall: true
fips_enabled: "{{ '-fips' in inventory_hostname }}"
tasks:
- name: Installation tests suite
vars:
agent_user: "root"
bin_mode: "0755"
block:
- name: Install agent
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
repo_endpoint: "http://nr-downloads-ohai-staging.s3-website-us-east-1.amazonaws.com/infrastructure_agent"
fips_enabled: "{{ '-fips' in inventory_hostname }}"
- name: Assert root
ansible.builtin.include_role:
name: caos.ansible_roles.assert_files
vars:
processes:
- name: newrelic-infra-service
owner: "{{ agent_user }}"
files:
- name: /usr/bin/newrelic-infra
permissions: "{{ bin_mode }}"
...