You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/ios_banner/tests/cli/multiple-login-exec.yaml

56 lines
891 B
YAML

---
- name: Setup - set login and exec
ios_banner:
banner: "{{ item }}"
text: |
this is my login banner
that as a multiline
string
state: present
provider: "{{ cli }}"
loop:
- login
- exec
- name: Set login
ios_banner:
banner: "login"
text: |
this is my login banner
that as a multiline
string
state: present
provider: "{{ cli }}"
register: result
- debug:
msg: "{{ result }}"
- assert:
that:
- "result.changed == false"
- "result.commands | length == 0"
- name: Set exec
ios_banner:
banner: "exec"
text: |
this is my login banner
that as a multiline
string
state: present
provider: "{{ cli }}"
register: result
- debug:
msg: "{{ result }}"
- assert:
that:
- "result.changed == false"
- "result.commands | length == 0"