Premature optimisation: prevent checksum during stat unless required
This commit is contained in:
parent
cb403208be
commit
6785e6f9e4
@ -15,6 +15,9 @@
|
|||||||
- name: Check whether a Kolla extra globals configuration file exists
|
- name: Check whether a Kolla extra globals configuration file exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ kayobe_config_path ~ '/kolla/globals.yml' }}"
|
path: "{{ kayobe_config_path ~ '/kolla/globals.yml' }}"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: globals_stat
|
register: globals_stat
|
||||||
|
|
||||||
- name: Read the Kolla extra globals configuration file
|
- name: Read the Kolla extra globals configuration file
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
- name: Check whether a Kolla Bifrost extra globals configuration file exists
|
- name: Check whether a Kolla Bifrost extra globals configuration file exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ kolla_bifrost_extra_globals_path }}"
|
path: "{{ kolla_bifrost_extra_globals_path }}"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: globals_stat
|
register: globals_stat
|
||||||
|
|
||||||
- name: Read the Kolla Bifrost extra globals configuration file
|
- name: Read the Kolla Bifrost extra globals configuration file
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
- name: Check whether Kolla extra configuration files exist
|
- name: Check whether Kolla extra configuration files exist
|
||||||
stat:
|
stat:
|
||||||
path: "{{ kayobe_config_path }}/kolla/config/{{ item.file }}"
|
path: "{{ kayobe_config_path }}/kolla/config/{{ item.file }}"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: stat_result
|
register: stat_result
|
||||||
with_items:
|
with_items:
|
||||||
- { name: glance, file: glance.conf }
|
- { name: glance, file: glance.conf }
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
- name: Check whether an SSH key exists
|
- name: Check whether an SSH key exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ bootstrap_ssh_private_key_path }}"
|
path: "{{ bootstrap_ssh_private_key_path }}"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: ssh_key_stat
|
register: ssh_key_stat
|
||||||
|
|
||||||
- name: Generate an SSH key
|
- name: Generate an SSH key
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
- name: Check whether the Kolla passwords file exists
|
- name: Check whether the Kolla passwords file exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ kolla_config_path }}/passwords.yml"
|
path: "{{ kolla_config_path }}/passwords.yml"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: kolla_passwords_stat
|
register: kolla_passwords_stat
|
||||||
|
|
||||||
- name: Generate Kolla passwords
|
- name: Generate Kolla passwords
|
||||||
|
@ -80,6 +80,9 @@
|
|||||||
- name: Check the size of the configdrive image
|
- name: Check the size of the configdrive image
|
||||||
stat:
|
stat:
|
||||||
path: "{{ seed_vm_configdrive_path }}"
|
path: "{{ seed_vm_configdrive_path }}"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: stat_result
|
register: stat_result
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
@ -36,6 +36,9 @@
|
|||||||
- name: Check whether an SSH key exists on the controller
|
- name: Check whether an SSH key exists on the controller
|
||||||
stat:
|
stat:
|
||||||
path: "{{ test_ssh_private_key_path }}"
|
path: "{{ test_ssh_private_key_path }}"
|
||||||
|
get_checksum: False
|
||||||
|
get_md5: False
|
||||||
|
mime: False
|
||||||
register: ssh_key_stat
|
register: ssh_key_stat
|
||||||
|
|
||||||
- name: Generate an SSH key on the controller
|
- name: Generate an SSH key on the controller
|
||||||
|
Loading…
x
Reference in New Issue
Block a user