-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
40 lines (33 loc) · 1.03 KB
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- hosts: localhost
gather_facts: no
any_errors_fatal: true
tasks:
- name: Generate inventory and host_vars
ansible.builtin.include_role:
name: generator
- hosts: all
gather_facts: no
any_errors_fatal: false
tasks:
- name: Run the netplan!
ansible.builtin.include_role:
name: ansible-netplan
vars:
- netplan_enabled: "{{ netplan_enabled }}"
netplan_config_file: "{{ netplan_config_file }}"
become: yes
- name: Configure hosts
ansible.builtin.include_role:
name: configurator
# roles:
# - role: ansible-netplan
# become: yes
# This role will do nothing unless netplan_enabled is true.
# netplan_enabled: "{{ netplan_enabled }}"
# This should point to an existing netplan configuration file
# on your system which this role will overwrite,
# or to a nonexistent file which netplan is aware of.
#
# The default is /etc/netplan/config.yaml.
# netplan_config_file: "{{ netplan_config_file }}"