Changes between Version 53 and Version 54 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
- Timestamp:
- 03/16/15 16:00:22 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
v53 v54 84 84 </td> 85 85 <td> 86 The following are some example Ansible Ad Hoc commands. You can run these commands one at a time from the machine where you have Ansible installed. `-s` tells Ansible to use `sudo` when executing the command. All modules are described in the <a href="http://docs.ansible.com/modules_by_category.html">Ansible Documentation</a> 86 The following are some example Ansible Ad Hoc commands. You can run these commands one at a time from the machine where you have Ansible installed. `-s` tells Ansible to use `sudo` when executing the command. All modules are described in the <a href="http://docs.ansible.com/modules_by_category.html">Ansible Documentation</a>. 87 87 </td> 88 88 </tr> … … 91 91 92 92 93 `apt` module is used to installed packages:93 [http://docs.ansible.com/apt_module.html `apt`] module is used to install packages using the `apt` package manager: 94 94 {{{ 95 95 #!sh … … 97 97 }}} 98 98 99 `command`module is used to execute an arbitrary shell command:99 [http://docs.ansible.com/command_module.html `command`] module is used to execute an arbitrary shell command: 100 100 {{{ 101 101 #!sh 102 102 ansible [-i inventory] [all/server/client] -s -m command -a "/usr/sbin/a2enmod status" 103 103 }}} 104 `file` module is used to manipulatefiles:104 [http://docs.ansible.com/file_module.html `file`] module is used to set attributes of files: 105 105 {{{ 106 106 #!sh