diff --git a/YAMLSyntax.html b/YAMLSyntax.html
index f027301ddd..c540418097 100644
--- a/YAMLSyntax.html
+++ b/YAMLSyntax.html
@@ -131,7 +131,7 @@ s.parentNode.insertBefore(ga, s);
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
The following examples show how to use /usr/bin/ansible for running ad hoc tasks. Start here.
For configuration management and deployments, you’ll want to pick up on @@ -255,19 +256,17 @@ simple scripts. They make the remote system look like you state, and run the com get it there. This is commonly referred to as ‘idempotence’, and is a core design goal of ansible. However, we also recognize that running ad hoc commands is equally important, so Ansible easily supports both.
Here’s another use case for the /usr/bin/ansible command line.
-Ansible can SCP lots of files to multiple machines in parallel, and -optionally use them as template sources.
+Here’s another use case for the /usr/bin/ansible command line. Ansible can SCP lots of files to multiple machines in parallel.
To transfer a file directly to many different servers:
$ ansible atlanta -m copy -a "src=/etc/hosts dest=/tmp/hosts"
If you use playbooks, you can also take advantage of the template module, -which takes this another step further.
+If you use playbooks, you can also take advantage of the template module, +which takes this another step further. (See module and playbook documentation).
The file module allows changing ownership and permissions on files. These -same options can be passed directly to the copy or template modules as well:
+same options can be passed directly to the copy module as well:$ ansible webservers -m file -a "dest=/srv/foo/a.txt mode=600"
$ ansible webservers -m file -a "dest=/srv/foo/b.txt mode=600 owner=mdehaan group=mdehaan"
$ ansible webservers -m file -a "dest=/path/to/c state=absent"
The mode, owner, and group arguments can also be used on the copy or template lines.
Any module other than copy or template can be -backgrounded. Typically you’ll be backgrounding long-running -shell commands or software upgrades only. Playbooks also support polling, and have -a simplified syntax for this.
+Typically you’ll be only be backgrounding long-running +shell commands or software upgrades only. Backgrounding the copy module does not do a background file transfer. Playbooks also support polling, and have a simplified syntax for this.
This will select the first 100, then the second 100, host entries in the webservers group. (It does not matter what their names or IP addresses are).
Both of these methods can be used at the same time, and ranges can also be passed to the –limit parameter.
++New in version 0.7.
+Ansible has an optional configuration file that can be used to tune settings and also eliminate the need to pass various command line flags. The config file location is controlled by the ANSIBLE_CONFIG environment variable, if set, otherwise ~/ansible.cfg or /etc/ansible/ansible.cfg will be loaded, whichever comes first. For those running from source, a sample configuration file lives in the examples/ directory. The RPM will install configuration into /etc/ansible/ansible.cfg automatically.
See also
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
See also
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
Congratulations. You’ve just contacted your nodes with Ansible. It’s -now time to read some of the more real-world Command Line, and explore +now time to read some of the more real-world Command Line Examples And Next Steps, and explore what you can do with different modules, as well as the Ansible Playbooks language. Ansible is not just about running commands, it also has powerful configuration management and deployment features. There’s more to @@ -369,7 +369,7 @@ explore, but you already have a fully working infrastructure!
See also
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.
© Copyright 2012 Michael DeHaan.
- Last updated on Aug 14, 2012.
+ Last updated on Aug 16, 2012.