summaryrefslogtreecommitdiff
path: root/roles/greenbone/target/tasks/main.yml
blob: 4c019e5a28b6c108ebf4102e774b8966858e9d62 (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/sh
    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