Ansible
Ansible is an automation and configuration management system developed by Red Hat. It requires only SSH connection to managed servers which makes Ansible very quick and easy to deploy in any environment.
Best Practice Tips
Use Ansible Modules
Almost everything can and should be done using specific Ansible modules rather than generic things like command and shell modules that allow you to execute commands on the remote server.
There’s a number of reasons for using Ansible modules rather than reinvent the wheel:
- Modules work faster than scripting the same functionality
- Many modules are vendor-supported, meaning they’re regression tested and maintain compatibility
- Code is much more readable and self-explanatory
- It will be easier to maintain cause one can always use Ansible Docs website to lookup a particular module and all its functionality
Ansible Articles
- Ansible Support in SUDO
- Docker module in Ansible
- Ansible: Could Not Match Supplied Host Pattern error
- Run Ansible Tasks for Specific OS release version
- Non-standard Ansible Port
- Run Ansible tasks based on OS distro (RedHat or Debian)
- Deploy website from git repo using Ansible
- Use Backups when deploying with Ansible
- Install Software with Homebrew in Ansible
- Skip Gathering facts in Ansible
- Specify User per Task in Ansible
- How To Create a Unix Group with Ansible
- Getting Started with Ansible
- Running Ansible scripts in dry-run mode
- Ansible 2.0
See Also
- Ansible
- Red Hat Enterprise Linux 8
- Create a Unix group with Ansible
- Specify User per Task in Ansible
Ansible is an automation and configuration management system developed by Red Hat. It requires only SSH connection to managed servers which makes Ansible very quick and easy to deploy in any environment.
Best Practice Tips
Use Ansible Modules
Almost everything can and should be done using specific Ansible modules rather than generic things like command and shell modules that allow you to execute commands on the remote server.
There’s a number of reasons for using Ansible modules rather than reinvent the wheel:
- Modules work faster than scripting the same functionality
- Many modules are vendor-supported, meaning they’re regression tested and maintain compatibility
- Code is much more readable and self-explanatory
- It will be easier to maintain cause one can always use Ansible Docs website to lookup a particular module and all its functionality
Ansible Articles
- Ansible Support in SUDO
- Docker module in Ansible
- Ansible: Could Not Match Supplied Host Pattern error
- Run Ansible Tasks for Specific OS release version
- Non-standard Ansible Port
- Run Ansible tasks based on OS distro (RedHat or Debian)
- Deploy website from git repo using Ansible
- Use Backups when deploying with Ansible
- Install Software with Homebrew in Ansible
- Skip Gathering facts in Ansible
- Specify User per Task in Ansible
- How To Create a Unix Group with Ansible
- Getting Started with Ansible
- Running Ansible scripts in dry-run mode
- Ansible 2.0
See Also
- Ansible
- Red Hat Enterprise Linux 8
- Create a Unix group with Ansible
- Specify User per Task in Ansible