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

19 lines
542 B
YAML

---
- name: "Server | Write server startpage"
ansible.builtin.template:
src: servers.txt.j2
dest: "{{ cmdb.wiki_pages_path }}/servers.txt"
mode: "0644"
- name: "Server | Write startpage for all servers"
ansible.builtin.template:
src: all.txt.j2
dest: "{{ cmdb.wiki_pages_path }}/servers/all.txt"
mode: "0644"
- name: "Server | Write server item"
ansible.builtin.template:
src: item.txt.j2
dest: "{{ cmdb.wiki_pages_path }}/servers/all/{{ inventory_hostname }}.txt"
mode: "0644"
tags: server_item