-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[reproducer] Call switches config if available
- Loading branch information
1 parent
a382a3c
commit 8aa3494
Showing
5 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: Switches configuration requirements | ||
hosts: "{{ cifmw_target_host | default('localhost') }}" | ||
gather_facts: false | ||
tasks: | ||
# end_play will end this current playbook and go the the next | ||
# imported play. | ||
- name: Early stop ceph related work | ||
when: | ||
- not cifmw_configure_switches | default(true) | ||
ansible.builtin.meta: end_play | ||
|
||
- name: Install required packages | ||
delegate_to: localhost | ||
ansible.builtin.pip: | ||
name: | ||
- paramiko | ||
- ncclient | ||
extra_args: --user | ||
|
||
- name: Switches configuration | ||
hosts: switches | ||
gather_facts: false | ||
roles: | ||
- switch_config |
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
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
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
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