Changes

Jump to: navigation, search

OPS435 Ansible

1 byte added, 21:21, 21 November 2019
Key Concepts when using Ansible
* Ad hoc commands
** <u><b>shell commands</b></u>
*** ansible 192.168.99.153 -a 'date'*** ansible 192.168.99.153 -a 'df' *** ansible 192.168.99.153 -a 'iptables -L -n -v' -u root** <u><b>copy module</b></u>
** ansible 192.169.99.153 -m copy -a "src=/ops435/ansible.txt dest=/tmp/ansible.txt"
** <u><b>Package management</b></u>
** ansible 192.168.99.153 -m yum -a "name=epel-release state=latest"
1,760
edits

Navigation menu