Skip to content

Commit 49439f2

Browse files
committed
fix export.yml for inactive configs
1 parent 0152960 commit 49439f2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
enable_compute: "{{ os_metadata.meta.compute | default(false) | bool }}"
1010
enable_resolv_conf: "{{ os_metadata.meta.resolv_conf | default(false) | bool }}"
1111
enable_etc_hosts: "{{ os_metadata.meta.etc_hosts | default(false) | bool }}"
12+
enable_sssd: "{{ os_metadata.meta.sssd | default(false) | bool }}"
1213
enable_tuned: "{{ os_metadata.meta.tuned | default(false) | bool }}"
1314
enable_nfs: "{{ os_metadata.meta.nfs | default(false) | bool }}"
1415
enable_manila: "{{ os_metadata.meta.manila | default(false) | bool }}"

ansible/roles/compute_init/tasks/export.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,7 @@
9393
dest: sssd.conf
9494
- src: "{{ sshd_conf_src }}"
9595
dest: sshd.conf
96-
delegate_to: "{{ groups['control'] | first }}"
96+
when:
97+
- item.src is defined
98+
- item.src != ''
99+
delegate_to: "{{ groups['control'] | first }}"

0 commit comments

Comments
 (0)