simplify project folder structure

This commit is contained in:
emo
2023-12-02 01:23:47 +01:00
parent 01a5837980
commit 46a0ea86ce
21 changed files with 2 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
---
- name: find current container state
ansible.builtin.command: lxc ls {{ lte_container_name }}
register: container_state
changed_when: false
- name: launch debian bookworm linux container
ansible.builtin.shell:
cmd: |
lxc launch \
images:debian/{{ lte_debian_version }}/cloud \
{{ lte_container_name }}
when: (container_state.rc == 1) or ("RUNNING" not in container_state.stdout)
- name: update apt cache and upgrade system packages
ansible.builtin.shell:
cmd: |-
lxc exec {{ lte_container_name }} -- \
bash -c \
'/usr/bin/apt update && /usr/bin/apt upgrade -y'
changed_when: false