This document provides an overview of the Ansible automation tool in Japanese. It discusses Ansible's ability to configure Linux, Windows, network devices and cloud infrastructure. It also mentions Ansible modules for various services and platforms, and links to documentation resources for getting started with Ansible playbooks.
8. insr
8
l . srd in / c bjq
l c begu
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
w : - q
u : /- a b P . / c bo
. / / : : /- : .
mh a b f R tl c b o
a b Wa_c :/ py
17. Ansible 2.7.0 (2018/10/04mm N
" zr i n
l 4 4 :6 G 4 7A A
bo ne cP 0I A h b
l 2 A 9A : 4 5 6A A 0I A 4 5 7 A 7
i nP 4 m b s
f k s w
S S y l
l WP 3 1 . -
17
lCHANGELOG https://github.com/ansible/ansible/blob/stable-2.7/changelogs/CHANGELOG-v2.7.rst#v2-7-0
l go P t https://www.ansible.com/blog/the-release-of-red-hat-ansible-engine-2-7
ldabp uv W https://tekunabe.hatenablog.jp/entry/2018/10/04/ansible_27_nw
91
2 1 .
6 2
::::: . -
2 1
6 9
2 0 2
← l
SRSR
28. Playbook
28
---
- hosts: junos
gather_facts: no
connection: netconf
tasks:
- name: ntp config test
junos_config:
lines:
- set system ntp server 10.0.1.123
- name: config backup
junos_command:
commands:
- show configuration
register: result
- name: save config to file
copy:
content: "{{ result.stdout[0] }}"
dest: "show_config_{{ inventory_hostname }}.txt"
juons
SSH NETCONF
junos_config
NTP 10.0.1.123
junos_config show
copy
result 0
show_config_172.16.0.1.txt
show
result
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
29. Playbook
29
K7= 7 * E : CE6 . - -
0 @ E 6
3 2. E = 6
7 = : $ 6
3 2. E = 7 A 6
EA $ 6
3 2. 7K E = E 6
7 = : $ 6
0 1 0
$ EA 7 = : $ 7 7 7 :
K7= 7 * E : CE6
-i Playbook
junos
changed
show configuration
2
30. 30
c nlg nlg dlfhmX[]a _
1 L 0 LC > ADB D L L @ U DL L@
L@ L L @ L@ @ # # #
NW
: B 1>@ L @ ; > LC > ADB # # # #
6 L >C B@ . -" " -. . 874
@ LD # "5 # /
L L @
C L " @ L /
" C@ D> D
@ > @ " LL ##### /
LLC" L LLC" L 22223 ##### /
T
BD
L@ B
D /
####
L@ @ # # # /
T
T
D @ A >@L
B@" $ $
#####
Ansible
2
34. 34
l
l
l https://docs.ansible.com/
l Getting Started
l https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
l
l http://docs.ansible.com/ansible/modules_by_category.html
l
l https://github.com/ansible/lightbulb
l Ansible by Red Hat
l https://www.redhat.com/ja/explore/ansible
l
l Ansible 2
l https://book.impress.co.jp/books/1117101100
l Ansible
l https://www.shoeisha.co.jp/book/detail/9784798149943
35. 35
-/ / / ./ - //
l Ansible Night
l LT
l Ansible
l
l 10/18@
l https://ansible-users.connpass.com/event/104387/
l Slack (ansiblejp)
l http://bit.ly/slack-ansiblejp
/