Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.1 KB

ansible.md

File metadata and controls

61 lines (45 loc) · 2.1 KB

Ansible

Videos

Name Comments
Ansible 101 - Jeff Geerling Comprehensive practical way to learn Ansible
What is Ansible? - TechWorld with Nana High-level short overview of Ansible
How to write your first Ansible playbook Practical video on how to write a playbook in Ansible

Articles

Name Comments
Learning Ansible basics - Red Hat Red Hat's guide on how to learn Ansible basics + links to the content itself
Writing reliable Ansible Playbooks - 2021
Introduction to Ansible - 2021
A CI/CD Pipeline Project for a Trunk-Based Development Strategy in a Kubernetes Environment

Books

Name Comments
Ansible for DevOps
Ansible: From Beginner to Pro
Ansible: Up and Running

Cheat Sheet

  • Check if list has elements
when: my_list | length > 0
  • Update all packages
- name: Update system packages
  package:
    state: latest
    name: "*"
  • Update packages informations and display packages informations
- name: Update packages informations
  package_facts:
    manager: "auto"

- name: Display all installed packages informations
  debug:
    msg: "{{ ansible_facts.packages }}"

- name: Display all Chromium package informations
  debug:
    msg: "{{ ansible_facts.packages['chromium'] }}"
  when: "'chromium' in ansible_facts.packages"