Skip to content

Commit

Permalink
Add checks for installing missing requests_unixsocket
Browse files Browse the repository at this point in the history
  • Loading branch information
ruomeiy-splunk committed Apr 15, 2024
1 parent aafd019 commit f1046d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/splunk_common/tasks/install_python_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@
- name: Install missing requests_unixsocket
ansible.builtin.pip:
name: "requests_unixsocket"
when: requests_unixsocket_check is succeeded and (requests_unixsocket_check.stdout | length == 0 or requests_unixsocket_check.stdout.find("requests-unixsocket") == -1)

- name: Install missing requests_unixsocket PY3
ansible.builtin.pip:
name: "requests_unixsocket"
when: requests_unixsocket_check_py3 is succeeded and (requests_unixsocket_check_py3.stdout | length == 0 or requests_unixsocket_check_py3.stdout.find("requests-unixsocket") == -1)

0 comments on commit f1046d3

Please sign in to comment.