Gitea and rhv updates

This commit is contained in:
2020-03-10 11:55:57 -04:00
parent 8c8d1f9771
commit 19b3b935cd
2 changed files with 55 additions and 13 deletions

View File

@@ -12,6 +12,8 @@
root_certificate: https://letsencrypt.org/certs/trustid-x3-root.pem.txt
domains:
- rhv.mgmt.toal.ca
vars_files:
- /users/ptoal/.ansible/inventories/toallab/secrets.yml
pre_tasks:
- name: Ensure Let's Encrypt Account Exists
@@ -126,4 +128,3 @@
register: networkinfo
- debug: msg="{{networkinfo}}"

View File

@@ -46,3 +46,44 @@
- sage905.mark2
- sage905.waterfall
- name: Ensure Gitea is running on Zenyatta
become: yes
hosts: zenyatta.lab.toal.ca
vars:
container_state: running
container_name: gitea
container_image: gitea/gitea:latest
gitea_nfs_mountpoint: /mnt/gitea
gitea_nfs_src: nas.lab.toal.ca:/mnt/BIGPOOL/BackedUp/git
gitea_dir_owner: ptoal
gitea_dir_group: ptoal
container_run_args: >-
--rm
-p 3000:3000/tcp -p 3222:22/tcp
-v "{{ gitea_nfs_mountpoint }}:/data"
--hostname=gitea.mgmt.toal.ca
--memory=1024M
container_firewall_ports:
- 3000/tcp
- 3222/tcp
tasks:
- name: Ensure container data mount points
tags: mount
file:
path: "{{ gitea_nfs_mountpoint }}"
state: directory
- name: ensure container NFS mounts from NAS
tags: [ mount, nfs ]
mount:
src: "{{ gitea_nfs_src }}"
path: "{{ gitea_nfs_mountpoint }}"
fstype: nfs
opts: rw,rsize=8192,wsize=8192,timeo=14,intr,vers=3
state: mounted
- name: ensure container state
tags: container
import_role:
name: ikke_t.podman_container_systemd