Skip to content

Instantly share code, notes, and snippets.

@maprangzth
Created October 22, 2017 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maprangzth/3765ff81da7b448b2c8658b45d439166 to your computer and use it in GitHub Desktop.
Save maprangzth/3765ff81da7b448b2c8658b45d439166 to your computer and use it in GitHub Desktop.
Simple Playbooks for Explanation About Loop
---
- name: Install reqiured packages
hosts: all
remote_user: maprangzth
tasks:
- name: Ensure EPEL Repo is present
yum:
name: epel-release
state: present
become: True
- name: Ensure reqiured packages in present
yum :
name: "{{ item }}"
state: present
update_cache: yes
become: True
with_items:
- ntp
- iotop
- htop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment