Adds image creation and publishing

This commit is contained in:
Emil
2024-03-07 02:36:34 +01:00
parent 2b1923e40a
commit da93d7f4b4
13 changed files with 156 additions and 9 deletions

View File

@@ -1,10 +1,23 @@
---
- name: Create and publish Linux container image to a local image server
- name: Create and publish a Linux container image to a local image server
hosts: localhost
gather_facts: false
vars:
- lte_container_name: '{{ lte_image_name }}-container'
tasks:
- name: Create a test container
- name: Launch a test container
ansible.builtin.import_role:
name: linux_container
- name: Stop the newly launched test container
ansible.builtin.import_role:
name: linux_container
vars:
lte_container_state: stopped
- name: Publish container image to local image server
ansible.builtin.import_role:
name: image
- name: Remove intermitent image container
ansible.builtin.import_role:
name: linux_container
vars:
- lte_container_state: absent