Open main menu

CDOT Wiki β

Changes

OPS435 Ansible

389 bytes added, 02:35, 24 November 2019
Part 2: Sample runs for some of the Ad hoc commands
}
</pre>
: 192.168.99.153 is the remote machine's IP address.
: "-m copy" tells ansible to use the copy module
: after '-a' is the arguments to the copy module, which specify the source file and the destination for the copy action.
: If you got the same "SUCCESS" message, login to the remote machine (in this example, it is 192.168.99.153) and check the directory "/tmp" for the file ansible.txt.
== Part 3: Sample runs for using some Ansible's built-in modules ==
1,760
edits