Merge pull request 'fix-pretalx-state-start' (#15) from fix-pretalx-state-start into master

Reviewed-on: #15
This commit is contained in:
Hugo Peixoto 2022-08-03 12:44:28 +00:00
commit c9c1049c4d
5 changed files with 12 additions and 11 deletions

View File

@ -6,6 +6,7 @@
- name: PREP LXD -- Check if ubuntu minimal repo already added.
shell: lxc remote list | grep ubuntu-minimal | wc -l
register: ubuntu_minimal_repo
check_mode: no
- name: PREP LXD -- Add ubuntu minimal repo
command: lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/
when: ubuntu_minimal_repo.stdout != "1"

View File

@ -5,8 +5,8 @@
tasks:
- name: Create lxd containers
community.general.lxd_container:
name: '{{ item }}'
state: started
name: '{{ item.name }}'
state: '{{ item.state }}'
source:
type: image
mode: pull
@ -17,10 +17,10 @@
wait_for_ipv4_addresses: true
timeout: 600
with_items:
- haproxy
- gitea
- freescout
- pretalx
- { name: haproxy, state: started }
- { name: gitea, state: started }
- { name: freescout, state: started }
- { name: pretalx, state: stopped }
- name: Create haproxy port forwards
community.general.lxd_container:
name: haproxy

View File

@ -1,6 +1,6 @@
---
- name: HAPROXY -- install
hosts: haproxy@git.ansol.org
hosts: haproxy@lxd.ansol.org
become: true
tasks:
- name: HAPROXY -- install needed packages

View File

@ -1,6 +1,6 @@
---
- name: GITEA -- install
hosts: gitea@git.ansol.org
hosts: gitea@lxd.ansol.org
roles:
- { role: do1jlr.gitea, tags: gitea }
vars:

6
hosts
View File

@ -1,6 +1,6 @@
[lxd_hosts]
git.ansol.org
lxd.ansol.org
[containers]
haproxy@git.ansol.org ansible_connection=sshlxd
gitea@git.ansol.org ansible_connection=sshlxd
haproxy@lxd.ansol.org ansible_connection=sshlxd
gitea@lxd.ansol.org ansible_connection=sshlxd