ansible tutorial

Ansible Quickies – Useful Code Snippets

Delete a remote folders and files in Ansible


Sync files from a directory inside of another directory in Ansible


Execute bash code with Ansible. It gets executed with /bin/sh for you


Add a cron job if it doesn’t exist with Ansible


Create a folder if it doesn’t exist with Ansible


Copy a local file to the server with Ansible


Download a file from a remote server with Ansible


Install Ubuntu packages with Ansible


Restart server service with Ansible


Execute different actions if there was an error



Published by

Pablo Farias Navarro

Pablo is a web + mobile app developer and entrepreneur. Pablo is the founder of ZENVA. Besides teaching online how to create games, apps and websites to over 85,000 students, Pablo has created content for companies such as Amazon and Intel.ZENVA runs four development communities featuring game, web and mobile app development tutorials: Zenva Academy, GameDev Academy, HTML5 Hive (also known as "the hive"), and for Spanish speakers, De Idea A App.Pablo holds a Master in Information Technology (Management) degree from the University of Queensland (Australia) and a Master of Science in Engineering degree from the Catholic University of Chile. Specialized in web, mobile application and game development.

Share this article