summaryrefslogtreecommitdiffstats
path: root/ansible_collections/ibm/storage_virtualize/playbooks/security_mgmt.yml
blob: 4fe6cdc6c99c691f3aff720bdaf4b0a9cb593f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- name: Using Storage Virtualize collection to change security settings
  hosts: localhost
  vars:
    - clustername: clustername
    - username: username
    - password: password
  
  collections:
    - ibm.storage_virtualize
  gather_facts: no
  connection: local
  tasks:
    - name: Change max failed login limit
      ibm.storage_virtualize.ibm_sv_manage_security:
        clustername: "{{ clustername }}"
        username: "{{ username }}"
        password: "{{ password }}"
        log_path: "/tmp/playbook.debug"
        maxfailedlogins: 5

    - name: Change SSH protocol level
      ibm.storage_virtualize.ibm_sv_manage_security:
        clustername: "{{ clustername }}"
        username: "{{ username }}"
        password: "{{ password }}"
        log_path: "/tmp/playbook.debug"
        sshprotocol: 2