Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created October 22, 2015 18:56
Show Gist options
  • Save tgerla/db65245e7fa6873ae7c5 to your computer and use it in GitHub Desktop.
Save tgerla/db65245e7fa6873ae7c5 to your computer and use it in GitHub Desktop.
Simple aplybook example
# Example Playbook for ACLs
---
- hosts: all
connection: local
vars:
force: "false"
vars_prompt:
- name: "username"
prompt: "Enter username"
private: no
- name: "password"
prompt: "Enter password"
private: yes
tasks:
- name: Applying ACL
dcx_network_acl:
force: "{{ force }}"
acl_name: "{{ item.key }}"
core_id: "{{ inventory_hostname }}"
data: "{{ item.value }}"
username: "{{ username }}"
password: "{{ password }}"
with_dict: acl_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment