Ansible Documentation
2.7

Installation, Upgrade & Configuration

  • Installation Guide
  • Configuring Ansible
  • Ansible Porting Guides

Using Ansible

  • User Guide
    • Ansible Quickstart
    • Getting Started
    • Working with Command Line Tools
    • Introduction To Ad-Hoc Commands
    • Working with Inventory
    • Working With Dynamic Inventory
    • Working With Playbooks
    • Understanding Privilege Escalation
    • Ansible Vault
    • Working with Patterns
    • Working With Modules
      • Introduction
      • Return Values
      • Module Maintenance & Support
      • Module Index
        • All modules
        • Cloud modules
        • Clustering modules
        • Commands modules
        • Crypto modules
        • Database modules
        • Files modules
        • Identity modules
        • Inventory modules
        • Messaging modules
        • Monitoring modules
        • Net Tools modules
        • Network modules
        • Notification modules
        • Packaging modules
        • Remote Management modules
        • Source Control modules
        • Storage modules
        • System modules
        • Utilities modules
        • Web Infrastructure modules
        • Windows modules
    • Working With Plugins
    • BSD Support
    • Windows Guides

Contributing to Ansible

  • Ansible Community Guide

Extending Ansible

  • Developer Guide

Scenario Guides

  • Cisco ACI Guide
  • Amazon Web Services Guide
  • Microsoft Azure Guide
  • CloudStack Cloud Guide
  • Getting Started with Docker
  • Google Cloud Platform Guide
  • Infoblox Guide
  • Getting Started with Kubernetes and OpenShift
  • Cisco Meraki Guide
  • Using Ansible with the Packet host
  • Rackspace Cloud Guide
  • Continuous Delivery and Rolling Upgrades
  • Using Vagrant and Ansible
  • Vultr Guide

Ansible for VMWare

  • Ansible for VMware

Ansible for Network Automation

  • Ansible for Network Automation

Reference & Appendices

  • Module Index
    • All modules
    • Cloud modules
    • Clustering modules
    • Commands modules
    • Crypto modules
    • Database modules
    • Files modules
    • Identity modules
    • Inventory modules
    • Messaging modules
    • Monitoring modules
    • Net Tools modules
    • Network modules
    • Notification modules
    • Packaging modules
    • Remote Management modules
    • Source Control modules
    • Storage modules
    • System modules
    • Utilities modules
    • Web Infrastructure modules
    • Windows modules
  • Playbook Keywords
  • Ansible Galaxy
  • Return Values
  • Ansible Configuration Settings
  • YAML Syntax
  • Python 3 Support
  • Release and maintenance
  • Testing Strategies
  • Sanity Tests
  • Frequently Asked Questions
  • Glossary
  • Ansible Reference: Module Utilities
  • Special Variables
  • Ansible Tower

Roadmaps

  • Ansible Roadmap
Ansible Documentation
  • Docs »
  • User Guide »
  • Working With Modules »
  • Module Index »
  • Files modules

Files modules¶

  • acl – Sets and retrieves file ACL information.
  • archive – Creates a compressed archive of one or more files or trees
  • assemble – Assembles a configuration file from fragments
  • blockinfile – Insert/update/remove a text block surrounded by marker lines
  • copy – Copies files to remote locations
  • fetch – Fetches a file from remote nodes
  • file – Sets attributes of files
  • find – Return a list of files based on specific criteria
  • ini_file – Tweak settings in INI files
  • iso_extract – Extract files from an ISO image
  • lineinfile – Manage lines in text files
  • patch – Apply patch files using the GNU patch tool
  • replace – Replace all instances of a particular string in a file using a back-referenced regular expression.
  • stat – Retrieve file or file system status
  • synchronize – A wrapper around rsync to make common tasks in your playbooks quick and easy.
  • tempfile – Creates temporary files and directories.
  • template – Templates a file out to a remote server
  • unarchive – Unpacks an archive after (optionally) copying it from the local machine.
  • xattr – Manage user defined extended attributes
  • xml – Manage bits and pieces of XML files or strings

Note

  • (D): This marks a module as deprecated, which means a module is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.
Next Previous

© Copyright 2013-2021 Ansible, Inc Last updated on Jul 27, 2021.

Built with Sphinx using a theme provided by Read the Docs.