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.
ansible/roles/common/tasks/credentials.yml

24 lines
506 B
YAML

---
- 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