Fix default playbook inclusion
This commit is contained in:
parent
b9c33d66ce
commit
58dd635d0f
4 changed files with 12 additions and 7 deletions
|
|
@ -15,7 +15,7 @@
|
|||
tags: network
|
||||
|
||||
- name: Network host specific provisioning
|
||||
ansible.builtin.import_tasks: "tasks/network/{{ ansible_hostname }}.yml"
|
||||
ansible.builtin.import_tasks: "tasks/network/{{ hostname }}.yml"
|
||||
tags: network-specific
|
||||
|
||||
- name: Systemd provisioning
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
---
|
||||
- name: Include default playbook
|
||||
ansible.builtin.import_playbook: default.yml
|
||||
vars:
|
||||
hostname: desktop
|
||||
|
||||
- name: Arch Linux provisioning
|
||||
hosts: desktop
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Include default playbook
|
||||
ansible.builtin.import_playbook: default.yml
|
||||
|
||||
- name: Wireguard provisioning
|
||||
ansible.builtin.import_tasks: "tasks/wireguard.yml"
|
||||
tags: wireguard
|
||||
|
|
|
|||
6
htpc.yml
6
htpc.yml
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- hosts: htpc
|
||||
gather_facts: true
|
||||
|
||||
- name: Include default playbook
|
||||
ansible.builtin.import_playbook: default.yml
|
||||
vars:
|
||||
hostname: htpc
|
||||
|
||||
- name: Arch Linux provisioning
|
||||
hosts: htpc
|
||||
gather_facts: true
|
||||
tasks:
|
||||
- name: Wireguard media provisioning
|
||||
ansible.builtin.import_tasks: "tasks/wireguard-media.yml"
|
||||
|
|
|
|||
2
xps.yml
2
xps.yml
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
- name: Include default playbook
|
||||
ansible.builtin.import_playbook: default.yml
|
||||
vars:
|
||||
hostname: xps
|
||||
|
||||
- name: Arch Linux provisioning
|
||||
hosts: xps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue