mad8.yml 544 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
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
---
- name: install MAD-8
  dnf:
    name: "{{ item }}"
    state: installed
  become: yes
  with_items:
    - "MAD-8"
  when: (ansible_distribution == "Fedora" or ansible_distribution == "CentOS")

- name: Work around for dict issue 1/2
  lineinfile:
    line: 'set madpath="/usr/share"'
    regexp: 'set madpath=".*"'
    dest: /usr/bin/mad
    backup: yes
  become: yes

- name: Work around for dict issue 2/2
  lineinfile:
    line: 'set madbin="/usr/bin"'
    regexp: 'set madbin=".*"'
    dest: /usr/bin/mad
    backup: yes
  become: yes