ansible-role-cmdb/tasks/install.yml
2023-06-19 15:12:18 +02:00

26 lines
753 B
YAML

---
- name: "Install | Setup Wiki folder structur"
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: "{{ cmdb.wiki_dir_mode }}"
owner: "{{ cmdb.wiki_user }}"
group: "{{ cmdb.wiki_group }}"
run_once: true
loop:
- "{{ cmdb.wiki_pages_path }}"
- "{{ cmdb.wiki_pages_path }}/servers"
- "{{ cmdb.wiki_pages_path }}/servers/all"
- "{{ cmdb.wiki_pages_path }}/servers/hypervisor"
- name: "Install | Upload logos"
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ cmdb.wiki_media_path }}/"
mode: "{{ cmdb.wiki_dir_mode }}"
owner: "{{ cmdb.wiki_user }}"
group: "{{ cmdb.wiki_group }}"
run_once: true
loop: "{{ lookup('fileglob', 'logos/*', wantlist=True) }}"
tags:
- logos