Roger Lopez (@Lopez) header
Roger Lopez (@Lopez) profile picture

Technical Marketing Manager | Speaker | Author | Meme Creator | Belgian Ale drinker | Sharing the greatness that is @ansible automation

Joined July 2010
Ansible PRO TIP: Take advantage of ‘block’ to group tasks and apply common attributes or error handling. It helps to simplify your playbook structure and manage task execution flow.
5
36
178
12,682
Example of an idempotent task.
1
3
381
The key to effective Ansible playbooks — consistency. How to write consistent playbooks: 🧵
1
14
1
48
8,691
5/ ansible.builtin.debug: - Display messages Get values of your variables to: - troubleshoot your playbooks - display variable values during playbook execution
1
4
894
4/ ansible.builtin.file: - Manage files, directories, and links Example of creating the myapp directory with 0755 permissions.
2
6
953
3/ ansible.builtin.template: - Deploy files based on Jinja2 templates Have a config file that needs to be applied to certain hosts or with variable values from a playbook? j2 templates is the way to go. Just place the file in your templates dir of your role & use it.
1
6
1,005
2/ ansible.builtin.service: - Control services on remote hosts across distributions - Easy ability to start immediately (state=started) & make service start on boot (enabled=true)
1
5
1,050
1/ ansible.builtin.package: Manage packages without needing to worry about the package manager (apt, yum, dnf, etc.) Example installing the git package
1
12
1,183
Using Ansible? Use these 5 built-in modules to make your automation life easier: 🧵
1
30
1
133
25,383
Ansible PRO TIP: Running a job on a 1000 servers & it’s taking forever to complete? Increase your forks. Forks are used to determine how many hosts to automate against in parallel. Careful you don’t overcommit. In AAP, you can see what each server within the group can handle
4
17
58
5,746
Having a little fun with @IPvSean Enjoy :) 👇👇👇👇
2
2
1
11
1,417
Containerized Ansible Automation Platform - 👋 bye to complex installs - Containerization = less hassle in deployments - Lighter footprint It’s all about making it easier to automate. Step by step details on getting started by me: youtu.be/wUcCeyrCvyg?si=iYQp…
1
13
61
4,723