fix(bootstrap): correct changed_when on state-changing commands
This commit is contained in:
@@ -117,7 +117,7 @@
|
|||||||
- name: Synchronize clock via NTP
|
- name: Synchronize clock via NTP
|
||||||
ansible.builtin.command: timedatectl set-ntp true
|
ansible.builtin.command: timedatectl set-ntp true
|
||||||
register: environment_ntp_result
|
register: environment_ntp_result
|
||||||
changed_when: false
|
changed_when: environment_ntp_result.rc == 0
|
||||||
|
|
||||||
- name: Configure SSH for root login
|
- name: Configure SSH for root login
|
||||||
when: hypervisor_type == "vmware" and hypervisor_cfg.ssh | bool
|
when: hypervisor_type == "vmware" and hypervisor_cfg.ssh | bool
|
||||||
|
|||||||
Reference in New Issue
Block a user