ansible-role-openpolicyagent/tasks/prepare.yml
Elia El Lazkani 292ca2ef63 Second commit
2019-10-08 00:09:33 +02:00

23 lines
550 B
YAML

---
- name: Create OPA group
group:
name: "{{ openpolicyagent_group }}"
state: present
- name: Create OPA user
user:
name: "{{ openpolicyagent_user }}"
comment: "Open Policy Agent user"
group: "{{ openpolicyagent_group }}"
shell: /bin/nologin
create_home: yes
home: "{{ openpolicyagent_home }}"
state: present
- name: Create OPA bin directory
file:
path: "{{ openpolicyagent_bin }}"
owner: "{{ openpolicyagent_user }}"
group: "{{ openpolicyagent_group }}"
mode: "0755"
state: directory