Skip to content

Commit

Permalink
Merge pull request #13 from meraki/develop
Browse files Browse the repository at this point in the history
v2.16.5
  • Loading branch information
fmunozmiranda authored Oct 10, 2023
2 parents 564967a + 9baf797 commit fcc77f8
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Cisco.Meraki Release Notes

.. contents:: Topics

v2.16.5
=======

Bugfixes
-------------

- cisco.meraki.organizations_login_security module will not update org api authentication - fixing for look at organizations_login_security.

v2.16.4
=======

Expand Down
7 changes: 6 additions & 1 deletion changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -886,4 +886,9 @@ releases:
changes:
bugfixes:
- cisco.meraki.networks_devices_claim - got an unexpected keyword argument 'network_id', bug with parameter naming.
release_date: '2023-09-28'
release_date: '2023-09-28'
2.16.5:
changes:
bugfixes:
- cisco.meraki.organizations_login_security module will not update org api authentication - fixing for look at organizations_login_security.
release_date: '2023-10-10'
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: cisco
name: meraki
version: 2.16.4
version: 2.16.5
readme: README.md
authors:
- Francisco Muñoz <[email protected]>
Expand Down
25 changes: 25 additions & 0 deletions playbooks/organizations_login_security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
2 changes: 1 addition & 1 deletion plugins/action/organizations_login_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def exists(self):
id_exists = False
name_exists = False
o_id = self.new_object.get("id")
name = self.new_object.get("name")
name = self.new_object.get("organization_id")
if o_id:
prev_obj = self.get_object_by_name(o_id)
id_exists = prev_obj is not None and isinstance(prev_obj, dict)
Expand Down

0 comments on commit fcc77f8

Please sign in to comment.