23 lines
583 B
YAML
23 lines
583 B
YAML
---
|
|
# tasks file for ansible
|
|
|
|
- name: Déployer le mot de passe vault
|
|
ansible.builtin.copy:
|
|
dest: "~{{ elbisna_user }}/.ansible_vault_passwd"
|
|
content: "{{ elbisna_vault_passwd }}"
|
|
owner: "{{ elbisna_user }}"
|
|
group: "{{ elbisna_group }}"
|
|
mode: u=rw,g=,o=
|
|
when: elbisna_vault_passwd | length > 0
|
|
become: true
|
|
diff: false
|
|
|
|
- name: Déployer la configuration
|
|
ansible.builtin.template:
|
|
src: ansible.cfg.j2
|
|
dest: "~{{ elbisna_user }}/.ansible.cfg"
|
|
owner: "{{ elbisna_user }}"
|
|
group: "{{ elbisna_group }}"
|
|
mode: u=rw,g=r,o=r
|
|
become: true
|