Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Check OS Version
- fail:
- msg: "{{ ansible_distribution }} {{ ansible_distribution_version }} is not compatible with this role"
- when: ansible_distribution != 'Ubuntu' and ansible_distribution_release != 'trusty'
- # ansible-playbook /tmp/project/deploy/main.yml
- [WARNING]: provided hosts list is empty, only localhost is available
- PLAY [Deploy] ******************************************************************
- TASK [setup] *******************************************************************
- ok: [localhost]
- TASK [install-docker : Check OS Version] ***************************************
- skipping: [localhost]
- # lsb_release -a:
- root@vagrant-ubuntu-trusty-64:~# lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 14.04.5 LTS
- Release: 14.04
- Codename: trusty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement