2 options
Mastering Ansible : design, develop, and solve real world automation and orchestration needs by unlocking the automation capabilities of Ansible / Jesse Keating.
- Format:
- Book
- Author/Creator:
- Keating, Jesse, author.
- Series:
- Community experience distilled.
- Community experience distilled
- Language:
- English
- Subjects (All):
- Ansible (Computer program language).
- Software configuration management.
- Open source software.
- Physical Description:
- 1 online resource (236 p.)
- Edition:
- 1st edition
- Place of Publication:
- Birmingham : Packt Publishing, 2015.
- System Details:
- text file
- Summary:
- Design, develop, and solve real world automation and orchestration needs by unlocking the automation capabilities of Ansible About This Book Discover how Ansible works in detail Explore use cases for Ansible’s advanced features including task delegation, fast failures, and serial task execution Extend Ansible with custom modules, plugins, and inventory sources Who This Book Is For This book is intended for Ansible developers and operators who have an understanding of the core elements and applications but are now looking to enhance their skills in applying automation using Ansible. What You Will Learn Understand Ansible’s code and logic flow Safeguard sensitive data within Ansible Access and manipulate complex variable data within Ansible playbooks Handle task results to manipulate change and failure definitions Organize Ansible content into a simple structure Craft a multi-tier rollout playbook utilizing load balancers and manipulating your monitoring system Utilize advanced Ansible features to orchestrate rolling updates with almost no service disruptions Troubleshoot Ansible failures to understand and resolve issues Extend Ansible with custom modules, plugins, or inventory sources In Detail Automation is critical to success in the world of DevOps. How quickly and efficiently an application deployment can be automated, or a new infrastructure can be built up, can be the difference between a successful product or a failure. Ansible provides a simple yet powerful automation engine. Beyond the basics of Ansible lie a host of advanced features which are available to help you increase efficiency and accomplish complex orchestrations with ease. This book provides you with the knowledge you need to understand how Ansible works at a fundamental level and leverage its advanced capabilities. You'll learn how to encrypt Ansible content at rest and decrypt data at runtime. You will master the advanced features and capabilities required to tackle the complex automation challenges of today and beyond. You will gain detailed knowledge of Ansible workflows, explore use cases for advanced features, craft well thought out orchestrations, troubleshoot unexpected behaviour, and extend Ansible through customizations. Finally, you will discover the methods used to examine and debug Ansible operations, helping you to understand and resolve issues. Style and approach A clear, practical guide that covers best practise, system architecture and design aspects that wil...
- Contents:
- Cover; Copyright; Credits; About the Author; Acknowledgment; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: System Architecture and Design of Ansible; Ansible version and configuration; Inventory parsing and data sources; The static inventory; Inventory variable data; Dynamic inventories; Run-time inventory additions; Inventory limiting; Playbook parsing; Order of operations; Relative path assumptions; Play behavior keys; Host selection for plays and tasks; Play and task names; Module transport and execution; Module reference; Module arguments
- Module transport and executionTask performance; Variable types and location; Variable types; Accessing external data; Variable precedence; Precedence order; Extra-vars; Connection variables; Most everything else; The rest of the inventory variables; Facts discovered about a system; Role defaults; Merging hashes; Summary; Chapter 2: Protecting Your Secrets with Ansible; Encrypting data at rest; Things Vault can encrypt; Creating new encrypted files; The password prompt; The password file; The password script; Encrypting existing files; Editing encrypted files
- Password rotation for encrypted filesDecrypting encrypted files; Executing ansible-playbook with Vault-encrypted files; Protecting secrets while operating; Secrets transmitted to remote hosts; Secrets logged to remote or local files; Summary; Chapter 3: Unlocking the Power of Jinja2 Templates; Control structures; Conditionals; Inline conditionals; Loops; Filtering loop items; Loop indexing; Macros; Macro variables; Data manipulation; Syntax; Useful built-in filters; default; count; random; round; Useful Ansible provided custom filters; Filters related to task status; shuffle
- Filters dealing with path namesBase64 encoding; Searching for content; Omitting undefined arguments; Python object methods; String methods; List methods; int and float methods; Comparing values; Comparisons; Logic; Tests; Summary; Chapter 4: Controlling Task Conditions; Defining a failure; Ignoring errors; Defining an error condition; Defining a change; Special handling of the command family; Suppressing a change; Summary; Chapter 5: Composing Reusable Ansible Content with Roles; Task, handler, variable, and playbook include concepts; Including tasks; Passing variable values to included tasks
- Passing complex data to included tasksConditional task includes; Tagging included tasks; Including handlers; Including variables; vars_files; Dynamic vars_files inclusion; include_vars; extra-vars; Including playbooks; Roles; Role structure; Tasks; Handlers; Variables; Modules; Dependencies; Files and templates; Putting it all together; Role dependencies; Role dependency variables; Tags; Role dependency conditionals; Role application; Mixing roles and tasks; Role sharing; Ansible Galaxy; Summary; Chapter 6: Minimizing Downtime with Rolling Deployments; In-place upgrades
- Expanding and contracting
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed January 4, 2016).
- ISBN:
- 9781784398248
- 1784398241
- OCLC:
- 931874532
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.