daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - name: Ensure external device has correct label
  2.   become: true
  3.   shell: e2label /dev/xvdf "dev-external" && e2label /dev/xvdf
  4.   register: device_label
  5.   retries: 15
  6.   delay: 5
  7.   until: device_label.stdout == "dev-external"
  8.  
  9. - name: Debug external device label soon after adding label
  10.   debug:
  11.     msg: "{{ device_label.stdout }}"
  12.  
  13. - name: Get external device label subsequently
  14.   become: true
  15.   shell: e2label /dev/xvdf
  16.   register: device_label_subsequently
  17.  
  18. - name: Debug external device label subsequently
  19.   debug:
  20.     msg: "{{ device_label_subsequently.stdout }}"
  21.    
  22. TASK [label-external-device : Ensure external device has correct label] ***
  23. changed: [<host_ip>]
  24.  
  25. TASK [label-external-device : Debug external device label soon after adding label] ***
  26. ok: [<host_ip>] => {
  27.     "msg": "dev-external"
  28. }
  29.  
  30. TASK [label-external-device : Get external device label subsequently] ***
  31. changed: [<host_ip>]
  32.  
  33. TASK [label-external-device : Debug external device label subsequently] ***
  34. ok: [<host_ip>] => {
  35.     "msg": ""
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top