Skip to content

Commit

Permalink
Merge pull request #40 from arillso/docs/fix
Browse files Browse the repository at this point in the history
fix: docs
  • Loading branch information
sbaerlocher authored Feb 18, 2024
2 parents 30330a3 + b545107 commit 9c5544b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/chocolatey_packages/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ argument_specs:
chocolatey_packages_timeout:
type: int
description: Timeout for the installation process, default is unset.
default: ""
default: 2700

chocolatey_packages_validate_certs:
type: bool
Expand Down
4 changes: 3 additions & 1 deletion roles/motd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Variables defined in `defaults/main.yml` customize the MOTD configuration. These
- `motd_distribution_release`: The release name of the distribution.
- `motd_virtualization_role`: Role in virtualization (host/guest/none).
- `motd_virtualization_type`: Type of virtualization (KVM, VirtualBox, etc.).
- `motd_date_time`: Date and time information.
- `motd_date_time`: Date and time information. This is a dictionary that includes the following suboptions:
- `tz`: The timezone setting. It uses Ansible's built-in `ansible_date_time.tz` to dynamically set the timezone based on the target host's settings.
- `tz_offset`: The timezone offset. It uses Ansible's built-in `ansible_date_time.tz_offset` to dynamically set the timezone offset based on the host's settings.
- `motd_region`: Regional variable.
- `motd_zone`: Zone variable.
- `motd_customer`: Customer variable.
Expand Down
4 changes: 3 additions & 1 deletion roles/motd/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ motd_virtualization_role: "{{ ansible_virtualization_role }}" # Uses Ansible's b
motd_virtualization_type: "{{ ansible_virtualization_type }}" # Uses Ansible's built-in virtualization type fact

# Date and time information
motd_date_time: "{{ ansible_date_time }}" # Uses Ansible's built-in date time fact
motd_date_time: # Uses Ansible's built-in date time fact to populate timezone and offset
tz: "{{ ansible_date_time.tz }}" # Sets the timezone using Ansible's ansible_date_time fact
tz_offset: "{{ ansible_date_time.tz_offset }}" # Sets the timezone offset using Ansible's ansible_date_time fact

# Region variable, undefined by default
motd_region: undefined # Custom variable, default set to 'undefined'
Expand Down
10 changes: 9 additions & 1 deletion roles/motd/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ argument_specs:
motd_date_time:
description: Date and time information
type: dict
default: "{{ ansible_date_time }}"
options:
tz:
description: Timezone of the motd_date_time
type: str
default: "{{ ansible_date_time.tz }}"
tz_offset:
description: Timezone offset of the motd_date_time
type: str
default: "{{ ansible_date_time.tz_offset }}"

motd_region:
description: Region variable
Expand Down

0 comments on commit 9c5544b

Please sign in to comment.