04.04.2020 Views

Mastering Ansible

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

E

encrypted files

ansible-playbook, encrypting with

Vault-encrypted files 43, 44

decrypting 42, 43

editing 40

existing files, encrypting 38, 39

new encrypted files, creating 35

password file 37

password prompt 36, 37

password rotation 41, 42

password script 38

errors

about 139

any_errors_fatal option 140, 141

handlers, forcing 144-147

max_fail_percentage option 142, 143

expand strategy 136-139

extra-vars 29

F

fact caching plugins 194

failure

defining 81

error condition, defining 83-87

errors, ignoring 81-83

filter

about 67

Base64 encoding 73, 74

basename filter 72

built-in filters 68

content, searching for 75

custom filters 69

dealing, with path names 71

dirname filter 72

expanduser filter 73

plugins 194, 195

shuffle 71

syntax 67

task status related 70

undefined arguments, omitting 76

H

handlers

including 107, 108

HAProxy behavior 6

I

included tasks

complex data, passing 101, 102

variable values, passing 99, 100

in-place upgrades 133-136

inventory

code, debugging 164-168

dynamic inventories 7, 8

limiting 9-12

parsing 3

run-time inventory additions 9

static inventory 3, 4

variables 26

variable data 4-7

L

local code

about 164

inventory code, debugging 164-168

Playbook code, debugging 168, 169

runner code, debugging 169-172

logic 79

lookup plugin 28, 193

loops

about 53, 54

indexing 55-57

items, filtering 54, 55

M

macros

about 58, 59

name 60

macros, variables

about 59, 60

arguments 61

caller 64-66

catch_kwargs 62

catch_varargs 63

defaults 61

name 60

max_fail_percentage option 142, 143

module

arguments 22, 24

[ 210 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!