Move playbooks in a separate directory
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
4814d7d6ae
commit
680b09ca2c
@ -1,7 +1,9 @@
|
||||
[defaults]
|
||||
# Explicitely redefined some defaults to make play execution work
|
||||
roles_path = ./roles
|
||||
|
||||
inventory = ./hosts
|
||||
timeout = 60
|
||||
# ask_vault_pass = True
|
||||
|
||||
[privilege_escalation]
|
||||
become = True
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
glob_apt:
|
||||
mirror: "http://mirror.crans.org/"
|
||||
backports: false
|
||||
extra_repositories: []
|
||||
pin:
|
||||
bullseye: []
|
||||
|
7
plays/apt.yml
Executable file
7
plays/apt.yml
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: debian
|
||||
vars:
|
||||
apt: "{{ glob_apt | default({}) | combine(service_apt | default({})) | combine(loc_apt | default({})) }}"
|
||||
roles:
|
||||
- apt
|
@ -1,10 +1,7 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: debian
|
||||
vars:
|
||||
apt: "{{ glob_apt | default({}) | combine(service_apt | default({})) | combine(loc_apt | default({})) }}"
|
||||
roles:
|
||||
- apt
|
||||
|
||||
- import_playbook: apt.yml
|
||||
|
||||
- hosts: all
|
||||
roles:
|
@ -12,7 +12,7 @@ deb {{ apt.mirror }}debian {{ ansible_distribution_release }} main contrib n
|
||||
# Dépôt pour mises à jour fréquentes (volatile)
|
||||
deb {{ apt.mirror }}debian {{ ansible_distribution_release }}-updates main contrib non-free
|
||||
|
||||
{% if backports | default(false) %}
|
||||
{% if apt.backports | default(false) %}
|
||||
# Backports
|
||||
deb {{ apt.mirror }}debian {{ ansible_distribution_release }}-backports main contrib non-free
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user