Compare commits

..

No commits in common. "c9c1049c4dda279bbf15c49900cab2cc6957adb6" and "c973dce3c9027a8535d15f93a348b08a1bdd4a87" have entirely different histories.

5 changed files with 11 additions and 12 deletions

View File

@ -6,7 +6,6 @@
- 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.name }}'
state: '{{ item.state }}'
name: '{{ item }}'
state: started
source:
type: image
mode: pull
@ -17,10 +17,10 @@
wait_for_ipv4_addresses: true
timeout: 600
with_items:
- { name: haproxy, state: started }
- { name: gitea, state: started }
- { name: freescout, state: started }
- { name: pretalx, state: stopped }
- haproxy
- gitea
- freescout
- pretalx
- name: Create haproxy port forwards
community.general.lxd_container:
name: haproxy

View File

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

View File

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

6
hosts
View File

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