risotto/ansible/machine.yml

16 lines
503 B
YAML
Raw Normal View History

2022-10-01 22:33:11 +02:00
- name: "Create SRV directory for {{ item.name}}"
2022-12-21 16:35:58 +01:00
file:
2023-01-23 20:23:32 +01:00
path: /var/lib/risotto/srv/{{ item.name }}
2022-12-21 16:35:58 +01:00
state: directory
2023-01-23 20:23:32 +01:00
mode: 0755
when: "item.srv"
2023-01-23 20:23:32 +01:00
- name: "Create journald directory for {{ item.name }}"
2022-10-01 22:33:11 +02:00
file:
2023-01-23 20:23:32 +01:00
path: /var/lib/risotto/journals/{{ item.name }}
2022-10-01 22:33:11 +02:00
state: directory
2023-01-23 20:23:32 +01:00
mode: 0755
2022-10-01 22:33:11 +02:00
2023-01-23 20:23:32 +01:00
- name: "Create informations for {{ item.name }}"
ansible.builtin.shell: "/usr/bin/echo {{ vars | modulename(item.name) }} > /var/lib/risotto/machines_informations/{{ item.name }}.image"