From bbbbd94101cd3d34e64f4b9b7a4dd88c152cac2f Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 5 Feb 2020 08:20:07 +0100 Subject: [PATCH] pre-install: use path and drop dest We have a few checks that depend on the value of path and dest is an alias of path anyways so we should just always use path instead. Change-Id: I38ed2b120ece1268ccfe519c94bda038571a99b7 --- tasks/nova_pre_install.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasks/nova_pre_install.yml b/tasks/nova_pre_install.yml index 20ad5408..9fa24f11 100644 --- a/tasks/nova_pre_install.yml +++ b/tasks/nova_pre_install.yml @@ -84,9 +84,8 @@ - name: Create nova dir file: - path: "{{ item.path | default(omit) }}" + path: "{{ item.path }}" src: "{{ item.src | default(omit) }}" - dest: "{{ item.dest | default(omit) }}" state: "{{ item.state | default('directory') }}" owner: "{{ item.owner|default(nova_system_user_name) }}" group: "{{ item.group|default(nova_system_group_name) }}" @@ -104,7 +103,7 @@ # NOTE(cloudnull): The "src" path is relative. This ensures all files remain # within the host/container confines when connecting to # them using the connection plugin or the root filesystem. - - dest: "/etc/nova" + - path: "/etc/nova" src: "{{ nova_bin | dirname | regex_replace('^/', '../') }}/etc/nova" state: link force: true