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

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

View File

@ -36,6 +36,4 @@
enabled: yes
- name: flush handlers
ansible.builtin.meta: flush_handlers
when:
- openssh_restart_immediately
ansible.builtin.meta: flush_handlers