Splitting up the site file
This commit is contained in:
41
gitea.yml
Normal file
41
gitea.yml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
- 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
|
||||||
17
minecraft.yml
Normal file
17
minecraft.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
- name: Minecraft Systems - MineOS
|
||||||
|
hosts: tag_mc_mineos:&tag_ansible
|
||||||
|
become: true
|
||||||
|
vars:
|
||||||
|
nodejs_version: "8.x"
|
||||||
|
mineos_repo: "https://github.com/sage905/mineos-node.git"
|
||||||
|
mineos_version: "pam_auth"
|
||||||
|
roles:
|
||||||
|
- ansible-role-nodejs
|
||||||
|
- sage905.mineos
|
||||||
|
|
||||||
|
- name: Minecraft Systems - Mark2
|
||||||
|
hosts: tag_mc_mark2:&tag_ansible
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- sage905.mark2
|
||||||
|
- sage905.waterfall
|
||||||
70
site.yml
70
site.yml
@@ -12,7 +12,7 @@
|
|||||||
- name: Set network os type for Cisco
|
- name: Set network os type for Cisco
|
||||||
set_fact: ansible_network_os="ios"
|
set_fact: ansible_network_os="ios"
|
||||||
when: "'Cisco IOS' in platforms"
|
when: "'Cisco IOS' in platforms"
|
||||||
|
|
||||||
- name: Configure infrastructure
|
- name: Configure infrastructure
|
||||||
hosts: switch01
|
hosts: switch01
|
||||||
become_method: enable
|
become_method: enable
|
||||||
@@ -22,68 +22,8 @@
|
|||||||
roles:
|
roles:
|
||||||
- toallab.infrastructure
|
- toallab.infrastructure
|
||||||
|
|
||||||
- name: Ansible Red Demo Environment
|
- name: Include Minecraft tasks
|
||||||
hosts: ansible_red
|
include_tasks: minecraft.yml
|
||||||
become: false
|
|
||||||
roles:
|
|
||||||
- lightbulb-ansiblered-deck
|
|
||||||
|
|
||||||
- name: Minecraft Systems - MineOS
|
- name: Include Gitea tasks
|
||||||
hosts: tag_mc_mineos:&tag_ansible
|
include_tasks: gitea.yml
|
||||||
become: true
|
|
||||||
vars:
|
|
||||||
nodejs_version: "8.x"
|
|
||||||
mineos_repo: "https://github.com/sage905/mineos-node.git"
|
|
||||||
mineos_version: "pam_auth"
|
|
||||||
roles:
|
|
||||||
- ansible-role-nodejs
|
|
||||||
- sage905.mineos
|
|
||||||
|
|
||||||
- name: Minecraft Systems - Mark2
|
|
||||||
hosts: tag_mc_mark2:&tag_ansible
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user