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

Dieser Commit ist enthalten in:
2021-06-14 17:08:42 +02:00
Ursprung b6656c3d9c
Commit eca6ae515e
@@ -17,7 +17,7 @@
state: "{{ item.state }}" state: "{{ item.state }}"
loop: loop:
- { regex: '$#PasswordAuthentication', line: 'PasswordAuthentication no', state: present} - { 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 - name: Delete 'ubuntu' user
ansible.builtin.user: ansible.builtin.user:
name: ubuntu name: ubuntu