~canonical-ci-engineering/ubuntu-ci-services-itself/ansible

« back to all changes in this revision

Viewing changes to docs/man/man1/ansible-vault.1

  • Committer: Package Import Robot
  • Author(s): Harlan Lieberman-Berg
  • Date: 2014-04-01 22:00:24 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20140401220024-jkxyhf2ggcv7xmqa
Tags: 1.5.4+dfsg-1
* Pull missing manpages from upstream development branch.
* New upstream version 1.5.4, security update.
* Add patch to correct directory_mode functionality. (Closes: #743027)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" t
 
2
.\"     Title: ansible-vault
 
3
.\"    Author: [see the "AUTHOR" section]
 
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
 
5
.\"      Date: 03/17/2014
 
6
.\"    Manual: System administration commands
 
7
.\"    Source: Ansible 1.6
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "ANSIBLE\-VAULT" "1" "03/17/2014" "Ansible 1\&.6" "System administration commands"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * Define some portability stuff
 
13
.\" -----------------------------------------------------------------
 
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
15
.\" http://bugs.debian.org/507673
 
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
 
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
18
.ie \n(.g .ds Aq \(aq
 
19
.el       .ds Aq '
 
20
.\" -----------------------------------------------------------------
 
21
.\" * set default formatting
 
22
.\" -----------------------------------------------------------------
 
23
.\" disable hyphenation
 
24
.nh
 
25
.\" disable justification (adjust text to left margin only)
 
26
.ad l
 
27
.\" -----------------------------------------------------------------
 
28
.\" * MAIN CONTENT STARTS HERE *
 
29
.\" -----------------------------------------------------------------
 
30
.SH "NAME"
 
31
ansible-vault \- manage encrypted YAML data\&.
 
32
.SH "SYNOPSIS"
 
33
.sp
 
34
ansible\-vault [create|decrypt|edit|encrypt|rekey] [\-\-help] [options] file_name
 
35
.SH "DESCRIPTION"
 
36
.sp
 
37
\fBansible\-vault\fR can encrypt any structured data file used by Ansible\&. This can include \fBgroup_vars/\fR or \fBhost_vars/\fR inventory variables, variables loaded by \fBinclude_vars\fR or \fBvars_files\fR, or variable files passed on the ansible\-playbook command line with \fB\-e @file\&.yml\fR or \fB\-e @file\&.json\fR\&. Role variables and defaults are also included!
 
38
.sp
 
39
Because Ansible tasks, handlers, and so on are also data, these can also be encrypted with vault\&. If you\(cqd like to not betray what variables you are even using, you can go as far to keep an individual task file entirely encrypted\&.
 
40
.SH "COMMON OPTIONS"
 
41
.sp
 
42
The following options are available to all sub\-commands:
 
43
.PP
 
44
\fB\-\-vault\-password\-file=\fR\fIFILE\fR
 
45
.RS 4
 
46
A file containing the vault password to be used during the encryption/decryption steps\&. Be sure to keep this file secured if it is used\&.
 
47
.RE
 
48
.PP
 
49
\fB\-h\fR, \fB\-\-help\fR
 
50
.RS 4
 
51
Show a help message related to the given sub\-command\&.
 
52
.RE
 
53
.PP
 
54
\fB\-\-debug\fR
 
55
.RS 4
 
56
Enable debugging output for troubleshooting\&.
 
57
.RE
 
58
.SH "CREATE"
 
59
.sp
 
60
\fB$ ansible\-vault create [options] FILE\fR
 
61
.sp
 
62
The \fBcreate\fR sub\-command is used to initialize a new encrypted file\&.
 
63
.sp
 
64
First you will be prompted for a password\&. The password used with vault currently must be the same for all files you wish to use together at the same time\&.
 
65
.sp
 
66
After providing a password, the tool will launch whatever editor you have defined with $EDITOR, and defaults to vim\&. Once you are done with the editor session, the file will be saved as encrypted data\&.
 
67
.sp
 
68
The default cipher is AES (which is shared\-secret based)\&.
 
69
.SH "EDIT"
 
70
.sp
 
71
\fB$ ansible\-vault edit [options] FILE\fR
 
72
.sp
 
73
The \fBedit\fR sub\-command is used to modify a file which was previously encrypted using ansible\-vault\&.
 
74
.sp
 
75
This command will decrypt the file to a temporary file and allow you to edit the file, saving it back when done and removing the temporary file\&.
 
76
.SH "REKEY"
 
77
.sp
 
78
*$ ansible\-vault rekey [options] FILE_1 [FILE_2, \&..., FILE_N]
 
79
.sp
 
80
The \fBrekey\fR command is used to change the password on a vault\-encrypted files\&. This command can update multiple files at once, and will prompt for both the old and new passwords before modifying any data\&.
 
81
.SH "ENCRYPT"
 
82
.sp
 
83
*$ ansible\-vault encrypt [options] FILE_1 [FILE_2, \&..., FILE_N]
 
84
.sp
 
85
The \fBencrypt\fR sub\-command is used to encrypt pre\-existing data files\&. As with the \fBrekey\fR command, you can specify multiple files in one command\&.
 
86
.SH "DECRYPT"
 
87
.sp
 
88
*$ ansible\-vault decrypt [options] FILE_1 [FILE_2, \&..., FILE_N]
 
89
.sp
 
90
The \fBdecrypt\fR sub\-command is used to remove all encryption from data files\&. The files will be stored as plain\-text YAML once again, so be sure that you do not run this command on data files with active passwords or other sensitive data\&. In most cases, users will want to use the \fBedit\fR sub\-command to modify the files securely\&.
 
91
.SH "AUTHOR"
 
92
.sp
 
93
Ansible was originally written by Michael DeHaan\&. See the AUTHORS file for a complete list of contributors\&.
 
94
.SH "COPYRIGHT"
 
95
.sp
 
96
Copyright \(co 2014, Michael DeHaan
 
97
.sp
 
98
Ansible is released under the terms of the GPLv3 License\&.
 
99
.SH "SEE ALSO"
 
100
.sp
 
101
\fBansible\fR(1), \fBansible\-pull\fR(1), \fBansible\-doc\fR(1)
 
102
.sp
 
103
Extensive documentation is available in the documentation site: http://docs\&.ansible\&.com\&. IRC and mailing list info can be found in file CONTRIBUTING\&.md, available in: https://github\&.com/ansible/ansible