Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
0c00dcca
Commit
0c00dcca
authored
Mar 12, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2373 from dagwieers/doc-boolean
Fix the documentation booleans so they use "yes" and "no"
parents
77198b09
50b7964f
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
53 additions
and
37 deletions
+53
-37
library/cloudformation
+5
-3
library/cron
+3
-2
library/debug
+1
-0
library/django_manage
+2
-0
library/easy_install
+2
-1
library/ec2
+3
-2
library/ec2_vol
+1
-1
library/file
+1
-1
library/gem
+2
-2
library/git
+1
-1
library/group
+1
-1
library/hg
+2
-2
library/ini_file
+1
-1
library/lineinfile
+4
-3
library/macports
+2
-0
library/opkg
+2
-0
library/pacman
+2
-0
library/pip
+3
-2
library/rabbitmq_plugin
+2
-2
library/rabbitmq_user
+2
-2
library/rabbitmq_vhost
+2
-2
library/seboolean
+1
-1
library/subversion
+1
-1
library/sysctl
+2
-2
library/user
+5
-5
No files found.
library/cloudformation
View file @
0c00dcca
...
@@ -32,7 +32,8 @@ options:
...
@@ -32,7 +32,8 @@ options:
description:
description:
- If a stacks fails to form, rollback will remove the stack
- If a stacks fails to form, rollback will remove the stack
required: false
required: false
default: false
default: "no"
choices: [ "yes", "no" ]
aliases: []
aliases: []
template_parameters:
template_parameters:
description:
description:
...
@@ -63,7 +64,8 @@ options:
...
@@ -63,7 +64,8 @@ options:
description:
description:
- Wait while the stack is being created/updated/deleted.
- Wait while the stack is being created/updated/deleted.
required: false
required: false
default: true
default: "yes"
choices: [ "yes", "no" ]
aliases: []
aliases: []
examples:
examples:
...
@@ -72,7 +74,7 @@ examples:
...
@@ -72,7 +74,7 @@ examples:
- name: launch ansible cloudformation example
- name: launch ansible cloudformation example
cloudformation: >
cloudformation: >
stack_name="ansible-cloudformation" state=present
stack_name="ansible-cloudformation" state=present
region=us-east-1 disable_rollback=
true
region=us-east-1 disable_rollback=
yes
template=files/cloudformation-example.json
template=files/cloudformation-example.json
args:
args:
template_parameters:
template_parameters:
...
...
library/cron
View file @
0c00dcca
...
@@ -111,7 +111,8 @@ options:
...
@@ -111,7 +111,8 @@ options:
- If the job should be run at reboot, will ignore minute, hour, day, and month settings in favour of C(@reboot)
- If the job should be run at reboot, will ignore minute, hour, day, and month settings in favour of C(@reboot)
version_added: "1.0"
version_added: "1.0"
required: false
required: false
default: False
default: "no"
choices: [ "yes", "no" ]
aliases: []
aliases: []
examples:
examples:
...
@@ -119,7 +120,7 @@ examples:
...
@@ -119,7 +120,7 @@ examples:
description: Ensure a job that runs at 2 and 5 exists. Creates an entry like "* 5,2 * * ls -alh > /dev/null"
description: Ensure a job that runs at 2 and 5 exists. Creates an entry like "* 5,2 * * ls -alh > /dev/null"
- code: 'cron: name="an old job" cron job="/some/dir/job.sh" state=absent'
- code: 'cron: name="an old job" cron job="/some/dir/job.sh" state=absent'
description: 'Ensure an old job is no longer present. Removes any job that is preceded by "#Ansible: an old job" in the crontab'
description: 'Ensure an old job is no longer present. Removes any job that is preceded by "#Ansible: an old job" in the crontab'
- code: 'cron: name="a job for reboot" reboot=
True
job="/some/job.sh"'
- code: 'cron: name="a job for reboot" reboot=
yes
job="/some/job.sh"'
description: 'Creates an entry like "@reboot /some/job.sh"'
description: 'Creates an entry like "@reboot /some/job.sh"'
- code: 'cron: name="yum autoupdate" weekday="2" minute=0 hour=12 user="root" job="YUMINTERACTIVE=0 /usr/sbin/yum-autoupdate" cron_file=ansible_yum-autoupdate'
- code: 'cron: name="yum autoupdate" weekday="2" minute=0 hour=12 user="root" job="YUMINTERACTIVE=0 /usr/sbin/yum-autoupdate" cron_file=ansible_yum-autoupdate'
...
...
library/debug
View file @
0c00dcca
...
@@ -42,6 +42,7 @@ options:
...
@@ -42,6 +42,7 @@ options:
- A boolean that indicates whether the debug module should fail or not.
- A boolean that indicates whether the debug module should fail or not.
required: false
required: false
default: "no"
default: "no"
choices: [ "yes", "no" ]
examples:
examples:
- code: |
- code: |
- action: debug msg="System $inventory_hostname has uuid $ansible_product_uuid"
- action: debug msg="System $inventory_hostname has uuid $ansible_product_uuid"
...
...
library/django_manage
View file @
0c00dcca
...
@@ -64,6 +64,8 @@ options:
...
@@ -64,6 +64,8 @@ options:
description:
description:
- Fail the command immediately if a test fails. Used by the 'test' command.
- Fail the command immediately if a test fails. Used by the 'test' command.
required: false
required: false
default: "no"
choices: [ "yes", "no" ]
fixtures:
fixtures:
description:
description:
- A space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command.
- A space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command.
...
...
library/easy_install
View file @
0c00dcca
...
@@ -48,7 +48,8 @@ options:
...
@@ -48,7 +48,8 @@ options:
have any effect, the environment must be deleted and newly
have any effect, the environment must be deleted and newly
created.
created.
required: false
required: false
default: no
default: "no"
choices: [ "yes", "no" ]
virtualenv_command:
virtualenv_command:
version_added: 1.1
version_added: 1.1
description:
description:
...
...
library/ec2
View file @
0c00dcca
...
@@ -69,7 +69,8 @@ options:
...
@@ -69,7 +69,8 @@ options:
description:
description:
- wait for the instance to be in state 'running' before returning
- wait for the instance to be in state 'running' before returning
required: false
required: false
default: false
default: "no"
choices: [ "yes", "no" ]
aliases: []
aliases: []
wait_timeout:
wait_timeout:
description:
description:
...
@@ -129,7 +130,7 @@ options:
...
@@ -129,7 +130,7 @@ options:
default: null
default: null
aliases: []
aliases: []
examples:
examples:
- code: 'local_action: ec2 keypair=admin instance_type=m1.large image=emi-40603AD1 wait=
true
group=webserver count=3 group=webservers'
- code: 'local_action: ec2 keypair=admin instance_type=m1.large image=emi-40603AD1 wait=
yes
group=webserver count=3 group=webservers'
description: "Examples from Ansible Playbooks"
description: "Examples from Ansible Playbooks"
requirements: [ "boto" ]
requirements: [ "boto" ]
author: Seth Vidal, Tim Gerla, Lester Wade
author: Seth Vidal, Tim Gerla, Lester Wade
...
...
library/ec2_vol
View file @
0c00dcca
...
@@ -51,7 +51,7 @@ examples:
...
@@ -51,7 +51,7 @@ examples:
description: "Simple playbook example"
description: "Simple playbook example"
- code: |
- code: |
- name: Launch instances
- name: Launch instances
local_action: ec2 keypair=$keypair image=$image wait=
true
count=3
local_action: ec2 keypair=$keypair image=$image wait=
yes
count=3
register: ec2
register: ec2
- name: Create volumes and attach
- name: Create volumes and attach
local_action: ec2_vol instance=${item.id} volume_size=5
local_action: ec2_vol instance=${item.id} volume_size=5
...
...
library/file
View file @
0c00dcca
...
@@ -115,7 +115,7 @@ options:
...
@@ -115,7 +115,7 @@ options:
in the policy. Does nothing if no default value is available.
in the policy. Does nothing if no default value is available.
recurse:
recurse:
required: false
required: false
default:
no
default:
"no"
choices: [ "yes", "no" ]
choices: [ "yes", "no" ]
version_added: "1.1"
version_added: "1.1"
description:
description:
...
...
library/gem
View file @
0c00dcca
...
@@ -41,8 +41,8 @@ options:
...
@@ -41,8 +41,8 @@ options:
include_dependencies:
include_dependencies:
description: Wheter to include dependencies or not.
description: Wheter to include dependencies or not.
required: false
required: false
choices: [
true, false
]
choices: [
"yes", "no"
]
default:
true
default:
"yes"
repository:
repository:
description: The repository from which the gem will be installed
description: The repository from which the gem will be installed
required: false
required: false
...
...
library/git
View file @
0c00dcca
...
@@ -50,7 +50,7 @@ options:
...
@@ -50,7 +50,7 @@ options:
force:
force:
required: false
required: false
default: "yes"
default: "yes"
choices: [
yes, no
]
choices: [
"yes", "no"
]
version_added: "0.7"
version_added: "0.7"
description:
description:
- If C(yes), any modified files in the working
- If C(yes), any modified files in the working
...
...
library/group
View file @
0c00dcca
...
@@ -45,7 +45,7 @@ options:
...
@@ -45,7 +45,7 @@ options:
system:
system:
required: false
required: false
default: "no"
default: "no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
description:
description:
- If I(yes), indicates that the group created is a system group.
- If I(yes), indicates that the group created is a system group.
examples:
examples:
...
...
library/hg
View file @
0c00dcca
...
@@ -57,7 +57,7 @@ options:
...
@@ -57,7 +57,7 @@ options:
- Discards uncommited changes. Runs C(hg update -C).
- Discards uncommited changes. Runs C(hg update -C).
required: false
required: false
default: "yes"
default: "yes"
choices: [
yes, no
]
choices: [
"yes", "no"
]
purge:
purge:
description:
description:
- Delets untracked files. Runs C(hg purge). Note this requires C(purge) extension to
- Delets untracked files. Runs C(hg purge). Note this requires C(purge) extension to
...
@@ -65,7 +65,7 @@ options:
...
@@ -65,7 +65,7 @@ options:
and undo the changes before exiting the task.
and undo the changes before exiting the task.
required: false
required: false
default: "no"
default: "no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
notes:
notes:
- If the task seems to be hanging, first verify remote host is in C(known_hosts).
- If the task seems to be hanging, first verify remote host is in C(known_hosts).
SSH will prompt user to authorize the first contact with a remote host. One solution is to add
SSH will prompt user to authorize the first contact with a remote host. One solution is to add
...
...
library/ini_file
View file @
0c00dcca
...
@@ -56,7 +56,7 @@ options:
...
@@ -56,7 +56,7 @@ options:
- Create a backup file including the timestamp information so you can get
- Create a backup file including the timestamp information so you can get
the original file back if you somehow clobbered it incorrectly.
the original file back if you somehow clobbered it incorrectly.
required: false
required: false
default:
no
default:
"no"
choices: [ "yes", "no" ]
choices: [ "yes", "no" ]
others:
others:
description:
description:
...
...
library/lineinfile
View file @
0c00dcca
...
@@ -75,15 +75,16 @@ options:
...
@@ -75,15 +75,16 @@ options:
choices: [ 'BOF', '*regex*' ]
choices: [ 'BOF', '*regex*' ]
create:
create:
required: false
required: false
choices: [
yes, no
]
choices: [
"yes", "no"
]
default:
no
default:
"no"
description:
description:
- Used with C(state=present). If specified, the file will be created
- Used with C(state=present). If specified, the file will be created
if it does not already exist. By default it will fail if the file
if it does not already exist. By default it will fail if the file
is missing.
is missing.
backup:
backup:
required: false
required: false
default: no
default: "no"
choices: [ "yes", "no" ]
description:
description:
- Create a backup file including the timestamp information so you can
- Create a backup file including the timestamp information so you can
get the original file back if you somehow clobbered it incorrectly.
get the original file back if you somehow clobbered it incorrectly.
...
...
library/macports
View file @
0c00dcca
...
@@ -41,6 +41,8 @@ options:
...
@@ -41,6 +41,8 @@ options:
description:
description:
- update the package db first
- update the package db first
required: false
required: false
default: "no"
choices: [ "yes", "no" ]
notes: []
notes: []
'''
'''
EXAMPLES
=
'''
EXAMPLES
=
'''
...
...
library/opkg
View file @
0c00dcca
...
@@ -40,6 +40,8 @@ options:
...
@@ -40,6 +40,8 @@ options:
description:
description:
- update the package db first
- update the package db first
required: false
required: false
default: "no"
choices: [ "yes", "no" ]
notes: []
notes: []
'''
'''
EXAMPLES
=
'''
EXAMPLES
=
'''
...
...
library/pacman
View file @
0c00dcca
...
@@ -42,6 +42,8 @@ options:
...
@@ -42,6 +42,8 @@ options:
description:
description:
- update the package db first (pacman -Syy)
- update the package db first (pacman -Syy)
required: false
required: false
default: "no"
choices: [ "yes", "no" ]
author: Afterburn
author: Afterburn
notes: []
notes: []
...
...
library/pip
View file @
0c00dcca
...
@@ -56,7 +56,8 @@ options:
...
@@ -56,7 +56,8 @@ options:
have any effect, the environment must be deleted and newly
have any effect, the environment must be deleted and newly
created.
created.
required: false
required: false
default: no
default: "no"
choices: [ "yes", "no" ]
virtualenv_command:
virtualenv_command:
version_aded: 1.1
version_aded: 1.1
description:
description:
...
@@ -70,7 +71,7 @@ options:
...
@@ -70,7 +71,7 @@ options:
an older version of pip (< 1.0), you should set this to no because
an older version of pip (< 1.0), you should set this to no because
older versions of pip do not support I(--use-mirrors).
older versions of pip do not support I(--use-mirrors).
required: false
required: false
default:
yes
default:
"yes"
choices: [ "yes", "no" ]
choices: [ "yes", "no" ]
version_added: "1.0"
version_added: "1.0"
state:
state:
...
...
library/rabbitmq_plugin
View file @
0c00dcca
...
@@ -38,8 +38,8 @@ options:
...
@@ -38,8 +38,8 @@ options:
- Only enable missing plugins
- Only enable missing plugins
- Does not disable plugins that are not in the names list
- Does not disable plugins that are not in the names list
required: false
required: false
default:
no
default:
"no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
state:
state:
description:
description:
- Specify if pluginss are to be enabled or disabled
- Specify if pluginss are to be enabled or disabled
...
...
library/rabbitmq_user
View file @
0c00dcca
...
@@ -73,8 +73,8 @@ options:
...
@@ -73,8 +73,8 @@ options:
description:
description:
- Deletes and recreates the user.
- Deletes and recreates the user.
required: false
required: false
default:
no
default:
"no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
state:
state:
description:
description:
- Specify if user is to be added or removed
- Specify if user is to be added or removed
...
...
library/rabbitmq_vhost
View file @
0c00dcca
...
@@ -37,8 +37,8 @@ options:
...
@@ -37,8 +37,8 @@ options:
tracing:
tracing:
description:
description:
Enable/disable tracing for a vhost
Enable/disable tracing for a vhost
default:
no
default:
"no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
aliases: [trace]
aliases: [trace]
state:
state:
description:
description:
...
...
library/seboolean
View file @
0c00dcca
...
@@ -41,7 +41,7 @@ options:
...
@@ -41,7 +41,7 @@ options:
- Desired boolean value
- Desired boolean value
required: true
required: true
default: null
default: null
choices: [
"true", "false"
]
choices: [
true, false
]
examples:
examples:
- code: "seboolean: name=httpd_can_network_connect state=true persistent=yes"
- code: "seboolean: name=httpd_can_network_connect state=true persistent=yes"
description: Set I(httpd_can_network_connect) SELinux flag to I(true) and I(persistent)
description: Set I(httpd_can_network_connect) SELinux flag to I(true) and I(persistent)
...
...
library/subversion
View file @
0c00dcca
...
@@ -49,7 +49,7 @@ options:
...
@@ -49,7 +49,7 @@ options:
description:
description:
- If C(yes), modified files will be discarded. If C(no), module will fail if it encounters modified files.
- If C(yes), modified files will be discarded. If C(no), module will fail if it encounters modified files.
required: false
required: false
default:
yes
default:
"yes"
choices: [ "yes", "no" ]
choices: [ "yes", "no" ]
username:
username:
description:
description:
...
...
library/sysctl
View file @
0c00dcca
...
@@ -56,8 +56,8 @@ options:
...
@@ -56,8 +56,8 @@ options:
description:
description:
- if C(reload=yes), performs a I(/sbin/sysctl -p) if the C(sysctl_file) is updated
- if C(reload=yes), performs a I(/sbin/sysctl -p) if the C(sysctl_file) is updated
- if C(reload=no), does not reload I(sysctl) even if the C(sysctl_file) is updated
- if C(reload=no), does not reload I(sysctl) even if the C(sysctl_file) is updated
choices: [
yes, no
]
choices: [
"yes", "no"
]
default:
yes
default:
"yes"
sysctl_file:
sysctl_file:
description:
description:
- specifies the absolute path to C(sysctl.conf), if not /etc/sysctl.conf
- specifies the absolute path to C(sysctl.conf), if not /etc/sysctl.conf
...
...
library/user
View file @
0c00dcca
...
@@ -80,35 +80,35 @@ options:
...
@@ -80,35 +80,35 @@ options:
createhome:
createhome:
required: false
required: false
default: "yes"
default: "yes"
choices: [
yes, no
]
choices: [
"yes", "no"
]
description:
description:
- Unless set to C(no), a home directory will be made for the user
- Unless set to C(no), a home directory will be made for the user
when the account is created.
when the account is created.
system:
system:
required: false
required: false
default: "no"
default: "no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
description:
description:
- When creating an account, setting this to C(yes) makes the user a
- When creating an account, setting this to C(yes) makes the user a
system account. This setting cannot be changed on existing users.
system account. This setting cannot be changed on existing users.
force:
force:
required: false
required: false
default: "no"
default: "no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
description:
description:
- When used with C(state=absent), behavior is as with
- When used with C(state=absent), behavior is as with
C(userdel --force).
C(userdel --force).
remove:
remove:
required: false
required: false
default: "no"
default: "no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
description:
description:
- When used with C(state=absent), behavior is as with
- When used with C(state=absent), behavior is as with
C(userdel --remove).
C(userdel --remove).
generate_ssh_key:
generate_ssh_key:
required: false
required: false
default: "no"
default: "no"
choices: [
yes, no
]
choices: [
"yes", "no"
]
version_added: "0.9"
version_added: "0.9"
description:
description:
- Whether to generate a SSH key for the user in question.
- Whether to generate a SSH key for the user in question.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment