Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: dockernodes
- remote_user: xxxxxxx
- become: yes
- become_method: sudo
- vars:
- ansible_become_pass: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- tasks:
- - name: Clean slate - uninstall old versions of Docker if any
- apt:
- name: "{{ item }}"
- state: absent
- with_items:
- - docker
- - docker-engine
- - docker.io
- - docker-compose
- - name: Update Repository Cache
- apt:
- update_cache: yes
- - name: Upgrade Ubuntu Distrbution (apt-get dist-upgrade)
- apt:
- upgrade: dist
- - name: Install Docker Dependancies
- apt:
- name: "{{ item }}"
- state: present
- with_items:
- - apt-transport-https
- - ca-certificates
- - curl
- - software-properties-common
- TASK [Uninstall old versions of Docker] *********************************************************************************************************************************************************
- 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"}
- 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"}
- 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"}
- to retry, use: --limit @/home/xxxx/playbooks/dockernodes/installdocker.retry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement