summaryrefslogtreecommitdiffstats
path: root/roles/contiv_facts/tasks/fedora-install.yml
blob: a57f6eb19b2ef1eea3839d846d6cfca71673d058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- name: Install dnf
  yum:
    name: dnf
    state: installed
  register: result
  until: result | success

- name: Update repo cache
  command: dnf update -y
  retries: 5
  delay: 10
  environment:
    https_proxy: "{{ https_proxy }}"
    http_proxy: "{{ http_proxy }}"
    no_proxy: "{{ no_proxy }}"

- name: Install libselinux-python
  command: dnf install {{ item }} -y
  with_items:
    - python-dnf
    - libselinux-python
  environment:
    https_proxy: "{{ https_proxy }}"
    http_proxy: "{{ http_proxy }}"
    no_proxy: "{{ no_proxy }}"