Last active
February 20, 2019 08:41
-
-
Save ipoddubny/0443a0682d3c575a64cc607928f252af to your computer and use it in GitHub Desktop.
ansible sngrep playbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[irontec] | |
name=Irontec RPMs repository | |
baseurl=http://packages.irontec.com/centos/$releasever/$basearch/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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