Changes

Jump to: navigation, search

OPS435 Ansible

25 bytes added, 01:33, 22 November 2019
Key Concepts when using Ansible
*** ansible 192.168.99.153 -a 'df'
*** ansible 192.168.99.153 -a 'iptables -L -n -v' -u root
* Built-in modules
** <u><b>copy module</b></u>
*** ansible 192.169.99.153 -m copy -a "src=/ops435/ansible.txt dest=/tmp/ansible.txt"
</pre>
== Sample runs for using some Ansible's built-in modules ==
<pre>
[rchan@centos7 ansible]$ ansible 192.168.99.153 -m yum -a "name=epel-release state=present"
192.168.99.153 | SUCCESS => {
1,760
edits

Navigation menu