Skip to content

Instantly share code, notes, and snippets.

@ipoddubny
Last active February 20, 2019 08:41
Show Gist options
  • Save ipoddubny/0443a0682d3c575a64cc607928f252af to your computer and use it in GitHub Desktop.
Save ipoddubny/0443a0682d3c575a64cc607928f252af to your computer and use it in GitHub Desktop.
ansible sngrep playbook
[irontec]
name=Irontec RPMs repository
baseurl=http://packages.irontec.com/centos/$releasever/$basearch/
---
- hosts: voip
tasks:
- name: create irontec yum repository for sngrep
copy: src=irontec.repo dest=/etc/yum.repos.d/irontec.repo owner=root group=root mode=0644
- name: rpm key for sngrep repo
rpm_key: state=present key=http://packages.irontec.com/public.key
- name: install sngrep
yum: name=sngrep state=latest
- name: add alias for sngrep in putty
lineinfile: dest=/root/.bashrc regexp=sngrep line="alias sngrep='NCURSES_NO_UTF8_ACS=1 sngrep'"
@gudge25
Copy link

gudge25 commented Feb 20, 2019

tasks:
- name: Add Sngrep repository
yum_repository:
name: irontec
description: Irontec RPMs repository
baseurl: http://packages.irontec.com/centos/$releasever/$basearch/
state: present
- name: rpm key for sngrep repo
rpm_key: state=present key=http://packages.irontec.com/public.key
- name: install sngrep
yum: name=sngrep state=latest #update_cache=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment