Advertisement
Guest User

Untitled

a guest
Jul 13th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. ---
  2. - hosts: dockernodes
  3. remote_user: xxxxxxx
  4. become: yes
  5. become_method: sudo
  6. vars:
  7. ansible_become_pass: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  8. tasks:
  9. - name: Clean slate - uninstall old versions of Docker if any
  10. apt:
  11. name: "{{ item }}"
  12. state: absent
  13. with_items:
  14. - docker
  15. - docker-engine
  16. - docker.io
  17. - docker-compose
  18. - name: Update Repository Cache
  19. apt:
  20. update_cache: yes
  21. - name: Upgrade Ubuntu Distrbution (apt-get dist-upgrade)
  22. apt:
  23. upgrade: dist
  24. - name: Install Docker Dependancies
  25. apt:
  26. name: "{{ item }}"
  27. state: present
  28. with_items:
  29. - apt-transport-https
  30. - ca-certificates
  31. - curl
  32. - software-properties-common
  33.  
  34.  
  35.  
  36. TASK [Uninstall old versions of Docker] *********************************************************************************************************************************************************
  37. fatal: [192.168.12.231]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'item' is undefined\n\nThe error appears to have been in '/home/xxxx/playbooks/dockernodes/installdocker.yml': line 9, column 6, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Uninstall old versions of Docker\n ^ here\n"}
  38. fatal: [192.168.12.232]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'item' is undefined\n\nThe error appears to have been in '/home/xxxx/playbooks/dockernodes/installdocker.yml': line 9, column 6, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Uninstall old versions of Docker\n ^ here\n"}
  39. fatal: [192.168.12.233]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'item' is undefined\n\nThe error appears to have been in '/home/xxxxx/playbooks/dockernodes/installdocker.yml': line 9, column 6, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: Uninstall old versions of Docker\n ^ here\n"}
  40. to retry, use: --limit @/home/xxxx/playbooks/dockernodes/installdocker.retry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement