Fix Ansible loop
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2021-06-14 17:08:42 +02:00
parent b6656c3d9c
commit eca6ae515e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
state: "{{ item.state }}"
loop:
- { regex: '$#PasswordAuthentication', line: 'PasswordAuthentication no', state: present}
- { regex: ~, line: 'PasswordAuthentication yes', state: absent}
- { regex: '$PasswordAuthentication yes', line: 'PasswordAuthentication yes', state: absent}
- name: Delete 'ubuntu' user
ansible.builtin.user:
name: ubuntu