Opensourcetechブログ

OpensourcetechによるNGINX/Kubernetes/Zabbix/Neo4j/Linuxなどオープンソース技術に関するブログです。

8a1-APC勉強会-:【初心者向け】Ansibleではじめるサーバー・ネットワークの自動化』 に行ってきた! そして、Ansibleのインストール!!

 

こんにちは、鯨井貴博@opensourcetechです。

 

本日、Ansible勉強会@APコミニケーションズ に参加してきました。

 

『8a1-APC勉強会-:【初心者向け】Ansibleではじめるサーバー・ネットワークの自動化』を開催します | エーピーコミュニケーションズ(APC)

【初心者向け】Ansibleではじめるサーバー・ネットワークの自動化 - connpass

8a1-apc.connpass.com

 

初心者向けとのことで、

・Ansible のインストール

・WebサーバApache(httpd)の構築

・Junos(vSRX)へのコンフィグ投入

・その他、ノウハウや役に立つリンク紹介

と、「Ansibleを始めるきっかけがないな〜」と思っていたので、

とても参考になりました

 

 

 ということで、

忘れないうちに早速インストールだけでもやっておきます。

 

Ansibleのインストール

やることは、pipを使ってインストールするだけ。

ムッチャシンプルだ!

XYZ:~ xjapan$ pip install ansible
Collecting ansible
Downloading https://files.pythonhosted.org/packages/97/1b/13fe0d24588db0426c41be442d6d74bc861a72ed1338dfbce94e8082148d/ansible-2.6.3.tar.gz (10.7MB)
100% |████████████████████████████████| 10.8MB 2.9MB/s
Requirement already satisfied: jinja2 in ./anaconda3/lib/python3.6/site-packages (from ansible) (2.10)
Requirement already satisfied: PyYAML in ./anaconda3/lib/python3.6/site-packages (from ansible) (3.12)
Collecting paramiko (from ansible)
Downloading https://files.pythonhosted.org/packages/3e/db/cb7b6656e0e7387637ce850689084dc0b94b44df31cc52e5fc5c2c4fd2c1/paramiko-2.4.1-py2.py3-none-any.whl (194kB)
100% |████████████████████████████████| 194kB 7.2MB/s
Requirement already satisfied: cryptography in ./anaconda3/lib/python3.6/site-packages (from ansible) (2.2.2)
Requirement already satisfied: setuptools in ./anaconda3/lib/python3.6/site-packages (from ansible) (39.1.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./anaconda3/lib/python3.6/site-packages (from jinja2->ansible) (1.0)
Collecting pyasn1>=0.1.7 (from paramiko->ansible)
Downloading https://files.pythonhosted.org/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl (72kB)
100% |████████████████████████████████| 81kB 9.3MB/s
Collecting bcrypt>=3.1.3 (from paramiko->ansible)
Downloading https://files.pythonhosted.org/packages/7e/59/d48fd712941da1a5d6490964a37bb3de2e526965b6766273f6a7049ee590/bcrypt-3.1.4-cp36-cp36m-macosx_10_6_intel.whl (51kB)
100% |████████████████████████████████| 61kB 16.8MB/s
Collecting pynacl>=1.0.1 (from paramiko->ansible)
Downloading https://files.pythonhosted.org/packages/74/8e/a6c0d340972d9e2f1a405aaa3f2460950b4c0337f92db0291a4355974529/PyNaCl-1.2.1-cp36-cp36m-macosx_10_6_intel.whl (243kB)
100% |████████████████████████████████| 245kB 8.5MB/s
Requirement already satisfied: idna>=2.1 in ./anaconda3/lib/python3.6/site-packages (from cryptography->ansible) (2.6)
Requirement already satisfied: asn1crypto>=0.21.0 in ./anaconda3/lib/python3.6/site-packages (from cryptography->ansible) (0.24.0)
Requirement already satisfied: six>=1.4.1 in ./anaconda3/lib/python3.6/site-packages (from cryptography->ansible) (1.11.0)
Requirement already satisfied: cffi>=1.7 in ./anaconda3/lib/python3.6/site-packages (from cryptography->ansible) (1.11.5)
Requirement already satisfied: pycparser in ./anaconda3/lib/python3.6/site-packages (from cffi>=1.7->cryptography->ansible) (2.18)
Building wheels for collected packages: ansible
Running setup.py bdist_wheel for ansible ... done
Stored in directory: /Users/xjapan/Library/Caches/pip/wheels/aa/55/03/f33988e2533ea04056a2bf2636a5bf645bd4a3d2665151d3f2
Successfully built ansible
Installing collected packages: pyasn1, bcrypt, pynacl, paramiko, ansible
Successfully installed ansible-2.6.3 bcrypt-3.1.4 paramiko-2.4.1 pyasn1-0.4.4 pynacl-1.2.1
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
XYZ:~ xjapan$ pip list
Package Version
---------------------------------- ---------
absl-py 0.2.2
alabaster 0.7.10
anaconda-client 1.6.14
anaconda-navigator 1.8.7
anaconda-project 0.8.2
ansible 2.6.3    <--------------入った!!
appnope 0.1.0
appscript 1.0.1
asn1crypto 0.24.0
astor 0.7.1
astroid 1.6.3
astropy 3.0.2
attrs 18.1.0
Babel 2.5.3
backcall 0.1.0
backports.shutil-get-terminal-size 1.0.0
bcrypt 3.1.4
beautifulsoup4 4.6.0
bitarray 0.8.1
bkcharts 0.2
blaze 0.11.3
bleach 2.1.3
bokeh 0.12.16
boto 2.48.0
Bottleneck 1.2.1
certifi 2018.4.16
cffi 1.11.5
chardet 3.0.4
click 6.7
cloudpickle 0.5.3
clyent 1.2.2
colorama 0.3.9
conda 4.5.4
conda-build 3.10.5
conda-verify 2.0.0
contextlib2 0.5.5
cryptography 2.2.2
cycler 0.10.0
Cython 0.28.2
cytoolz 0.9.0.1
dask 0.17.5
datashape 0.5.4
decorator 4.3.0
distributed 1.21.8
docutils 0.14
entrypoints 0.2.3
et-xmlfile 1.0.1
fastcache 1.0.2
filelock 3.0.4
Flask 1.0.2
Flask-Cors 3.0.4
gast 0.2.0
gevent 1.3.0
glob2 0.6
gmpy2 2.0.8
greenlet 0.4.13
grpcio 1.13.0
h5py 2.7.1
heapdict 1.0.0
html5lib 1.0.1
idna 2.6
imageio 2.3.0
imagesize 1.0.0
ipykernel 4.8.2
ipython 6.4.0
ipython-genutils 0.2.0
ipywidgets 7.2.1
isort 4.3.4
itsdangerous 0.24
jdcal 1.4
jedi 0.12.0
Jinja2 2.10
jsonschema 2.6.0
jupyter 1.0.0
jupyter-client 5.2.3
jupyter-console 5.2.0
jupyter-core 4.4.0
jupyterlab 0.32.1
jupyterlab-launcher 0.10.5
kiwisolver 1.0.1
lazy-object-proxy 1.3.1
llvmlite 0.23.1
locket 0.2.0
lxml 4.2.1
Markdown 2.6.11
MarkupSafe 1.0
matplotlib 2.2.2
mccabe 0.6.1
mistune 0.8.3
mkl-fft 1.0.0
mkl-random 1.0.1
more-itertools 4.1.0
mpmath 1.0.0
msgpack 0.5.6
msgpack-python 0.5.6
multipledispatch 0.5.0
navigator-updater 0.2.1
nbconvert 5.3.1
nbformat 4.4.0
networkx 2.1
nltk 3.3
nose 1.3.7
notebook 5.5.0
numba 0.38.0
numexpr 2.6.5
numpy 1.14.3
numpydoc 0.8.0
odo 0.5.1
olefile 0.45.1
openpyxl 2.5.3
packaging 17.1
pandas 0.21.0
pandas-datareader 0.6.0
pandocfilters 1.4.2
paramiko 2.4.1
parso 0.2.0
partd 0.3.8
path.py 11.0.1
pathlib2 2.3.2
patsy 0.5.0
pep8 1.7.1
pexpect 4.5.0
pickleshare 0.7.4
Pillow 5.1.0
pip 10.0.1
pkginfo 1.4.2
pluggy 0.6.0
ply 3.11
prompt-toolkit 1.0.15
protobuf 3.6.0
psutil 5.4.5
ptyprocess 0.5.2
py 1.5.3
pyasn1 0.4.4
pycodestyle 2.4.0
pycosat 0.6.3
pycparser 2.18
pycrypto 2.6.1
pycurl 7.43.0.1
pyflakes 1.6.0
Pygments 2.2.0
pylint 1.8.4
PyNaCl 1.2.1
pyodbc 4.0.23
pyOpenSSL 18.0.0
pyparsing 2.2.0
PySocks 1.6.8
pytest 3.5.1
pytest-arraydiff 0.2
pytest-astropy 0.3.0
pytest-doctestplus 0.1.3
pytest-openfiles 0.3.0
pytest-remotedata 0.2.1
python-dateutil 2.7.3
pytz 2018.4
PyWavelets 0.5.2
PyYAML 3.12
pyzmq 17.0.0
QtAwesome 0.4.4
qtconsole 4.3.1
QtPy 1.4.1
requests 2.18.4
requests-file 1.4.3
requests-ftp 0.3.1
rope 0.10.7
ruamel-yaml 0.15.35
scikit-image 0.13.1
scikit-learn 0.19.1
scipy 1.1.0
seaborn 0.8.1
Send2Trash 1.5.0
setuptools 39.1.0
simplegeneric 0.8.1
singledispatch 3.4.0.3
six 1.11.0
snowballstemmer 1.2.1
sortedcollections 0.6.1
sortedcontainers 1.5.10
Sphinx 1.7.4
sphinxcontrib-websupport 1.0.1
spyder 3.2.8
SQLAlchemy 1.2.7
statsmodels 0.9.0
sympy 1.1.1
tables 3.4.3
tblib 1.3.2
tensorboard 1.9.0
tensorflow 1.9.0
termcolor 1.1.0
terminado 0.8.1
testpath 0.3.1
toolz 0.9.0
tornado 5.0.2
traitlets 4.3.2
typing 3.6.4
unicodecsv 0.14.1
urllib3 1.22
wcwidth 0.1.7
webencodings 0.5.1
Werkzeug 0.14.1
wheel 0.31.1
widgetsnbextension 3.2.1
wrapt 1.10.11
xlrd 1.1.0
XlsxWriter 1.0.4
xlwings 0.11.8
xlwt 1.2.0
zict 0.1.3
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

 

 

インストールできたので、

LinuxやJunosやら、色々と絡めて使ってみようと思います!!

 

「pip(python)が入ってないよ!」という方は、

以下などが参考になるかもです♪

opensourcetech.hatenablog.jp

 

 

 

 

 

 

www.slideshare.net

github.com

www.facebook.com

twitter.com

www.instagram.com

 

 

にほんブログ村 IT技術ブログ Linuxへ
Linux

にほんブログ村 IT技術ブログ オープンソースへ
オープンソース

 

 

Opensourcetech by Takahiro Kujirai