vn-ansible/playbooks/clean.yml

14 lines
296 B
YAML
Raw Normal View History

- name: Clean deprecated configuration
hosts: all
gather_facts: no
tasks:
- name: Delete awx-user
ansible.builtin.user:
name: awx-user
state: absent
remove: yes
- name: Delete awx-user sudoers file
file:
path: /etc/sudoers.d/awx-user
state: absent