test.yml 480 B

1234567891011121314151617181920
  1. - hosts: all
  2. pre_tasks:
  3. - name: Ensure build dependencies are installed (RedHat).
  4. yum: 'name="{{ item }}" state=present'
  5. with_items:
  6. - curl
  7. - which
  8. when: ansible_os_family == 'RedHat'
  9. - name: Ensure build dependencies are installed (Debian).
  10. apt: 'name="{{ item }}" state=installed'
  11. with_items:
  12. - curl
  13. - which
  14. when: ansible_os_family == 'Debian'
  15. roles:
  16. - geerlingguy.git
  17. - role_under_test