You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
506 B
YAML
24 lines
506 B
YAML
6 years ago
|
---
|
||
|
|
||
|
- name: Create group for access to ansible credentials
|
||
|
group:
|
||
|
name: ansible-credentials # TODO Export to variable
|
||
|
state: present
|
||
|
system: yes
|
||
|
|
||
|
- name: Configure storage for ansible credentials
|
||
|
file:
|
||
|
path: "/etc/ansible-credentials" # TODO Export to variable
|
||
|
state: directory
|
||
|
owner: root
|
||
|
group: ansible-credentials
|
||
|
mode: 0770
|
||
|
|
||
|
- name: Allow access to ansible credentials
|
||
|
user:
|
||
|
append: yes
|
||
|
name: "{{ ansible_user }}"
|
||
|
groups:
|
||
|
- ansible-credentials
|
||
|
|