summaryrefslogtreecommitdiff
path: root/roles/greenbone/target/tasks/main.yml
blob: 8acc10cb9b55def6bfe5b1eb4e08070f23992bdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: create user for greenbone local security checks
  user:
    name: "{{ greenbone_target_username }}"
    home: /var/lib/greenbone
    create_home: yes
    shell: /bin/bash
    system: yes
    state: present

- name: install ssh keys for greenbone local security checks
  authorized_key:
    user: "{{ greenbone_target_username }}"
    key: "{{ greenbone_target_user_ssh_keys | join('\n') }}"
    exclusive: yes