Skip to content

Instantly share code, notes, and snippets.


Yiran Zhou zdyxry

View GitHub Profile
zdyxry /
Created Jul 7, 2018
Convert csv file to nested json file. Reference:
# MIT License
# Copyright (c) 2018 CK
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
zdyxry / rpm_check.yml
Created May 22, 2017
Check if some rpm is installed
View rpm_check.yml
#!/usr/bin/env ansible-playbook
- name: rpm_check
hosts: test_vm
- name: copy the_silver_searcher rpm
copy: src=/opt/the_silver_searcher-0.33.0-1.el7.x86_64.rpm dest=/opt/the_silver_searcher-0.33.0-1.el7.x86_64.rpm
- name: Check if ag.rpm is installed
command: rpm -q the_silver_searcher