Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.97 KB

ansible.md

File metadata and controls

60 lines (44 loc) · 1.97 KB

Ansible

Learn Ansible

Name Comments
Ansible 101 - Jeff Geerling Comprehensive practical way to learn Ansible
What is Ansible? - TechWorld with Nana High-level short overview of Ansible
Learning Ansible basics - Red Hat Red Hat's guide on how to learn Ansible basics + links to the content itself
Introduction to Ansible - 2021

Articles

Name Comments
Writing reliable Ansible Playbooks - 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"