summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/docker/tasks/docker-setup-rht.yml
blob: b8c9e3816e3d2813bd93981983f3ac36fdb0a83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- name: Install docker packages (rht family)
  package:
    state: present
    name: docker-io,docker-registry,python-docker-py,nginx

- name: Install netcat (Fedora)
  package:
    state: present
    name: nmap-ncat
  when: ansible_distribution == 'Fedora' or (ansible_os_family == 'RedHat' and ansible_distribution_version is version(7, '>='))

- name: Install netcat (RHEL)
  package:
    state: present
    name: nc
  when: ansible_distribution != 'Fedora' and (ansible_os_family == 'RedHat' and ansible_distribution_version is version(7, '<'))