Merge "Move lxc cache facts setting to where those facts are used."

This commit is contained in:
Zuul 2021-03-02 00:58:17 +00:00 committed by Gerrit Code Review
commit 35adaabc81
2 changed files with 5 additions and 5 deletions

View File

@ -13,6 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Set LXC cache fact(s)
set_fact:
cache_path_fact: "{{ lxc_container_cache_path }}/{{ lxc_cache_map.distro }}/{{ lxc_cache_map.release }}/{{ lxc_cache_map.arch }}/{{ lxc_cache_default_variant }}"
cache_time: "{{ ansible_date_time.epoch }}"
- name: Retrieve the expiry object
slurp:
src: "{{ cache_path_fact }}/expiry"

View File

@ -13,11 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Set LXC cache fact(s)
set_fact:
cache_path_fact: "{{ lxc_container_cache_path }}/{{ lxc_cache_map.distro }}/{{ lxc_cache_map.release }}/{{ lxc_cache_map.arch }}/{{ lxc_cache_default_variant }}"
cache_time: "{{ ansible_date_time.epoch }}"
- name: Legacy image url fetch
block:
- name: Create legacy image URL fetch