Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. - name: Check OS Version
  2. fail:
  3. msg: "{{ ansible_distribution }} {{ ansible_distribution_version }} is not compatible with this role"
  4. when: ansible_distribution != 'Ubuntu' and ansible_distribution_release != 'trusty'
  5.  
  6. # ansible-playbook /tmp/project/deploy/main.yml
  7. [WARNING]: provided hosts list is empty, only localhost is available
  8.  
  9.  
  10. PLAY [Deploy] ******************************************************************
  11.  
  12. TASK [setup] *******************************************************************
  13. ok: [localhost]
  14.  
  15. TASK [install-docker : Check OS Version] ***************************************
  16. skipping: [localhost]
  17.  
  18. # lsb_release -a:
  19. root@vagrant-ubuntu-trusty-64:~# lsb_release -a
  20. No LSB modules are available.
  21. Distributor ID: Ubuntu
  22. Description: Ubuntu 14.04.5 LTS
  23. Release: 14.04
  24. Codename: trusty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement