Changes between Version 6 and Version 7 of GENIExperimenter/Tutorials/GENIExperimentEngine/DesignSetup


Ignore:
Timestamp:
03/16/15 12:32:29 (4 years ago)
Author:
acb@cs.princeton.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/GENIExperimentEngine/DesignSetup

    v6 v7  
    4646Two basic concepts in Ansible are ''inventories'' and ''modules''.  An inventory is a list of hosts to be managed by Ansible, organized into groups.  When you run Ansible commands, either from the command-line or in a playbook, you specify the host group that the command should operate on.  In this way Ansible commands can operate on many hosts in parallel.  Take a look at the Ansible inventory in your '''ansible-hosts''' file.  This is basically the equivalent of the '''ssh-config''' except its specialized for Ansible.
    4747
    48 A command consists of a module and some arguments for the module.  A module provides a declarative abstraction on top of standard shell commands.  So for example, in the shell on an Ubuntu machine you might install package “foo” like this:
     48A ''task'' in Ansible consists of a module and some arguments for the module.  A module provides a declarative abstraction on top of standard shell commands.  So for example, in the shell on an Ubuntu machine you might install package “foo” like this:
    4949
    5050{{{
     
    5353}}}
    5454
    55 An equivalent Ansible command in a playbook would look like:
     55An equivalent Ansible task in a playbook would look like:
    5656
    5757{{{
    58 apt: name=foo state=latest update_cache=yes
     58- apt: name=foo state=latest update_cache=yes
    5959}}}
    6060
    61 Or the same Ansible command could be invoked directly on the command line like this:
     61Or the same Ansible task could be invoked directly on the command line like this:
    6262
    6363{{{
     
    6565}}}
    6666
    67 The command uses the '''apt''' module, and tells Ansible: “Make sure the latest version of package foo is installed”.  There are many other modules which are well-documented at http://docs.ansible.com.
     67The task uses the '''apt''' module, and tells Ansible: “Make sure the latest version of package foo is installed”.  There are many other modules which are well-documented at http://docs.ansible.com.
    6868
    6969== 4. Configure the Ansible controller for your slicelet ==