Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Fix Environment on systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Mar 4, 2020
1 parent 1c7b881 commit 000f2c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/pulp/tasks/main.yml
Expand Up @@ -16,17 +16,18 @@
# pipefail is not needed due to grep's rc, but it resolves ansible-lint 306
shell: |
set -o pipefail
systemctl show-environment | grep -E '^PATH='
systemctl show-environment | grep -E '^PATH=' | sed 's/PATH=//g'
args:
# Debian defaults to bourne, but it doesn't understand pipefail.
executable: /bin/bash
changed_when: false
register: systemd_show_env_path
check_mode: yes
check_mode: false

- name: set the default system PATH as a fact
set_fact:
default_bin_path: "{{ systemd_show_env_path }}"
default_bin_path: "{{ systemd_show_env_path.stdout }}"


# Try multiple possible names for the rhel7 optional repo until it is found.
# The query ensures that a single string rather than a list of strings is valid.
Expand Down

0 comments on commit 000f2c1

Please sign in to comment.