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
|
|
|
|
user: name=scanner password="!" state=present
|
|
|
|
tags: [ scanner, greenbone ]
|
|
|
|
- name: assure scanner user sudoers rule
|
2021-12-30 10:12:44 -06:00
|
|
|
lineinfile: path=/etc/sudoers line="scanner ALL=(ALL:ALL) NOPASSWD:ALL"
|
2021-12-30 10:04:18 -06:00
|
|
|
tags: [ scanner, greenbone ]
|
|
|
|
- name: assure scanner user authorized keys
|
|
|
|
authorized_key:
|
|
|
|
user: scanner
|
|
|
|
key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCTtAXbh9IDD0dYIJhtWiOtmAYgH5ul5aMksb9RtdUa04DkZ2tcxIay9Wm/84yxultevvpOlFcKGNaBiLVHknkYO/eLS6W38xXy40DcIMRgzpWOu54hvL6jzzhbdupUkO+f6UGEE3j/uEnkoCKUbj0NMMDQgC/5t2N4lysuGeZMMOL85UdEmXdul4lQLlDywIo3P1cifxaRfnADgqQnt3zSlgIwKJi2Vjyh4A1Xox2wn8fQXs+MfuclVdWQlDkKFMuDdQdZnGUnqKjuEE1PZe/jDxTgjGBU3t3v8m2gRxZQyll6Ju6Z5oeBI6LN0P/Dt7XKyWmrWaub0pLDmklWqU0g+aUj5oiokvf/3A27EIoP5ifSK760B8DPZHLgM2OZhsUzUaYy36yFx3Le25iGlDWjIy9GZo1iZXp558I5VKLh4uUL4MjhvL5UpMLa4NL4VrHvrjzMbWquNvsMYVgk6Y07VaVcg43wTdcX6Jzxzd6IvGVBS1kXZC3kZeqU+zUYbQE="
|
|
|
|
tags: [ scanner, greenbone ]
|