hcp-ansible/roles/cni/tasks/prerequisites.yml
Bertrand Lanson 09d0304748
All checks were successful
development / Check commit compliance (push) Successful in 32s
feat(cni): add specialized role ton install cni plugins
2024-07-22 22:26:24 +02:00

22 lines
570 B
YAML

---
# task/prerequisites file for cni
- name: "CNI Plugins | Create group {{ cni_group }}"
ansible.builtin.group:
name: "{{ cni_user }}"
state: present
- name: "CNI Plugins | Create user {{ cni_user }}"
ansible.builtin.user:
name: "{{ cni_user }}"
group: "{{ cni_group }}"
shell: /bin/false
state: present
- name: "CNI Plugins | Create directory {{ cni_plugins_install_path }}"
ansible.builtin.file:
path: "{{ cni_plugins_install_path }}"
state: directory
owner: "{{ cni_user }}"
group: "{{ cni_group }}"
mode: "0755"