Commit Graph

419 Commits (67eae347cd8c80c60c65435be9dbfb4530ea4548)

Author SHA1 Message Date
Michael DeHaan d51ec37a59 Add version added field to notification modules.
13 years ago
Michael DeHaan 9ca0289dee Fixup the module formatter to explain the EXAMPLES string as well.
13 years ago
Michael DeHaan 0748e86f0e Fix documentation about examples in modules so folks use the new style.
13 years ago
Matt Coddington 542eeeb5d6 add option to ignore $legacy variable style substitution
13 years ago
Michael DeHaan 8ef18c2f98 Don't set PasswordAuthentication=no here because the connection plugin will do that unless a password is actually specified with -k/--ask-pass.
13 years ago
Michael DeHaan 601c2db116 Add a note about where the playbook examples have moved to.
13 years ago
Michael DeHaan 5aad416ffe remove playbook examples from main repo. Fear not, these are now in the ansible/ansible-examples repo :)
13 years ago
Michael DeHaan 5342c35f7c Update zfs example
13 years ago
Michael DeHaan b4715cdb9c update user example
13 years ago
Michael DeHaan 8ac6c73803 Simplify description of upgraded_vars example
13 years ago
Michael DeHaan 4d8734f30c Update selective file sources example
13 years ago
Michael DeHaan ae810d3318 update role example
13 years ago
Michael DeHaan a911afaaf2 update roletest example
13 years ago
Michael DeHaan 4569713d88 Update register_logic example
13 years ago
Michael DeHaan 777dbc1048 Update rabbitmq example
13 years ago
Michael DeHaan 12755b8961 Update postgres and prompts examples.
13 years ago
Michael DeHaan 6ae99cdc7a update netscaler example
13 years ago
Michael DeHaan 8d0b8c70ce update with_items example
13 years ago
Michael DeHaan f57e57ba54 Update loop_plugins example
13 years ago
Michael DeHaan 79c2a34fa0 update nested example
13 years ago
Michael DeHaan bacb6644db update group_by example
13 years ago
Michael DeHaan ca822045e2 Update get_url example
13 years ago
Michael DeHaan b5339fe32e update eucalyptus/ec2 example
13 years ago
Michael DeHaan 264f527c98 update environment example
13 years ago
Michael DeHaan 1f93887e02 Update delegation example.
13 years ago
Michael DeHaan 3575a3374b This conditional example is no longer needed.
13 years ago
Michael DeHaan ebad0d4474 Update conditional examples.
13 years ago
Michael DeHaan 1365f0d6ab Start of making docs use {{ format }}
13 years ago
Afsin Toparlak 9699e086d7 typo
13 years ago
Michael DeHaan b8fdcff524 Merge branch 'nocows' of git://github.com/jpmens/ansible into devel
13 years ago
Michael DeHaan aa55268514 Adds a logfile for ansible playbooks that can be set by the environment or configuration file.
13 years ago
Michael DeHaan 1f96925159 Update role example to show tag usage
13 years ago
Jan-Piet Mens dfd885a012 Make ANSIBLE_NOCOWS configurable
13 years ago
Stoned Elipot e1ee257619 Default sudo password to SSH password.
13 years ago
Michael DeHaan 37789a852a Rename set_up and tear_down to pre_tasks and post_tasks
13 years ago
Michael DeHaan d7623d1f91 Added a 'set_up' and 'tear_down' which are like tasks, but execute before and after roles.
13 years ago
Michael DeHaan 3ab0ed5fd4 Allow 'when' and 'with_items' to be applied to roles.
13 years ago
Michael DeHaan f0b21dcc0f allow references to names of variables in with_items without needing to surround them with Jinja2 '{{' delimeters
13 years ago
Michael DeHaan fffb1a0a9d Loose tasks not in roles get executed after roles.
13 years ago
Michael DeHaan f044fc344b When using roles, or other includes, the path to DWIM inside is the path of the task include
13 years ago
Michael DeHaan 20ec682b30 Remove stray file
13 years ago
Michael DeHaan 5c4ed72571 Demo of parameterized roles!
13 years ago
Michael DeHaan f308194b9a Added examples of how roles work!
13 years ago
Michael DeHaan 94d189bc7f Make this example make sense :)
13 years ago
Michael DeHaan f585c4cde7 Upgraded variable support met with upgraded conditional support, see examples/playbooks/upgraded_vars.yml
13 years ago
willthames c4442ad804 Documented executable setting for ansible.cfg
13 years ago
Michael DeHaan df9e716208 Fix example
13 years ago
Michael DeHaan 0dbfa02f0c Example of how to do nested loops. 15 minutes of code :)
13 years ago
Nandor Sivok 2120580f7a netscaler module example playbook
13 years ago
Daniel Hokka Zakrisson baeb1bce11 Fix example crypt to include trailing $
13 years ago
Chris Hoffman 3104b79d35 Adding parameters example
13 years ago
James Martin fa63a9b5f4 CloudFormation support.
13 years ago
Mikael Zayenz Lagerkvist a5a0ab6b53 Fixed file-path in comment from examples.yml to intro_example.yml.
13 years ago
Michael DeHaan 1026fa6ab5 Merge pull request #2122 from lwade/devel
13 years ago
lwade 2dbe01ea7c Adding ec2-related module example to examples/playbooks
13 years ago
Michael DeHaan 8992fee2ab Correct documentation example, Snowball was a hampster.
13 years ago
Michael DeHaan 7da9992110 Add complex arguments example
13 years ago
Michael DeHaan cb3d26c500 Merge pull request #2084 from johanwiren/zfs
13 years ago
Michel Blanc 0cd0a7fda3 Fixes jina typos
13 years ago
Michel Blanc 1c22f2146e Adds configurable jinja2 extension loading
13 years ago
Johan Wirén 94813d38e6 Added zfs example playbook
13 years ago
Chris Hoffman 32c7fa7f70 Remove unneccesary quotes from user task
13 years ago
Michael DeHaan b2b1900765 minor aesthetics tweak
13 years ago
Michael DeHaan b1c739889c Add example of working with the environment
13 years ago
Michael DeHaan 790cc11f03 Change the 0.X part to not imply something new was added in 0.X something if a user forgets to put in a specific version in the module docs.
13 years ago
Matt Cordial 3284fd607f Add rabbitmq_vhost module.
13 years ago
Chris Hoffman 6f7855161c Adding rabbitmq modules
13 years ago
Daniel Hokka Zakrisson 5268d49bad Add sudo_flags configuration option to alter sudo behaviour
13 years ago
Daniel Hokka Zakrisson 53fd85e2c4 Merge pull request #1903 from leucos/mergeable-hash-vars
13 years ago
Francesc Esplugas c6629219d9 Update examples/playbooks/ansible_pull.yml
13 years ago
Michel Blanc e28e538c6e Adds user-selectable hash merging support in vars
13 years ago
Daniel Hokka Zakrisson a4b22b3a30 Merge pull request #1894 from ron1/devel
13 years ago
ron1 7d67ecfb2d Update examples/ansible.cfg with sudo_exe
13 years ago
Michael DeHaan ef38e9f0e6 Merge pull request #1875 from cocoy/vars_prompt_default
13 years ago
Rodney Quillo 7ae100611c Adding default on vars_prompt
13 years ago
fdavis a278a60c34 add filter_plugins to example ansible.cfg
13 years ago
Dag Wieers 66fb7fd9de Make use of yes/no booleans in playbooks
14 years ago
Michael DeHaan 3dc31a049f Merge pull request #1527 from fdavis/devel
14 years ago
fdavis b91896ff55 move scp_if_ssh to the ssh connection category
14 years ago
fdavis b1dbeec66c Allows use of scp instead of sftp in
14 years ago
Jeroen Hoekx 8ffed6df75 Support custom jinja2 filters.
14 years ago
Michael DeHaan 6f938c9f4c Merge branch 'playbook_ssh_ask_pass' of git://github.com/clatour/ansible into devel
14 years ago
Chandler Latour f436a8c88b Added config option for default ask for ssh_pass
14 years ago
Brian Coca 8d1ed566da corrected mizpells environment
14 years ago
Brian Coca 6877a88c7e added comment to example config to show usage of new sudo password asking option
14 years ago
Michael DeHaan cceb99acd5 Simplify the group_by example a small bit
14 years ago
Jeroen Hoekx b336d40101 Add a group_by action plugin.
14 years ago
Michael DeHaan 457cdb2be0 Add note about when you still have to use only_if
14 years ago
Michael DeHaan 21258dcc66 Added 'when' as a shortcut around only_if.
14 years ago
Michael DeHaan 7f6aa2d3d5 Config parameter rename
14 years ago
Michael DeHaan 6ba30170dd Make group_vars and host_vars available to usr/bin/ansible, and make vars_plugins exist
14 years ago
Jeremiah Heller 37bdefae74 add role_attr_flags parameter to postgresql_user
14 years ago
Michael DeHaan 7b6f8e485a refine example
14 years ago
Michael DeHaan 971dd53622 Added documentation on looping over with_* like fileglob
14 years ago
Michael DeHaan 7644dbe330 Update some examples to explain why notify is not used
14 years ago
Tim Bielawa 4b04d7a914 Add DOCUMENTATION for module documentation.
14 years ago
Jan-Piet Mens 9ed59da294 Allow user-specified $ansible_managed string with named parameters
14 years ago
Michael DeHaan 57c9534abb Simplify register example
14 years ago
Michael DeHaan 08b70949c7 Fix a test and a typo in an example
14 years ago
Matthew Johnson 0f5a4e2112 add logrotate config
14 years ago
Lorin Hochstein 869a97e1cb Fix comment in example config file.
14 years ago
Michael DeHaan f07772b74b update playbook example
14 years ago
Michael DeHaan b65a2dbd4d Merge pull request #952 from dagwieers/patch-1
14 years ago
Mark Theunissen bfe3e97e63 Update the example playbook for the new MySQL parameter format
14 years ago
Dag Wieers 30f4f83a4c Disable PasswordAuthentication when using -c ssh
14 years ago
Michael DeHaan 861c258856 Merge pull request #947 from elventear/postgresql_user
14 years ago
Pepe Barbe 6f3a507a54 typo
14 years ago
Pepe Barbe a2627e0b54 fix example
14 years ago
Michael DeHaan 9fa014f76d Fix uptime example in examples/scripts
14 years ago
Michael DeHaan ffdca762fa Add template example so I don't have to remember how it works
14 years ago
Michael DeHaan 1004e56d65 Moved inventory scripts to the ansible/ansible-plugins repo so they can be updated independent of release.
14 years ago
Michael DeHaan 5effbd4ff5 add note about 'local_action'
14 years ago
Grzegorz Nosek 76419a9fdf Point to the proper config file
14 years ago
Michael DeHaan 9aa41f075d Add examples of the 'serial' and 'delegate_to' keywords to examples/playbooks.
14 years ago
Michael DeHaan 9851066f4d Adding ability to set ssh args from config file
14 years ago
Michael DeHaan 1cadfcbf61 amend default library location in config file
14 years ago
Michael DeHaan 62fbbf7653 config file support
14 years ago
Michael DeHaan 05a128c2be Add ability to store and access module results later on in the play. See examples/playbooks/register_logic for details.
14 years ago
Michael DeHaan ce015fcaf8 add output of password step for easy testing
14 years ago
Rodney Quillo d1f821361d vars_prompt encrypt from mgw
14 years ago
Michael DeHaan 0810f26095 whitespace
14 years ago
Michael DeHaan a1b4123931 whitespace
14 years ago
Lorin Hochstein 5a109154f1 Rename: postgresql.yaml -> postgresql.yml
14 years ago
Lorin Hochstein dcd214a631 Use standard argument names in PostgreSQL modules
14 years ago
Michael DeHaan ee5f12cd40 Slight tweaks on vars_prompt upgrades
14 years ago
Petros Moisiadis c717934b7e Improved 'vars_prompt' syntax to support prompt text and (non-)private input
14 years ago
Michael DeHaan 8fa4dc3920 Small change to previous patch, make ranges of hosts inclusive.
14 years ago
Chin Fang e3b2521f01 Added a host expansion feature to ansible's inventory parsing
14 years ago
Michael DeHaan fdf14ec7ab fix module name in examples
14 years ago
Michael DeHaan 0b891fc8fb Tweaking daisychain internals to allow get_url to modify the path destination when downloading to a directory.
14 years ago
Michael DeHaan 46650cfcec Merge branch 'get_url3' of https://github.com/jpmens/ansible into devel
14 years ago
Jan-Piet Mens b8d7b5041b new module: get_url
14 years ago
Michael DeHaan 5a67a556cd Script to migrate YAML users to the INI format, so we can deprecate YAML inventory (which we are now doing).
14 years ago
Peter Sankauskas 3f17ad62cd Squashed commit of the following:
14 years ago
Michael DeHaan 279b5965b8 Much streamlining around setup steps in playbooks, now only run setup once per play.
14 years ago
Michael DeHaan 86c25fd82d Merge pull request #590 from marktheunissen/mysql
14 years ago
Mark Theunissen f47cc1693d The MySQL modules
14 years ago
Michael DeHaan bcd0001cb1 Bring the cobbler external inventory script up to date with current usage (--list, --host hostname)
14 years ago
Michael DeHaan 611e5b0c90 Make adding tags to a playbook work as shorthand to tagging all tasks in the play.
14 years ago
Michael DeHaan a765deccce Allow top level playbook files to import other playbook files, added some basic
14 years ago
Michael DeHaan 969c3feb13 Allow include statements from plays to specify tags (see tags.yml example file).
14 years ago
Michael DeHaan 83f23ef861 Basic support for tagging tasks and selecting a subset of tasks to run with --tags.
14 years ago
Michael DeHaan b9b53d1941 Playbook refactoring -- work in progress.
14 years ago
Michael DeHaan 9bb8e8e36d Don't use template syntax in non-templates, it's not the default anymore
14 years ago
Michael DeHaan 39e791a1d3 Log last execution of ansible-pull to /var/log/ansible-pull.log
14 years ago
Michael DeHaan adca320490 Change defaults so people have to make conscious decisions about pull setup.
14 years ago
Michael DeHaan a33320d03d Add some comments to ansible-pull and the example playbook
14 years ago
Stephen Fromm 23ff967f38 Copy inventory file to client
14 years ago
Stephen Fromm 3803b27f6c Add playbook and template to set up ansible-pull
14 years ago
Michael DeHaan 0d5bee2dfa Revert "Revert "Actually wait for password prompt in remote sudo execution. Totally breaks stderr debugging"
14 years ago
Michael DeHaan f939f3fdaf Playbook can now take a 'name' which it will show when starting the play
14 years ago
Michael DeHaan aa8ae85070 Add playbook example for first_available_file
14 years ago
Stephen Fromm bcfa6a7865 Add another example to file_secontext.yml
14 years ago
Stephen Fromm 0f044e64f8 Add example playbook of file module's selinux capabilities
14 years ago
Michael DeHaan 8a027415d0 Port shouldn't be in this example
14 years ago
Michael DeHaan 08468dcb0c Fixes to make ports DWIM.
14 years ago
Michael DeHaan 31d4ee32d1 Looping! With items! See examples/playbook/loop_with_items.yml for details
14 years ago
Michael DeHaan 2cb89c12e3 Add documentation for vars_prompt
14 years ago
Michael DeHaan 88dab0db2d Add prompts example
14 years ago
Michael DeHaan 2372a3b734 Sudo support operational in both playbooks and main program. Implementation could use some cleanup.
14 years ago
Michael DeHaan a05b75dbbb Merge pull request #101 from sfromm/user-module
14 years ago
Stephen Fromm c1e223c424 Remove errant option on password modification action
14 years ago
Stephen Fromm e851f7542f Update group_commands playbook example
14 years ago
Stephen Fromm 4ed971574f Update user_commands playbook with supplementary group examples
14 years ago
Stephen Fromm b373c6c223 Add playbook to demonstrate use of group module
14 years ago
Stephen Fromm 8592b3b40d Update user module to support group name
14 years ago
Michael DeHaan 292ac4aad2 Make it such that the 'name' element of each playbook line is optional.
14 years ago
Michael DeHaan 3814a46bbf Move playbook for user commands into examples dir
14 years ago
Michael DeHaan a8c921cbcc Allow groups to be passed to runner API to make parse_hosts optional, misc fixes as a result of refactoring in Runner.
14 years ago
Michael DeHaan fef73393f0 rename example files
14 years ago
Michael DeHaan d75e69853a No need to comment this part of the example out.
14 years ago
Michael DeHaan e6406fa5a7 Allow variable expressions to be stored as variables themselves, do some things to allow setup strings
14 years ago
Michael DeHaan a5f4ca50b8 Ratchet up logging a few notches prior to controlling w/ verbosity settings
14 years ago
Michael DeHaan b5c62ec068 Enhance logging, way to gate verbosity levels pending.
14 years ago
Michael DeHaan 54b98effdf Add demonstration of only_if capability
14 years ago
Michael DeHaan 64471db94a Remove test from bottom of example that doesn't really make sense in the context of the example's use case.
14 years ago
Michael DeHaan 4de7bbb169 Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive
14 years ago
Michael DeHaan b8eeb0f906 Add note about localhost/auth
14 years ago
Michael DeHaan 3d2a7ebd68 Added cobbler external inventory script, which is a demo of how external inventory
14 years ago
Michael DeHaan f200a467e7 Update example to use correct state name
14 years ago
Michael DeHaan f39944b89b Update example to use correct service state; minor pep8 indent/spacing fixes
14 years ago
Michael DeHaan f681425453 Rename hosts file back since included by MANIFEST.in
14 years ago
Michael DeHaan 2e1b59a9d2 restructure the examples directory
14 years ago
Michael DeHaan 09a7119e74 Annotate more files, fix missing imports messing with playbooks. Hey Tim, please test your stuff :)
14 years ago
Michael DeHaan 238fffd6ef Annotated playbook example
14 years ago
Michael DeHaan adf1492da2 Add external vars example
14 years ago
Michael DeHaan e582bd5ec5 Add fire and forget example
14 years ago
Michael DeHaan 86e19cd8c8 This adds async poll support to playbooks. See examples. Some more testing due + docs
14 years ago
Tim Bielawa dce6074a81 Fixes for better RPM packaging
14 years ago
Michael DeHaan 8e20ed3714 src= parameters for template and copy operations can be relative to the playbook (for /usr/bin/ansible-playbook) or current directory (for /usr/bin/ansible)
14 years ago
Michael DeHaan 4ee4ddcd7c Parameterized include statements can see top level variables and also be passed specific variables!
14 years ago
Michael DeHaan 8d57ceecf1 Factoids and push variables via setup are now available to be templated in command args
14 years ago
Michael DeHaan 8d06c074b1 * Added uptime.py as an example of somewhat minimal API usage & reporting
14 years ago
Michael DeHaan 1ed212513c Add user to playbook example so it's clear that this is available
14 years ago
Michael DeHaan ab408b0000 Ability to import task lists and handler lists from a top level playbook file. It is possible
14 years ago
Michael DeHaan e4304a0ac5 Make sure tempdirs are cleaned up after execution steps, fix notifiers, make sure
14 years ago
Michael DeHaan 5040c01640 rename 'pattern' to 'hosts' in playbook format.
14 years ago
Michael DeHaan 4ce1f1dd5e README/doc/example updates to go with group support and CLI option changes.
14 years ago
Michael DeHaan 155c3ca89e update playbook docs with updated syntax / minor edits
14 years ago
Michael DeHaan 1caafb7bd9 Stop evaluating a host in a playbook when it encounters the first failure.
14 years ago
Michael DeHaan ba4e36a9a9 Rename 'ensure' to 'state' because I think it's a bit cleaner and doesn't imply
14 years ago
Michael DeHaan 5781e6e02f Merge pull request #32 from tbielawa/DocsFixin
14 years ago
Tim Bielawa 6612772711 Update man pages. Fix formatting in playbook example. Also, YAML documents by definition start with '---', so I have added this to the example and the manpage
14 years ago
Michael DeHaan f7cff27f3d Drastically simply playbook syntax
14 years ago
Michael DeHaan 78a254fc52 In playbooks, each pattern stanza can reference it's own user to run as, so you can
14 years ago
Michael DeHaan 61d064d011 Fixed up KV munging in runner, misc fixes to copy, setup, and template modules
14 years ago
Michael DeHaan e5f62f20b1 make copy & template module take key/value parameters so we're consistent. Only the command
14 years ago
Michael DeHaan d308254eae A basic service module with 'ensure' idempotence semantics. Playbook updated to use service
14 years ago
Michael DeHaan 3c3111c1f3 Add optional hosts parameter to examples to show how we can
14 years ago
Michael DeHaan a5039eec62 Update reporting on playbook runs.
14 years ago
Michael DeHaan 79fdc1b6f4 Notifable handlers only run when something is changed. Awesome.
14 years ago
Michael DeHaan ba9468266f Can it get an easier? Yes it can! Further simply playbook format.
14 years ago
Michael DeHaan 6d0fd2bfde Compress the playbook format for readability
14 years ago
Michael DeHaan 6cceaa5f6a Implment copy with an actual minion-side module such that we can get md5sum's and
14 years ago
Michael DeHaan 5d6b0280d5 Added stub for template execution, WIP.
14 years ago
Michael DeHaan 102385e4ad Added a setup module which can be used to place key-value JSON data
14 years ago
Michael DeHaan 43f7dee247 Added rough sketch of what I want for playbook support. Debug heavy at the moment
14 years ago
Michael DeHaan 7730341d24 We don't have modules that list when things change just yet. I plan to handle
14 years ago
Michael DeHaan 381b3c971a Example for list of hosts syntax
14 years ago