Fix regex patterns
This commit is contained in:
		@@ -16,8 +16,8 @@
 | 
			
		||||
    line: "{{ item.line }}"
 | 
			
		||||
    state: "{{ item.state }}"
 | 
			
		||||
  loop:
 | 
			
		||||
  - { regex: '$#PasswordAuthentication', line: 'PasswordAuthentication no', state: present}
 | 
			
		||||
  - { regex: '$PasswordAuthentication yes', line: 'PasswordAuthentication yes', state: absent}
 | 
			
		||||
  - { regex: '^#PasswordAuthentication', line: 'PasswordAuthentication no', state: present}
 | 
			
		||||
  - { regex: '^PasswordAuthentication yes', line: 'PasswordAuthentication yes', state: absent}
 | 
			
		||||
- name: Delete 'ubuntu' user
 | 
			
		||||
  ansible.builtin.user:
 | 
			
		||||
    name: ubuntu
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user