Make use of yes/no booleans in playbooks

At the moment Ansible prefers yes/no for module booleans, however booleans in playbooks are still using True/False, rather than yes/no. This changes modifies boolean uses in playbooks (and man pages) to favor yes/no rather than True/False.

This change includes:

- Adaptation of documentation and examples to favor yes/no
- Modification to manpage output to favor yes/no (the docsite output already favors yes/no)
This commit is contained in:
Dag Wieers 2012-12-14 11:56:53 +01:00
commit 66fb7fd9de
12 changed files with 30 additions and 28 deletions

View file

@ -54,6 +54,8 @@ Ansible doesn't really use these too much, but you can also specify a
boolean value (true/false) in several forms::
---
create_key: yes
needs_agent: no
knows_oop: True
likes_emacs: TRUE
uses_cvs: false

View file

@ -88,14 +88,14 @@ Support for running things from sudo is also available::
---
- hosts: webservers
user: yourname
sudo: True
sudo: yes
You can also login as you, and then sudo to different users than root::
---
- hosts: webservers
user: yourname
sudo: True
sudo: yes
sudo_user: postgres
If you need to specify a password to sudo, run `ansible-playbook` with ``--ask-sudo-pass`` (`-K`).

View file

@ -67,7 +67,7 @@ write a task that looks like this::
- name: this will not be counted as a failure
action: command /bin/false
ignore_errors: True
ignore_errors: yes
Accessing Complex Variable Data
```````````````````````````````
@ -190,10 +190,10 @@ some other options, but otherwise works equivalently::
vars_prompt:
- name: "some_password"
prompt: "Enter password"
private: True
private: yes
- name: "release_version"
prompt: "Product release version"
private: False
private: no
Passing Variables On The Command Line
@ -543,7 +543,7 @@ can turn off fact gathering. This has advantages in scaling ansible in push mod
systems, mainly, or if you are using Ansible on experimental platforms. In any play, just do this::
- hosts: whatever
gather_facts: False
gather_facts: no
Pull-Mode Playbooks
```````````````````
@ -663,9 +663,9 @@ if you have a large number of hosts::
# set up the fireball transport
- hosts: all
gather_facts: False
gather_facts: no
connection: ssh # or paramiko
sudo: True
sudo: yes
tasks:
- action: fireball
@ -683,8 +683,8 @@ any platform. You will also need gcc and zeromq-devel installed from your packa
---
- hosts: all
sudo: True
gather_facts: False
sudo: yes
gather_facts: no
connection: ssh
tasks:
- action: easy_install name=pip