generated from the-liberated-edge/wikijs
i-8 Implements image creation and publishing in playbook (#22)
# Issue This PR implements the-liberated-edge/test_linux_containers#8 # Acceptance criteria - [x] The existing playbook has been amended, so that it creates and publishes container images to an incus server running locally. - [x] Container image name has been parameterised and provided as an Ansible variable. Co-authored-by: Emil <emil@theliberatededge.org> Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
23
playbooks/image_published_locally.yml
Normal file
23
playbooks/image_published_locally.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- 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: 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
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- name: launch linux container
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Create a test container image template
|
||||
ansible.builtin.import_role:
|
||||
name: linux_container
|
||||
Reference in New Issue
Block a user