Skip to content

Build A Homelab

The enterprise in your closet

Tag: tests

Using Ansible “when” Statements

Posted on November 12, 2018 by engonzal

Using Ansible “when” statements allows you to set parameters for when a task should play out. I’ve put together some examples.

Categoriesansible, linux

Recent Posts

  • Weekly Links 12/09-12/16: AWX, Logging, NTP
  • Weekly Links 12/02-12/09: Proxmox, Security, Homelab
  • Provision Proxmox Containers with Ansible
  • Weekly Links 11/25-12/02: Proxmox, Self-hosted, Ceph
  • Weekly Links 11/19-11/25: Ceph, Project work, Music

Recent Comments

  • Weekly Links 12/02-12/09: Proxmox, Security, Homelab - Build a Homelab on Provision Proxmox Containers with Ansible
  • Provision Proxmox Containers with Ansible - Build a Homelab on Setup Ansible with Python Virtualenv
  • Weekly Links 11/12-18/11: Ansible, Kubernetes, and DevOps - Build a Homelab on Using Ansible “when” Statements
  • Using Ansible "when" Statements - Build a Homelab on Setup Ansible with Python Virtualenv
  • Weekly Links 10/29-11/4: VPN, Lab Apps, and Linux Basics - Build a Homelab on Using subelements in Ansible to loop through multiple lists.

Archives

  • December 2018
  • November 2018
  • October 2018

Categories

  • ansible
  • ceph
  • git
  • Kubernetes
  • linux
  • proxmox
  • python
  • raspberry pi
  • security
  • vpn
  • weekly

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress Simplent Theme by Rafay