updated with become
diff --git a/tasks/main.yml b/tasks/main.yml index c214457..aff6091 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -12,6 +12,7 @@ # value: "{{ group_status.state | lower == 'present' }}" - name: Create the apigee user + become: yes user: name: "{{ opdk_user_name }}" comment: "OPDK user" @@ -22,6 +23,7 @@ register: opdk_user_info - name: Prep known_hosts file for apigee user + become: yes copy: content: "{{ local_address }}" dest: '{{opdk_user_info.home}}/.ssh/known_hosts_prep' @@ -44,6 +46,7 @@ state: absent - name: Confirm that OPDK staging folder is in place + become: yes file: path: '{{ opdk_installer_path }}' state: directory @@ -58,6 +61,7 @@ register: installation_home_dir_state - name: Setup permission for apigee installation home directory + become: yes file: path: '{{ apigee_installation_home }}' group: '{{ opdk_group_name }}'