summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/cisco/intersight/playbooks/intersight_ntp_policy.yml
blob: 9f4661b88db23cf2ac213a3cbb8e635a906d4fba (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
---
# Example Playbook: cisco.intersight.intersight_ntp_policy
# Runs on localhost since policies are only configured once
- hosts: localhost
  connection: local
  collections:
    - cisco.intersight
  gather_facts: false
  vars:
    # Create an anchor for api_info that can be used throughout the file
    api_info: &api_info
      api_private_key: "{{ api_private_key }}"
      api_key_id: "{{ api_key_id }}"
      api_uri: "{{ api_uri | default(omit) }}"
  tasks:
    - name: Configure NTP Policy
      intersight_ntp_policy:
        <<: *api_info
        organization: "{{ organization | default(omit) }}"
        name: lab-ntp
        description: NTP policy for lab use
        tags:
          - Key: Site
            Value: RCDN
        ntp_servers:
          - ntp.esl.cisco.com
        timezone: America/Chicago