OSDN Git Service
(root)
/
twpd
/
master.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Regular updates
[twpd/master.git]
/
ansible.md
diff --git
a/ansible.md
b/ansible.md
index
5a311d1
..
22d1431
100644
(file)
--- a/
ansible.md
+++ b/
ansible.md
@@
-1,12
+1,18
@@
---
title: Ansible
category: Ansible
---
title: Ansible
category: Ansible
+layout: 2017/sheet
---
{% raw %}
## Getting started
---
{% raw %}
## Getting started
+### About
+{: .-intro}
+
+- <https://www.ansible.com/>
+
### Hosts
$ sudo mkdir /etc/ansible
### Hosts
$ sudo mkdir /etc/ansible
@@
-20,7
+26,9
@@
category: Ansible
$ ansible-playbook playbook.yml
$ ansible-playbook playbook.yml
-## Tasks
+## Playbook files
+
+### Tasks
- hosts: all
user: root
- hosts: all
user: root
@@
-39,7
+47,7
@@
category: Ansible
handlers:
- include: db.yml user=timmy
handlers:
- include: db.yml user=timmy
-## Handlers
+##
#
Handlers
handlers:
- name: start apache2
handlers:
- name: start apache2
@@
-51,7
+59,7
@@
category: Ansible
notify:
- start apache2
notify:
- start apache2
-## Vars
+##
#
Vars
- host: lol
vars_files:
- host: lol
vars_files:
@@
-63,7
+71,7
@@
category: Ansible
file: state=directory path=${project_root}/home/.ssh/
only_if: "$vm == 0"
file: state=directory path=${project_root}/home/.ssh/
only_if: "$vm == 0"
-## Roles
+##
#
Roles
- host: xxx
roles:
- host: xxx
roles:
@@
-91,9
+99,4
@@
category: Ansible
vars:
local_home: "{{ lookup('env','HOME') }}"
vars:
local_home: "{{ lookup('env','HOME') }}"
-## References
-
- * [Intro](http://www.ansibleworks.com/docs/intro_configuration.html)
- * [Modules](http://www.ansibleworks.com/docs/modules.html)
-
{% endraw %}
{% endraw %}