escalating priviledge from role
diff --git a/tasks/with_no_proxy.yml b/tasks/with_no_proxy.yml index 219e38a..b22bb33 100644 --- a/tasks/with_no_proxy.yml +++ b/tasks/with_no_proxy.yml
@@ -1,21 +1,22 @@ --- -- block: - - name: Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} - command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' - when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' - environment: - PORT_TIMEOUT: '{{ port_timeout | default(60) }}' - UP_TIMEOUT: '{{ up_timeout | default(60) }}' - - - name: DEBUG_MODE - Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} - command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' - when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' - environment: - PORT_TIMEOUT: '{{ port_timeout | default(60) }}' - UP_TIMEOUT: '{{ up_timeout | default(60) }}' - +- name: Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} become: yes + command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' + when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' + environment: + PORT_TIMEOUT: '{{ port_timeout | default(60) }}' + UP_TIMEOUT: '{{ up_timeout | default(60) }}' + +- name: DEBUG_MODE - Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} + become: yes + command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' + when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' + environment: + PORT_TIMEOUT: '{{ port_timeout | default(60) }}' + UP_TIMEOUT: '{{ up_timeout | default(60) }}' + - name: Wait for ready with no proxy + become: yes command: '{{ apigee_all }} wait_for_ready' when: validate_ready | default(true)
diff --git a/tasks/with_proxy.yml b/tasks/with_proxy.yml index d550a1e..86e982e 100644 --- a/tasks/with_proxy.yml +++ b/tasks/with_proxy.yml
@@ -1,5 +1,6 @@ --- - name: Install Apigee component for version {{ opdk_version }} or greater with proxy - {{ profile }} + become: yes command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' environment: http_proxy: "{{ http_proxy }}" @@ -8,6 +9,7 @@ when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' - name: DEBUG_MODE - Install Apigee component for version {{ opdk_version }} or greater with proxy - {{ profile }} + become: yes command: 'bash -x {{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' environment: http_proxy: "{{ http_proxy }}" @@ -16,6 +18,7 @@ when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' - name: Wait for ready with no proxy + become: yes command: '{{ apigee_all }} wait_for_ready' when: validate_ready | default(true)