remove task when conditionals
This commit is contained in:
parent
7ff7a36eb3
commit
9cdb8b12b7
@ -3,7 +3,7 @@
|
||||
# connection
|
||||
|
||||
ansible_user: ladmin
|
||||
ansible_become_user: ladmin
|
||||
ansible_become_user: root
|
||||
ansible_os_family: Arch
|
||||
|
||||
# sshd
|
||||
|
@ -4,6 +4,3 @@
|
||||
ansible.builtin.service:
|
||||
name: "{{ openssh_service }}"
|
||||
state: restarted
|
||||
when:
|
||||
- not ansible_check_mode
|
||||
- not openssh_restart_immediately
|
@ -37,5 +37,3 @@
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
when:
|
||||
- openssh_restart_immediately
|
Loading…
Reference in New Issue
Block a user