ft_chatons/ansible/playbooks/start-chatons.yml
2026-03-02 15:31:24 +01:00

22 lines
540 B
YAML

---
- name: Configure ft_chatons base VM
hosts: ft_chatons
become: yes
tasks:
- name: Delete old project
file:
path: "/home/{{ ansible_user }}/projects/ft_chatons"
state: absent
- name: Copy the project to the VM
include_tasks: tasks/copy-to-vm.yml
- name: Ensure project directory exists
file:
path: "/home/{{ ansible_user }}/projects/ft_chatons"
state: directory
mode: '0755'
become: no
- name: Re all services
include_tasks: tasks/restart.yml