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 # 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

View File

@ -3,7 +3,4 @@
- name: restart openssh - name: restart openssh
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

View File

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