Files
configs/playbooks/roles/base_terminal/tasks/config.yml
2024-10-08 20:55:20 +02:00

27 lines
576 B
YAML

---
- name: Setup directories
tags:
- config
ansible.builtin.file:
mode: "{{ item.mode }}"
path: "{{ home }}/{{ item.path }}"
state: directory
with_community.general.filetree:
- ../files/
loop_control:
label: "{{ item.path }}"
when: item.state == 'directory'
- name: Copy config
tags:
- config
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ home }}/{{ item.path }}"
mode: "{{ item.mode }}"
with_community.general.filetree:
- ../files
loop_control:
label: "{{ item.path }}"
when: item.state == 'file'