|
15 | 15 | msg: "This host does not appear to be in the group {{ pve_group }}, did you specify the pve_group host variable correctly?"
|
16 | 16 | when: pve_cluster_enabled
|
17 | 17 |
|
18 |
| -- include: ssh_cluster_config.yml |
| 18 | +- import_tasks: ssh_cluster_config.yml |
19 | 19 |
|
20 | 20 | - name: Run handlers if needed (sshd reload)
|
21 | 21 | meta: flush_handlers
|
|
76 | 76 | upgrade: yes
|
77 | 77 | when: pve_run_system_upgrades
|
78 | 78 |
|
79 |
| -- include: identify_needed_packages.yml |
| 79 | +- import_tasks: identify_needed_packages.yml |
80 | 80 |
|
81 | 81 | - name: Install Proxmox VE and related packages
|
82 | 82 | apt:
|
|
108 | 108 | when:
|
109 | 109 | - "'pve-no-subscription' in pve_repository_line"
|
110 | 110 |
|
111 |
| -- include: kernel_updates.yml |
| 111 | +- import_tasks: kernel_updates.yml |
112 | 112 |
|
113 |
| -- include: ipmi_watchdog.yml |
| 113 | +- import_tasks: ipmi_watchdog.yml |
114 | 114 | when: pve_watchdog == 'ipmi'
|
115 | 115 |
|
116 |
| -- include: zfs.yml |
| 116 | +- import_tasks: zfs.yml |
117 | 117 | when: pve_zfs_enabled
|
118 | 118 |
|
119 |
| -- include: kernel_module_cleanup.yml |
| 119 | +- import_tasks: kernel_module_cleanup.yml |
120 | 120 |
|
121 |
| -- include: pve_cluster_config.yml |
| 121 | +- import_tasks: pve_cluster_config.yml |
122 | 122 | when: pve_cluster_enabled
|
123 | 123 |
|
124 | 124 | - name: Configure Proxmox groups
|
125 | 125 | proxmox_group:
|
126 |
| - args: "{{ item }}" |
| 126 | + name: "{{ item.name }}" |
| 127 | + comment: "{{ item.comment | default(omit) }}" |
127 | 128 | with_items: "{{ pve_groups }}"
|
128 | 129 | when: "not pve_cluster_enabled or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])"
|
129 | 130 |
|
130 | 131 | - name: Configure Proxmox user accounts
|
131 | 132 | proxmox_user:
|
132 |
| - args: "{{ item }}" |
| 133 | + name: "{{ item.name }}" |
| 134 | + email: "{{ item.email | default(omit) }}" |
| 135 | + firstname: "{{ item.firstname | default(omit) }}" |
| 136 | + lastname: "{{ item.lastname | default(omit) }}" |
| 137 | + groups: "{{ item.groups | default([]) }}" |
133 | 138 | with_items: "{{ pve_users }}"
|
134 | 139 | when: "not pve_cluster_enabled or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])"
|
135 | 140 |
|
136 | 141 | - name: Configure Proxmox ACLs
|
137 | 142 | proxmox_acl:
|
138 |
| - args: "{{ item }}" |
| 143 | + path: "{{ item.path }}" |
| 144 | + roles: "{{ item.roles }}" |
| 145 | + groups: "{{ item.groups | default([]) }}" |
| 146 | + users: "{{ item.users | default([]) }}" |
139 | 147 | with_items: "{{ pve_acls }}"
|
140 | 148 | when: "not pve_cluster_enabled or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])"
|
141 | 149 |
|
142 |
| -- include: ssl_config.yml |
| 150 | +- import_tasks: ssl_config.yml |
143 | 151 | when:
|
144 | 152 | - pve_ssl_private_key is defined
|
145 | 153 | - pve_ssl_certificate is defined
|
146 | 154 |
|
147 |
| -- include: ssl_letsencrypt.yml |
| 155 | +- import_tasks: ssl_letsencrypt.yml |
148 | 156 | when: pve_ssl_letsencrypt
|
0 commit comments