Commit 73e79429 authored by julian.gethmann's avatar julian.gethmann

Add ripgrep

parent 2863d594
......@@ -87,6 +87,11 @@ las120.las.kit.edu
las126.las.kit.edu
las-gethmann.las.kit.edu
[ripgrep]
las113.las.kit.edu
las-gethmann.las.kit.edu
las101.las.kit.edu
# semi stable
[local]
# 127.0.0.1 ansible_connection=local
......
- hosts: ripgrep
roles:
- ripgrep
---
# There is no good solution as far as I know, but a question on stackoverflow:
# https://stackoverflow.com/questions/42651026/ansible-dnf-module-enable-fedora-copr-repository
- name: activate copr
become: yes
command: dnf copr enable -y carlwgeorge/ripgrep
changed_when: false
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= 24)
tags: ripgrep
- name: install ripgrep
become: yes
dnf:
name: ripgrep
state: present
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version >= 24)
tags: ripgrep
# This needs to be done: TODO
# - name: activate copr
# become: yes
# yum_repository:
# name: copr
# https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/repo/epel-7/carlwgeorge-ripgrep-epel-7.repo
# state: present
# enabled: yes
# yum-config-manager --add-repo=https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/repo/epel-7/carlwgeorge-ripgrep-epel-7.repo
# when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == 7)
# tags: ripgrep
#
# - name: install ripgrep
# become: yes
# yum:
# name: ripgrep
# state: present
# when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == 7)
# tags: ripgrep
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment