Skip to content

Commit

Permalink
add fix for pyyaml install in amazon linux (#177)
Browse files Browse the repository at this point in the history
* add fix for pyyaml install in amazon linux

* add missing newline

* fix centos 7 pyyaml test

Co-authored-by: Uchinda Padmaperuma <[email protected]>
  • Loading branch information
uchinda-sph and Uchinda Padmaperuma authored May 18, 2022
1 parent f8429c3 commit 7cec955
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/configure_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
- nrinfragent_state != "absent"
- nrinfragent_os_name != 'windows'
- ansible_python_version is version('3.0', '>=')
- ansible_facts['os_family'] == 'Debian'

- name: ensure pyYAML is installed via pip
pip:
name: PyYAML
when:
- nrinfragent_state != "absent"
- nrinfragent_os_name != "windows"
- ansible_python_version is version('3.0', '>=')
- ansible_facts['os_family'] == 'RedHat'

- name: Stat newrelic-infra.yml config file
stat:
Expand Down

0 comments on commit 7cec955

Please sign in to comment.