You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/changelogs/fragments
Sam Doran 511d3110f7
Only change expiration date if it is different (#38885) (#39575)
* Only change expiration date if it is different

Modify user_info() method to also return the password expiration.
Compare current and desired expiration times and only change if they are different.

* Improve formatting on user tests

* Add integration test for expiration

* Add changelog fragment

* Improve integration test

Skip macOS and use getent module for validating expiration date.

* Fix expiration change for FreeBSD

* Don't use datetime since the total_seconds method isn't available on CentOS 6

* Use better name for expiration index field

Use separate tasks for verifying expiration date on BSD

* Use calendar.timegm() rather than time.mktime()

calendar.timegm() is the inverse of time.gmtime() and returns a timestamp in UTC not localtime
Add tests that change the system timezone away from UTC

* Mark tests as destructive and use test for change status

* Fix account expiration for FreeBSD

Use DATE_FORMAT when setting expiration date on FreeBSD. Previously the argument passed to -e was an integer of days since epoch when the account will expire which was inserted directly into master.passwd. This value is interpreted as seconds since epoch by the system, meaning the account expiration was actually set to a few hours past epoch.

Greatly simply comparing desired  and current expiration time by using the first three values of the struct_time tuple rather than doing a whole bunch of manipulations of the seconds since epoch.

(cherry picked from commit 5a6bdef76b)
7 years ago
..
30786-verbose_info_on_os_stack_error.yaml Backport/2.5/39371 Issue 30786 (#39660) 7 years ago
36980-eos_check_mode_without_config_session.yaml Backport/2.5/37287 Eos :do not push config to device if check_mode is enabled (#38382) 7 years ago
37056-vmware_guest_no_permission.yaml VMware: handle permission denied while reading facts (#38868) 7 years ago
37651-onxy_pfc_interface-onyx-version-3.6.0.yaml issue:37307 Add support for changes in pfc output in onyx 3.6.6000 (#… (#38330) 7 years ago
38167-onxy_linkagg-add-support-for-onyx-version-3.6.0.yaml Backport/2.5/38191 (#38327) 7 years ago
38290-doc_update_vmware_guest_find.yaml VMware: correct documentation for datacenter 7 years ago
38398-vmware_guest_typecast_vlan.yaml vmware_guest: cast vlan to int or str when relevant (#39793) 7 years ago
38466-vmware_guest_set_dhcp_as_default.yaml VMware: Set default network type as 'dhcp' (#38755) 7 years ago
38654-update_vmware_cfg_backup_variable_usage.yml Use correct esxi host variable in vmware_cfg_backup 7 years ago
38671-nmcli_autoconnect_value_correction.yaml nmcli: change default value of autoconnect (#38686) 7 years ago
38941-vmware_guest_update_cpu_memory_if_required.yaml Don't update cpu/memory allocation in configspec if there is no change. (#39865) 7 years ago
39818-loop_control_task_vars.yaml Backport #39818 to stable-2.5 (#39824) 7 years ago
ansible-inv-export.yaml reformat multiline bugfix entries 7 years ago
ansible-managed-encoding.yaml Fix when template paths contain non-ascii chars and using the path in ansible_managed 7 years ago
ansible_tower_credential.yaml Add changelog fragment 7 years ago
apt-fixes.yaml Backport: apt: mark installed packages manual (#37751) (#39411) 7 years ago
async_status_env.yaml Backport #39764 for 2.5 - async_status environment (#39766) 7 years ago
azure_api_profiles.yaml Changelog fragment copy edits. (#36555) 7 years ago
azure_rm_image.yaml Backport azure_rm_image Tag fix for 2.5 (#38131) (#38228) 7 years ago
azure_rm_networkinterface-specify-no-public-ip.yaml azure_rm_networkinterface: backport no public IP fix (#37762) 7 years ago
azure_rm_virtualmachine-docs-images.yaml azure_rm_virtualmachine - backport of docs change around images supported (#37764) 7 years ago
block_parenting.yaml Changelog fragment copy edits. (#36555) 7 years ago
cb_ignore.yml ignore version when deciding callback loading (#38281) 7 years ago
constructed_inventory_keyed_groups_and_configurable_separator.yaml add changelog 7 years ago
copy-files-default-follow.yaml Fix copy to only follow symlinks for files in the non-recursive case 7 years ago
depreciate_aos.yaml Depreciate aos (#36029) (#36393) 7 years ago
diff-callback-for-task.yml Backport #39366 - call diff callback also when task diff is true (#39372) 7 years ago
display_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
doc_chnages_for_network_config_modules.yaml doc changes for backup option of network _config modules (#38797) 7 years ago
doc_fix.yml minor accuracy fix 7 years ago
docker-api-update.yaml Clarify Docker SDK rather than Docker API 7 years ago
docker_prevent_docker_and_docker_py.yaml Backport #38884 for 2.5 - docker/docker-py guard (#38889) 7 years ago
dont-overwrite-builtin-jinja2-filters-with-tests.yaml Backport #37881 for 2.5.1 (#37937) 7 years ago
dyanmic-include-copy-enhancements.yaml Backport #38747 for 2.5 - Block copy and reparenting improvements (#38829) 7 years ago
ec2_vpc_route_table_vpc_endpoint_fix.yaml Add changelog for #37010 (#39511) 7 years ago
edgeos_backup.yaml Fix edgeos_config: {backup: yes} (#37619) (#37733) 7 years ago
edgeos_facts_empty_commit_history.yaml Do not try to add an entry if none exist (#37152) (#37213) 7 years ago
empty_host_pattern.yml return empty host list when pattern is empty 7 years ago
eos_cliconf_api_fix.yml Fix in eos get_config cliconf api (#38682) (#38720) 7 years ago
eos_module_utils_bugfix.yaml nxos bugfixes stable-2.5 (#39719) 7 years ago
eos_vlan_interface_name_fix.yaml Fix eos_vlan associated interface check (#39661) (#39738) 7 years ago
eos_vlan_more_than_6_nics.yaml Cherry pick 35568 (#38347) 7 years ago
eos_vrf_parsing_fix.yaml Fix edgeos_config: {backup: yes} (#37619) (#37733) 7 years ago
facts_vmware_detection.yaml We need to return virtual_facts after VMWare platform detection (#39149) 7 years ago
file-nonexistent-link.yaml Fix for file module with symlinks to nonexistent target (#39635) 7 years ago
file-nonexitent-link-recurse.yaml Fix for file module with recursive permission setting and broken symlinks 7 years ago
fix_exception_type.yml Change except Error when trying to get a missing option 7 years ago
fix_spurious_stderr.yml fixy typo (#39430) 7 years ago
galaxy_path_warn.yml make individual bad paths a warning 7 years ago
grafana-deprecation-warnings.yaml New release v2.5.1 7 years ago
home_translation.yml ensure 'home' translations (#36755) 7 years ago
include_comparison.yaml Backport #37083 for 2.5 - IncludedFile comparison fix for free strategy (#38981) 7 years ago
include_inherit_from_static_parents.yaml Backport #38827 for 2.5 - Allow inheriting attrs from static parents (#38847) 7 years ago
include_role_recursion_and_performance.yaml 2.5.0rc1 CHANGELOG prep 7 years ago
include_role_templating.yaml Backport #36372 for 2.5 (#37666) 7 years ago
include_vars_error_hang_fix.yaml Backport #38194 for 2.5 - include_vars error fix (#38225) 7 years ago
interfaces_file_args_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
ios_defaults_fetch.yaml Fetch ios default config is defaults is enabled (#39741) (#39841) 7 years ago
ios_get_config_fix.yaml Fix fetching ios default running config (#39475) (#39608) 7 years ago
ios_interface_cdp_support.yaml Have the ios_interface module include CDP when checking neighbors (#38046) 7 years ago
ios_iosxr_terminal_prompt.yaml Backport/2.5/39063 (#39093) 7 years ago
ios_l2_interface_fix.yaml nxos and ios bugfix stable-2.5 (#39845) 7 years ago
ios_terminal_regex_fix.yaml Fix ios and iosxr terminal prompt regex (#39063) (#39089) 7 years ago
iosxr_config_crash.yaml Handling of configurations blocks with end-* at the end of the block (#39843) 7 years ago
iosxr_show_version_brief.yaml show version brief does not work on iosxr virtual (#39847) 7 years ago
junos_module_doc_fixes.yaml Add supported connection in junos module documentation (#38813) (#38865) 7 years ago
junos_netconf_conn_error_msg.yml Add junos connection type check (#38527) (#38579) 7 years ago
lineinfile_insert_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
lineinfile_insertbefore_after_regexp_fix.yaml Check for regexp match when using insertbefore or insertafter (#36474) (#36552) 7 years ago
load_files_once.yml minimize loading files/plugins 7 years ago
network_changes.yaml 2.5 network changelog (#37179) 7 years ago
no-template-conn-err.yaml New release v2.5.1 7 years ago
nxos_bugfixes.yaml nxos and ios bugfix stable-2.5 (#39845) 7 years ago
nxos_evpn_vni_issues.yaml reformat multiline bugfix entries 7 years ago
nxos_igmp_interface_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
nxos_interface_ospf_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
nxos_on_become.yml nxos on_become terminal plugin stable_2.5 (#39852) 7 years ago
onyx-tmpfile.yaml New release v2.5.0rc3 7 years ago
onyx_config-py3-fix.yaml issue:38321 fix onyx_config module failed while using python = 3.5 (#38343) (#38869) 7 years ago
openshift_client_update.yaml Changelog fragment copy edits. (#36555) 7 years ago
openssl_certificate-dump-checkmode.yaml Backport/2.5/38386 (#38462) 7 years ago
openssl_certificate-generate-acme-missing-space.yaml Add space between arguments for acme-tiny (#36739) (#39018) 7 years ago
ovirt-vms_entity.yaml Add changelog for https://github.com/ansible/ansible/pull/37460 7 years ago
persistent_socket_path_troubleshoot_url.yml Add troubleshooting URL for persistent socket path related issue (#38542) (#38577) 7 years ago
pip_editable_add_missing_scripts.yaml Backport #37151 for 2.5 (#37154) 7 years ago
protect_bad_verify.yml protect against plugins using verify incorrectly 7 years ago
py3-ansible_interpreter.yaml New release v2.5.1 7 years ago
py3-consul_kv.yaml Bkprt py3 consul kv (#37802) 7 years ago
py3-csvfile.yaml Bkprt py3 csvfile (#37665) 7 years ago
py3-ec2-user_data.yaml Bkprt py3 ec2 user data (#37664) 7 years ago
py3-haproxy.yaml New release v2.5.1 7 years ago
py3-jira.yaml New release v2.5.1 7 years ago
py3-maven_artifact.yaml Bkprt py3 maven artifact (#37041) 7 years ago
py3-pull.yaml Bkprt py3 pull fix (#37663) 7 years ago
py3-vagrant-inv.yaml Py3 vargrant inv (#37803) 7 years ago
py3-wait-for-connection.yaml Backport #37646 for 2.5 (#37653) 7 years ago
py3-znode.yaml 2.5.0rc2 changelog catchup/cleanup 7 years ago
remove_slice_docs.yml remove slice docs (#37946) 7 years ago
service_local_fix.yml chkconfig localizes messages, ansible fails to recognise 7 years ago
set_fact_incremental_updates.yaml Add changelog for #38302 7 years ago
stderr-script-success.yaml Add changelog entry 7 years ago
template-filename-encoding.yaml Need to convert filenames to byte strings before using them in APIs 7 years ago
unarchive-absolute-path.yaml New release v2.5.1 7 years ago
user-expires.yaml Only change expiration date if it is different (#38885) (#39575) 7 years ago
v2.5.0_summary.yaml New release v2.5.1 7 years ago
v2.5.0b1_catchup.yaml Changelog fragment copy edits. (#36555) 7 years ago
v2.5.0b2_catchup.yaml Changelog fragment copy edits. (#36555) 7 years ago
v2.5.0rc1_catchup.yaml fix yamllint issue (#36636) 7 years ago
v2.5.0rc2_catchup.yaml fix changelog yamllint failure 7 years ago
v2.5.0rc3_catchup.yaml New release v2.5.0rc3 7 years ago
v2.5.1_catchup.yaml New release v2.5.1 7 years ago
v2.5.1_summary.yaml New release v2.5.1 7 years ago
v2.5.2_catchup.yaml fix yamllint sanity failure 7 years ago
v2.5.2_summary.yaml New release v2.5.2 7 years ago
vcenter_license.yaml Correct module name in vcenter_license.py (#37672) (#37728) 7 years ago
vmware_gather_facts_instance_uuid.yaml add instanceUuid (also called PersistentId) in vmware utils (#38870) 7 years ago
vmware_guest_snapshot_root_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
vyos_check_mode.yaml Changelog fragment copy edits. (#36555) 7 years ago
vyos_l3_lo_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
win-test-ansible-path-provider-support.yaml Ansible.ModuleUtils.FileUtil - backport 2.5 Add ability to test non file system provider paths (#39203) 7 years ago
win_certificate_store-params-typo.yaml win_certificate_store: backport fix of typo key_storage (#37862) 7 years ago
win_copy-preserve-tmp-folder.yaml New release v2.5.1 7 years ago
win_domain_controller_readonlyreplica_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
win_environment-stringify-2.5.yaml New release v2.5.1 7 years ago
win_feature-better-errors.yaml Win feature error cp (#36559) 7 years ago
win_file-special-char-fix.yaml Win file path special char 2.5 (#39397) 7 years ago
win_file_util-test-exception-handler.yaml New release v2.5.1 7 years ago
win_get_url-ftp-support.yaml win_get_url: Fixed a few issues with using FTP and added tests (#39646) (#39705) 7 years ago
win_get_url_fix_timestamp_comparison.yaml Fix for win_get_url module (Fixes #39151) - 2.5 backport (#39207) 7 years ago
win_lineinfile_newlines.yaml Win lineinfix fix (#36888) 7 years ago
win_modules-support-different-line-endings.yaml New release v2.5.1 7 years ago
win_reboot-warning-message-fix.yaml New release v2.5.1 7 years ago
win_regedit-hive-unload.yaml win_regedit: backport 2.5 stabilise tests (#38918) 7 years ago
win_service-name-special-chars.yaml New release v2.5.1 7 years ago
win_setup-connection-name.yaml New release v2.5.1 7 years ago
win_setup-slow-machine-sid-fix.yaml win_setup: backport 2.5 fix for machine sid to work in domains with lots of users (#38659) 7 years ago
win_update_string_names_fix.yaml Changelog fragment copy edits. (#36555) 7 years ago
win_updates_handle-module-failures.yaml New release v2.5.1 7 years ago
win_uri-fix-header-override.yaml New release v2.5.1 7 years ago
win_uri-int-status-codes.yaml win_uri: backport 2.5 fix for when status codes are provided as a comma separated list (#38509) 7 years ago
win_uri-return-values.yaml win_uri: backport return value fix for non 200 responses (#37156) 7 years ago
win_uri_create_remove_fix.yaml reformat multiline bugfix entries 7 years ago
win_utf8_character_output.yaml New release v2.5.1 7 years ago
win_wait_for-local-port-fix.yaml win_wait_for: fix local port check on port not accessible externally (#37093) 7 years ago
winrm-encoding-fix Winrm encoding in exception fix (#39333) 7 years ago
winrm_kinit-delegation.yaml winrm: backport 2.5 added flag handler for kinit to request forwardable ticket when delegation is set (#38508) 7 years ago