2023-06-19 15:12:18 +02:00
|
|
|
---
|
|
|
|
- name: "Server | Write server startpage"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: servers.txt.j2
|
|
|
|
dest: "{{ cmdb.wiki_pages_path }}/servers.txt"
|
2023-08-13 22:05:45 +02:00
|
|
|
owner: "{{ cmdb.wiki_user }}"
|
2023-07-14 16:10:28 +02:00
|
|
|
group: "{{ cmdb.wiki_group }}"
|
2023-06-19 15:12:18 +02:00
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
- name: "Server | Write startpage for all servers"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: all.txt.j2
|
|
|
|
dest: "{{ cmdb.wiki_pages_path }}/servers/all.txt"
|
2023-08-13 22:05:45 +02:00
|
|
|
owner: "{{ cmdb.wiki_user }}"
|
2023-07-14 16:10:28 +02:00
|
|
|
group: "{{ cmdb.wiki_group }}"
|
2023-06-19 15:12:18 +02:00
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
- name: "Server | Write server item"
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: item.txt.j2
|
|
|
|
dest: "{{ cmdb.wiki_pages_path }}/servers/all/{{ inventory_hostname }}.txt"
|
2023-08-13 22:05:45 +02:00
|
|
|
owner: "{{ cmdb.wiki_user }}"
|
2023-07-14 16:10:28 +02:00
|
|
|
group: "{{ cmdb.wiki_group }}"
|
2023-06-19 15:12:18 +02:00
|
|
|
mode: "0644"
|
|
|
|
tags: server_item
|