summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/meraki/playbooks/organizations_login_security.yml
blob: 4b211dc8d070318c2357980cee596ae53ae01020 (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
- hosts: localhost
  vars:
    vars:
    org_id: 828099381482762270 # API TEST
  gather_facts: false
  tasks:

  - name: Get security login settings
    cisco.meraki.organizations_login_security_info:
      organizationId: "{{ org_id }}"
    register:
      result

  - name: Show result
    ansible.builtin.debug:
      msg: "{{ result }}"

  - name: Update security login settings
    cisco.meraki.organizations_login_security:
      meraki_suppress_logging: false
      organizationId: "{{ org_id }}"
      state: present
      accountLockoutAttempts: 3
      enforceIdleTimeout: true
      enforceTwoFactorAuth: true