1
0

remove task when conditionals

This commit is contained in:
michael 2022-09-03 01:46:34 +12:00
parent 7ff7a36eb3
commit 9cdb8b12b7
3 changed files with 3 additions and 8 deletions

View File

@ -3,7 +3,7 @@
# connection
ansible_user: ladmin
ansible_become_user: ladmin
ansible_become_user: root
ansible_os_family: Arch
# sshd

View File

@ -4,6 +4,3 @@
ansible.builtin.service:
name: "{{ openssh_service }}"
state: restarted
when:
- not ansible_check_mode
- not openssh_restart_immediately

View File

@ -37,5 +37,3 @@
- name: flush handlers
ansible.builtin.meta: flush_handlers
when:
- openssh_restart_immediately