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. - 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"

View File

@ -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 }}' name: '{{ item }}'
state: '{{ item.state }}' state: started
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:
- { name: haproxy, state: started } - haproxy
- { name: gitea, state: started } - gitea
- { name: freescout, state: started } - freescout
- { name: pretalx, state: stopped } - pretalx
- name: Create haproxy port forwards - name: Create haproxy port forwards
community.general.lxd_container: community.general.lxd_container:
name: haproxy name: haproxy

View File

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

View File

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

6
hosts
View File

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