Introduction Ansible has been published

This time " 入門 Ansible a", we published in the Amazon.

Until now, there was no Japanese book on Ansible, but as Ansible's introductory position it was written aiming at understanding by reading this first.

I would like to thank the people who reviewed it in writing this book.

The contents are slightly long, but it is as follows.

  • Introduction
    • Characteristics of Ansible
    • Ansible is simple
    • Difference from Chef and Puppet
    • Ansible is "Better Shell Script"
  • Let's use Ansible
    • Installation
    • Inventory file
    • Module
  • Let's make a playbook
    • YAML grammar
    • I will write a playbook
    • Explanation of playbook
    • Task
    • Handler
    • Frequently used modules
  • Let's make complicated playbook
    • Repeat - with_items
    • Save the output and use it later - register
    • Conditional execution - when
    • Repeat until it succeeds - until
    • External information reference - lookup
    • Process variables - filter
    • Enter from the keyboard - vars_prompt
    • Run on management host - local_action
    • Change the module to be executed with a variable - action
    • Set environment variable - environment
    • Ignore it even if it fails - ignore_errors
    • Execute task asynchronously - async
  • Let's build a large playbook
    • Load another playbook - include
    • Recommended Directory Configuration - Best Practices
    • Collectively reuse - role
    • Parallel execution - fork
    • Run sequentially - serial
    • Cooperation with AWS EC 2
    • Dynamically create list of hosts - dynamic inventory
  • Let's use command line options
    • Ssh authentication
    • Limit target host - limit
    • Restrict the task to be executed - tag
    • Run dry - run - check
    • Run while confirming task - step
    • Difference display - diff
  • Encrypt variable file - ansible-vault
    • How to use ansible-vault
    • How to use encrypted files
  • Let's use the published role - Ansible Galaxy
    • What is Ansible Galaxy
    • How to search for role
    • Get the role
    • How to use role
  • FAQ
    • can not connect
    • ControlPath too long error
    • Even if it runs it stops halfway
    • I want to connect without inventory file
    • One playbook got complicated
    • I get an error called python not found
    • I want to use it with Windows
    • A strange picture appears in ansible-playbook
    • I want to know the variables collected by ansible
    • Invalid type <type 'list'>
    • "Syntax Error" appears when using variable
    • What does "---" mean?
    • What is the origin of the name Ansible?
  • in conclusion
  • Appendix : Writing your own module
    • Module behavior
    • Module type
    • Sample module
    • Useful functions in Python
    • Debugging modules
  • Appendix : Ansible Plugin
    • Types of plugins
    • Lookup plugin
    • Filter plugin
    • Callback plugin
    • Action plugin
    • Connection type plugin
    • Vars plugin
  • Appendix : Ansible config file
    • Default section
    • Paramiko section
    • Ssh_connection section
    • Accelerate section

Since it is "introductory", I introduce Ansible introduction, installation, commentary of YAML, etc. from the stage before beginning writing Ansible playbook. In addition, we make it possible to describe the basic playbook first, and then introduce complicated functions afterwards.

Saying that, as well as the details of the configuration file and the creation of modules and plugins are listed, I think that it will be satisfied for non-beginners as well.

sample

I'd like to see a glimpse of what kind of things ", so I will publish chapters 1 and 2 as samples.

入門Ansibleサンプル

Please note that this is PDF, so format is different from what you purchased on Amazon.

Issue Tracker

https://bitbucket.org/r_rudi/ansible-book/issues

We are publishing an issue tracker. When I find misspellings, mistakes, if you like, if you can register here I will fix it. Also, if there is a request to "Please explain this part more," I would like to reflect as much as possible if you can register.

Future plans

Three months later, we will correct the issues accepted by issue tracker, and we will also publish PDF and epub version at GumRoad. Of course, we plan to sell what we have continued to modify on Amazon.

Incidentally, there is no plan for paper making at the moment so far.

Other

  • I wrote completely with Sphinx only. As for this, it is separately.
  • We are looking for a person who can draw a picture of the cover ...