generated from the-liberated-edge/wikijs
Adds image creation and publishing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user