Patch for SSH issues after introducing qtip key 75/4875/1
authorNauman_Ahad <Nauman_Ahad@dell.com>
Fri, 18 Dec 2015 14:20:30 +0000 (19:20 +0500)
committerNauman_Ahad <Nauman_Ahad@dell.com>
Fri, 18 Dec 2015 14:20:30 +0000 (19:20 +0500)
Ansible issues for ssh for ssl
Made modifications to the ansible playbook file
Disabled sudo on the commands to be run on the local machine
Explicitly introduced the remote_user in the playbook

Change-Id: I547f48ac4a6f1dd4c0996bddda516896a8c3afb6
Signed-off-by: Nauman_Ahad <Nauman_Ahad@dell.com>
benchmarks/playbooks/ssl.yaml

index 21c2024..92f81e5 100644 (file)
@@ -1,11 +1,14 @@
  - hosts: 127.0.0.1
    connection: local
+   remote_user: '{{ ansible_env.USER }}'
+   sudo: no
    tasks:
     - name: making ssl directory
       file: path=../../{{Dest_dir}}/ssl state=directory
     - name: making temporary ssl directory
       file: path=../../{{Dest_dir}}/ssl/ssl_temp state=directory
  - hosts: "{{role}}"
+   remote_user: root
    tasks:
    
     - name: checking_home directory
@@ -70,6 +73,8 @@
 
  - hosts: 127.0.0.1
    connection: local
+   remote_user: '{{ ansible_env.USER }}'
+   sudo: no
    tasks:
     - name: extracting_json
       shell: ( find  ../../{{Dest_dir}}/ssl/ssl_temp/ -name "*.json" | xargs cp -t ../../{{Dest_dir}}/ssl/)
@@ -78,4 +83,4 @@
     - name: extracting_log
       shell: ( find ../../{{Dest_dir}}/ssl/ssl_temp/ -name "*.log"  | xargs cp -t ../../{{Dest_dir}}/ssl/logs)
     - name: removing ssl_temp
-      shell: rm -rf ../../{{Dest_dir}}/ssl/ssl_temp
\ No newline at end of file
+      shell: rm -rf ../../{{Dest_dir}}/ssl/ssl_temp