OSDN Git Service

Regular updates
[twpd/master.git] / ansible.md
index 5a311d1..22d1431 100644 (file)
@@ -1,12 +1,18 @@
 ---
 title: Ansible
 category: Ansible
+layout: 2017/sheet
 ---
 
 {% raw %}
 
 ## Getting started
 
+### About
+{: .-intro}
+
+- <https://www.ansible.com/>
+
 ### Hosts
 
     $ sudo mkdir /etc/ansible
@@ -20,7 +26,9 @@ category: Ansible
 
     $ ansible-playbook playbook.yml
 
-## Tasks
+## Playbook files
+
+### Tasks
 
     - hosts: all
       user: root
@@ -39,7 +47,7 @@ category: Ansible
     handlers:
       - include: db.yml user=timmy
 
-## Handlers
+### Handlers
 
     handlers:
       - name: start apache2
@@ -51,7 +59,7 @@ category: Ansible
         notify:
           - start apache2
 
-## Vars
+### Vars
 
     - host: lol
       vars_files:
@@ -63,7 +71,7 @@ category: Ansible
           file: state=directory path=${project_root}/home/.ssh/
           only_if: "$vm == 0"
 
-## Roles
+### Roles
 
     - host: xxx
       roles:
@@ -91,9 +99,4 @@ category: Ansible
     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 %}