Created
October 22, 2015 18:56
-
-
Save tgerla/db65245e7fa6873ae7c5 to your computer and use it in GitHub Desktop.
Simple aplybook example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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