forked from stove/risotto
29 lines
773 B
YAML
29 lines
773 B
YAML
|
---
|
||
|
#FIXME : si on redemarre a appel tmpfiles.d ....
|
||
|
- name: Risotto
|
||
|
hosts: cloud.silique.fr
|
||
|
tasks:
|
||
|
- name: "Configure the host"
|
||
|
include_tasks: host.yml
|
||
|
when: configure_host == true
|
||
|
|
||
|
- name: "Remove compressed files directory"
|
||
|
local_action:
|
||
|
module: file
|
||
|
path: /tmp/new_configurations
|
||
|
state: absent
|
||
|
|
||
|
- name: "Create compressed configuration files directory"
|
||
|
local_action:
|
||
|
module: file
|
||
|
path: /tmp/new_configurations
|
||
|
state: directory
|
||
|
mode: 0700
|
||
|
|
||
|
- name: "Prepare machine configuration"
|
||
|
include_tasks: machine.yml
|
||
|
loop: "{{ vars | machineslist(only=only_machine) }}"
|
||
|
|
||
|
- name: "Install and apply configurations"
|
||
|
include_tasks: machines.yml
|