chore: remote old docker roles
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
# defaults file for docker
|
|
@@ -1,52 +0,0 @@
|
|||||||
galaxy_info:
|
|
||||||
author: Matthew McKinnon
|
|
||||||
description: Mounting NFS filesystem
|
|
||||||
company: support@comprofix.com
|
|
||||||
|
|
||||||
# If the issue tracker for your role is not on github, uncomment the
|
|
||||||
# next line and provide a value
|
|
||||||
# issue_tracker_url: http://example.com/issue/tracker
|
|
||||||
|
|
||||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
|
||||||
# - BSD-3-Clause (default)
|
|
||||||
# - MIT
|
|
||||||
# - GPL-2.0-or-later
|
|
||||||
# - GPL-3.0-only
|
|
||||||
# - Apache-2.0
|
|
||||||
# - CC-BY-4.0
|
|
||||||
license: license (GPL-2.0-or-later, MIT, etc)
|
|
||||||
|
|
||||||
min_ansible_version: 2.1
|
|
||||||
|
|
||||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
|
||||||
# min_ansible_container_version:
|
|
||||||
|
|
||||||
#
|
|
||||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
|
||||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
|
||||||
# To view available platforms and versions (or releases), visit:
|
|
||||||
# https://galaxy.ansible.com/api/v1/platforms/
|
|
||||||
#
|
|
||||||
# platforms:
|
|
||||||
# - name: Fedora
|
|
||||||
# versions:
|
|
||||||
# - all
|
|
||||||
# - 25
|
|
||||||
# - name: SomePlatform
|
|
||||||
# versions:
|
|
||||||
# - all
|
|
||||||
# - 1.0
|
|
||||||
# - 7
|
|
||||||
# - 99.99
|
|
||||||
|
|
||||||
galaxy_tags: []
|
|
||||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
|
||||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
|
||||||
# remove the '[]' above, if you add tags to this list.
|
|
||||||
#
|
|
||||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
|
||||||
# Maximum 20 tags per role.
|
|
||||||
|
|
||||||
dependencies: []
|
|
||||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
|
||||||
# if you add dependencies to this list.
|
|
@@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Add Docker apt key.
|
|
||||||
ansible.builtin.get_url:
|
|
||||||
url: "{{ docker_apt_gpg_key }}"
|
|
||||||
dest: /etc/apt/trusted.gpg.d/docker.asc
|
|
||||||
mode: "0644"
|
|
||||||
force: false
|
|
||||||
checksum: "{{ docker_apt_gpg_key_checksum | default(omit) }}"
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: Add Docker repository.
|
|
||||||
apt_repository:
|
|
||||||
repo: "{{ docker_apt_repository }}"
|
|
||||||
state: present
|
|
||||||
filename: "{{ docker_apt_filename }}"
|
|
||||||
update_cache: true
|
|
||||||
|
|
||||||
- name: Install Docker packages.
|
|
||||||
package:
|
|
||||||
name: "{{ docker_packages }}"
|
|
||||||
state: "present"
|
|
||||||
|
|
||||||
- name: Install Docker Module for Python
|
|
||||||
pip:
|
|
||||||
name:
|
|
||||||
- PyYAML==5.3.1
|
|
||||||
- docker
|
|
||||||
- docker-compose
|
|
||||||
- pymysql
|
|
||||||
- passlib
|
|
||||||
state: "present"
|
|
||||||
|
|
||||||
- name: Ensure docker users are added to the docker group.
|
|
||||||
user:
|
|
||||||
name: "{{ item }}"
|
|
||||||
groups: docker
|
|
||||||
append: true
|
|
||||||
with_items: "{{ docker_users }}"
|
|
||||||
|
|
||||||
- name: Reset ssh connection to apply user changes.
|
|
||||||
meta: reset_connection
|
|
||||||
|
|
||||||
- name: Setup cron job for backup
|
|
||||||
cron:
|
|
||||||
name: Docker Prune
|
|
||||||
weekday: 0
|
|
||||||
minute: 0
|
|
||||||
hour: 5
|
|
||||||
job: "docker system prune -af && docker image prune -af && docker system prune -af --volumes"
|
|
@@ -1,51 +0,0 @@
|
|||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
30303336393836323166313035666363396230656461306165633961363865396134633962366131
|
|
||||||
6630663166356634643436326238646530666535653730380a383336343136373666623830663936
|
|
||||||
64346335666637626231396663323537653139326432616630373337616261393137363932613066
|
|
||||||
3166373635336530370a343937636638636430383064333331616632373630616561653836333264
|
|
||||||
66323033373032353163343466363162643965396531656433383035356239376230323730626432
|
|
||||||
36663362373834366436646566363232313965666133383138346561303263663436313433643063
|
|
||||||
34353035613030653330343963346635663061343665383332646461373631353832386537626336
|
|
||||||
34336364653966393231356630396464363534323533633437353062666330356164613736633966
|
|
||||||
62623265336637303762646331336562333837303734326462356561646131373939303434333330
|
|
||||||
39613161666364393033653339613537633161663563323963393839323037656164663137356638
|
|
||||||
39323637336337353434383066633937393237396133326631366165666564393038633465653164
|
|
||||||
65663138336439633965333765383939386538363233376231633433336337633630653266643764
|
|
||||||
36316439306164336533666133663636336566333835633336613231626539653762663431643638
|
|
||||||
62306365303362386433623931626663623564383331363339386537613431363532333266383632
|
|
||||||
62663564373765333632623231626537303161303636333361366566306463306465316366353731
|
|
||||||
63653437626134663364666639623538306338643634383330616331313032303336316238353165
|
|
||||||
30366264366434313934393633326236653962313537393139373630323264326437643234383832
|
|
||||||
32366238643736306334613134383462376165326331353435613566393739376238393833303266
|
|
||||||
35663435663763306132386434376134363635643733666634343738663030623035333330373238
|
|
||||||
30303264303761316437623133383333666139343738623631363432623632613439653932383863
|
|
||||||
31663761366134623137363764663563343531636562663331346437393738363463613930323434
|
|
||||||
31636165666435383063643330353733353362323361323839316362633531326261313337333937
|
|
||||||
34646262316432343135393461333463633034303230663932363033623538323933376635386264
|
|
||||||
66333163623731383434623630306332343431326666366561653333626366373538303035373064
|
|
||||||
65653832356264633761333934613837393139643630346631653830616535613336636563643562
|
|
||||||
61613736336261366161353933373731373733663961313766343036656262643864616234393235
|
|
||||||
65323636613835626563633730366135336563653738363161303136323765626234393537343963
|
|
||||||
65646661316566373436356261353965613566623939376435653236623662353936393637313436
|
|
||||||
31336134333432303234636237623031346262326632393230373563663365323032383033363730
|
|
||||||
33336466623739623539396666663862343530616163323838643231666166376239333561626562
|
|
||||||
31663537343666633738343066646136386461643133653762623331613530343865643531656430
|
|
||||||
35333138353063626136333934666262636564323462353532346661336430343030323533333436
|
|
||||||
31656431343662666266383839666131393761333836336132316333383434626662366430636464
|
|
||||||
36663334613236323461646265666331313339373731623933613136383565386235666134623435
|
|
||||||
61636239393236366630656163353065393438326234313739653834623162633865323366373534
|
|
||||||
37353965323762633032393230353361356539653565663233383165353132646638643430303663
|
|
||||||
63323238646436346232633737656461346338353238633362326239616566336633643930653664
|
|
||||||
30353133333362343034366237326630663930393830333363653733316263643131353736623335
|
|
||||||
65316565303639383333356635646634646563376639346436303539366333393231396237653031
|
|
||||||
33313862336235396532316336376565326235353962373062366565376565393532623266373633
|
|
||||||
33333936393765653135376338323061373339366163353362656338653231646330616636383536
|
|
||||||
30343030383936373931303131626536663337333230356438623262653536343432313330306434
|
|
||||||
35653661343561396237626136383232656261323132613863336566353933306430663533363036
|
|
||||||
35313162383866633233366130356231313535656538613461393233663034306534313834646265
|
|
||||||
36353831623065653337653466353766303936303638643038623932663363346130653735323736
|
|
||||||
33666161343338653434366664353061303439353739343030353533363533373961316664613561
|
|
||||||
32633437353235643432616661366438346362613961303238636337616566356134383335386335
|
|
||||||
65343733666436613332663735343736643931383433613964373664356637646537323737653834
|
|
||||||
31373337623339373639636330386135346136323932613662393763656261363461323366363138
|
|
||||||
3363333138343666393539393834623835383333386363346535
|
|
@@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
# vars file for docker
|
|
||||||
docker_edition: 'ce'
|
|
||||||
docker_packages:
|
|
||||||
- "docker-{{ docker_edition }}"
|
|
||||||
- "docker-{{ docker_edition }}-cli"
|
|
||||||
- "docker-{{ docker_edition }}-rootless-extras"
|
|
||||||
- "containerd.io"
|
|
||||||
- "docker"
|
|
||||||
- "docker-compose-plugin"
|
|
||||||
# Docker repo URL.
|
|
||||||
docker_url: https://download.docker.com/linux
|
|
||||||
docker_apt_repository: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/docker.asc] {{docker_url}}/{{ ansible_distribution | lower}} {{ansible_distribution_release}} stable"
|
|
||||||
docker_apt_ignore_key_error: true
|
|
||||||
docker_apt_gpg_key: "{{ docker_url }}/{{ ansible_distribution | lower }}/gpg"
|
|
||||||
docker_apt_gpg_key_checksum: "sha256:1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570"
|
|
||||||
docker_apt_filename: "docker"
|
|
||||||
# A list of users who will be added to the docker group.
|
|
||||||
docker_users: [administrator] # CHANGE_ME!!! - Add addition users.
|
|
||||||
# Docker daemon options as a dict
|
|
||||||
docker_daemon_options: {}
|
|
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
curl -H "Content-Type: application/json" -d '{"text": "Cloud-init provisioning has been completed on '"$(hostname)"'!"}' "{{ TEAMS }}"
|
|
@@ -1,42 +0,0 @@
|
|||||||
- name: Create directories
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
with_items:
|
|
||||||
- "{{ data_folder }}/gitea-runner"
|
|
||||||
- "{{ data_folder }}/gitea-runner/config"
|
|
||||||
|
|
||||||
- name: Check that config.yaml exists
|
|
||||||
stat:
|
|
||||||
path: "{{ data_folder }}/gitea-runner/config/config.yaml"
|
|
||||||
register: configyaml
|
|
||||||
|
|
||||||
- name: Create config.yaml file
|
|
||||||
file:
|
|
||||||
path: "{{ data_folder }}/gitea-runner/config/config.yaml"
|
|
||||||
state: touch
|
|
||||||
mode: "0600"
|
|
||||||
access_time: preserve
|
|
||||||
modification_time: preserve
|
|
||||||
when: configyaml.stat.exists == False
|
|
||||||
|
|
||||||
- name: Create the gitea-runner container
|
|
||||||
docker_container:
|
|
||||||
name: gitea-runner
|
|
||||||
image: gitea/act_runner:0.2.13
|
|
||||||
restart_policy: unless-stopped
|
|
||||||
recreate: true
|
|
||||||
# dns_servers:a
|
|
||||||
# - 10.10.10.1
|
|
||||||
# - 127.0.0.11
|
|
||||||
volumes:
|
|
||||||
- "/etc/resolv.conf:/etc/resolv.conf:ro"
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- "{{ data_folder }}/gitea-runner/config/config.yaml:/config.yaml"
|
|
||||||
- "/etc/hosts:/etc/hosts:ro"
|
|
||||||
env:
|
|
||||||
CONFIG_FILE: "/config.yaml"
|
|
||||||
GITEA_INSTANCE_URL: "https://git.comprofix.com"
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}"
|
|
||||||
GITEA_RUNNER_NAME: "homelab-runner"
|
|
||||||
GITEA_RUNNER_LABELS: "alpine-latest:docker://{{ alpine_latest_image }},ubuntu-latest:docker://{{ ubuntu_latest_image }},homelab-latest:docker://{{ debian_latest_image }}"
|
|
@@ -1,3 +0,0 @@
|
|||||||
alpine_latest_image: "alpine:latest"
|
|
||||||
ubuntu_latest_image: "node:22-trixie"
|
|
||||||
debian_latest_image: "git.comprofix.com/mmckinnon/debian-latest:2025.08.31-093853"
|
|
Reference in New Issue
Block a user