From 9841a946d159b1d486ffdf9cd81b37f627eaf87c Mon Sep 17 00:00:00 2001 From: Eli Zoller Date: Tue, 1 Sep 2020 09:32:10 -0700 Subject: [PATCH] conditional for different profile location in centos --- roles/internal/webserver-app/tasks/drupal.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/internal/webserver-app/tasks/drupal.yml b/roles/internal/webserver-app/tasks/drupal.yml index 80ce3f70..316a988c 100644 --- a/roles/internal/webserver-app/tasks/drupal.yml +++ b/roles/internal/webserver-app/tasks/drupal.yml @@ -113,3 +113,13 @@ line: 'PATH="$PATH:{{ webserver_document_root }}/drupal/vendor/bin"' state: present become: false + when: ansible_os_family == "Debian" + +- name: + lineinfile: + path: ~/bash.profile + line: 'PATH="$PATH:{{ webserver_document_root }}/drupal/vendor/bin"' + state: present + become: false + when: ansible_os_family == "RedHat" +