ansible modules - ghdrako/doc_snipets GitHub Wiki

Files modules

  • copy: copy a local file to the managed host
  • fetch: copy files from remote nodes to local
  • file: set permissions and other properties of files
  • lineinfile: ensure a particular line is or is not in a file
  • synchronize: synchronize content using rsync

Software package modules

  • package: manage packages using autodetected package manager native to the operating system
  • yum: manage packages using the YUM package manager
  • apt: manage packages using the APT package manager
  • dnf: manage packages using the DNF package manager
  • gem: manage Ruby gems
  • pip: manage Python packages from PyPI

System modules

  • firewalld: manage arbitrary ports and services using firewalld
  • reboot: reboot a machine
  • service: manage services
  • user: add, remove, and manage user accounts

Net tools modules

  • get_url: Download files in HTTP, HTTPS, and FTP
  • nmcli: Manage networking
  • uri: Interact with web services