Merge pull request 'fix-pretalx-state-start' (#15) from fix-pretalx-state-start into master
Reviewed-on: #15
This commit is contained in:
commit
c9c1049c4d
@ -6,6 +6,7 @@
|
|||||||
- name: PREP LXD -- Check if ubuntu minimal repo already added.
|
- name: PREP LXD -- Check if ubuntu minimal repo already added.
|
||||||
shell: lxc remote list | grep ubuntu-minimal | wc -l
|
shell: lxc remote list | grep ubuntu-minimal | wc -l
|
||||||
register: ubuntu_minimal_repo
|
register: ubuntu_minimal_repo
|
||||||
|
check_mode: no
|
||||||
- name: PREP LXD -- Add ubuntu minimal repo
|
- name: PREP LXD -- Add ubuntu minimal repo
|
||||||
command: lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/
|
command: lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/
|
||||||
when: ubuntu_minimal_repo.stdout != "1"
|
when: ubuntu_minimal_repo.stdout != "1"
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Create lxd containers
|
- name: Create lxd containers
|
||||||
community.general.lxd_container:
|
community.general.lxd_container:
|
||||||
name: '{{ item }}'
|
name: '{{ item.name }}'
|
||||||
state: started
|
state: '{{ item.state }}'
|
||||||
source:
|
source:
|
||||||
type: image
|
type: image
|
||||||
mode: pull
|
mode: pull
|
||||||
@ -17,10 +17,10 @@
|
|||||||
wait_for_ipv4_addresses: true
|
wait_for_ipv4_addresses: true
|
||||||
timeout: 600
|
timeout: 600
|
||||||
with_items:
|
with_items:
|
||||||
- haproxy
|
- { name: haproxy, state: started }
|
||||||
- gitea
|
- { name: gitea, state: started }
|
||||||
- freescout
|
- { name: freescout, state: started }
|
||||||
- pretalx
|
- { name: pretalx, state: stopped }
|
||||||
- name: Create haproxy port forwards
|
- name: Create haproxy port forwards
|
||||||
community.general.lxd_container:
|
community.general.lxd_container:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: HAPROXY -- install
|
- name: HAPROXY -- install
|
||||||
hosts: haproxy@git.ansol.org
|
hosts: haproxy@lxd.ansol.org
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: HAPROXY -- install needed packages
|
- name: HAPROXY -- install needed packages
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: GITEA -- install
|
- name: GITEA -- install
|
||||||
hosts: gitea@git.ansol.org
|
hosts: gitea@lxd.ansol.org
|
||||||
roles:
|
roles:
|
||||||
- { role: do1jlr.gitea, tags: gitea }
|
- { role: do1jlr.gitea, tags: gitea }
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user