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