Debian Codegraph @

ansible_collections/cisco/ucs/playbooks/ucs_system_qos.yml

raw symbols SCIP
1 ---
2 # Example Playbook: cisco.ucs.ucs_system_qos
3 - hosts: ucs
4 connection: local
5 gather_facts: false
6
7 tasks:
8 - name: Test that we have a UCS hostname, UCS username, and UCS password
9 fail:
10 msg: 'Please define the following variables: ucs_hostname, ucs_username and ucs_password.'
11 when: ucs_hostname is not defined or ucs_username is not defined or ucs_password is not defined
12 vars:
13 # use "<<: *login_info" to substite the information below in each task
14 # this is not required, however it makes the playbook shorter.
15 login_info: &login_info
16 hostname: "{{ ucs_hostname }}"
17 username: "{{ ucs_username }}"
18 password: "{{ ucs_password }}"
19
20 - name: Check QoS System Class
21 cisco.ucs.ucs_system_qos:
22 <<: *login_info
23 priority: platinum
24 cos: '5'
25 weight: '10'
26 delegate_to: localhost
27 check_mode: true
28
29 - name: Add QoS System Class
30 cisco.ucs.ucs_system_qos:
31 <<: *login_info
32 priority: platinum
33 cos: '5'
34 weight: '10'
35 delegate_to: localhost
36
37 - name: Idempotent Add QoS System Class
38 cisco.ucs.ucs_system_qos:
39 <<: *login_info
40 priority: platinum
41 cos: '5'
42 weight: '10'
43 delegate_to: localhost
44
45 - name: Check Update QoS System Class
46 cisco.ucs.ucs_system_qos:
47 <<: *login_info
48 priority: platinum
49 cos: '5'
50 weight: '10'
51 mtu: '9216'
52 delegate_to: localhost
53 check_mode: true
54
55 - name: Update QoS System Class
56 cisco.ucs.ucs_system_qos:
57 <<: *login_info
58 priority: platinum
59 cos: '5'
60 weight: '10'
61 mtu: '9216'
62 delegate_to: localhost
63
64 - name: Idempotent Update QoS System Class
65 cisco.ucs.ucs_system_qos:
66 <<: *login_info
67 priority: platinum
68 cos: '5'
69 weight: '10'
70 mtu: '9216'
71 delegate_to: localhost