2021-12-30 10:04:18 -06:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
|
|
|
- hosts: all
|
2022-02-15 15:19:34 -06:00
|
|
|
gather_facts: no
|
2021-12-30 10:04:18 -06:00
|
|
|
tasks:
|
|
|
|
- name: assure scanner user
|
2022-02-23 16:02:33 -06:00
|
|
|
user: name=scanner state=absent
|
2021-12-30 10:04:18 -06:00
|
|
|
tags: [ scanner, greenbone ]
|
|
|
|
- name: assure scanner user sudoers rule
|
2022-02-23 16:02:33 -06:00
|
|
|
lineinfile: path=/etc/sudoers line="scanner ALL=(ALL:ALL) NOPASSWD:ALL" state=absent
|
2021-12-30 10:04:18 -06:00
|
|
|
tags: [ scanner, greenbone ]
|