Javatpoint Logo
Javatpoint Logo

Ansible Commands Cheat Sheets

Here are some commands which are used in Ansible, such as:

  • To install EPEL repo on Centos/RHEL systems.
  • To install Ansible package on Centos/RHEL systems.
  • To perform an update to the packages on Debian/Ubuntu systems.
  • To install the software properties-common-package on Debian/Ubuntu systems.
  • To install Ansible personal package archive on Debian/Ubuntu systems.
  • To install Ansible on Debian/Ubuntu systems.
  • To issue a ping command on all servers defined in the inventory file named hosts.
  • To issue a ping command only on hosts2.
  • To copy the file "testfile" on all hosts in the inventory file.
  • To install ncdu package on all hosts.
  • To remove ncdu package on all hosts.
  • To build the directory structure for the role named role1.
  • To dry-run p4.yml playbook.
  • To run a p4.yml playbook with password authentication for all hosts.

Next TopicAnsible Modules





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA