From abe2aeceab858d6ad3a838ffe2970a0e9e2a4606 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 20 Jul 2024 16:20:13 -0500 Subject: Initial commit --- playbook.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 playbook.yml (limited to 'playbook.yml') diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 0000000..40177d0 --- /dev/null +++ b/playbook.yml @@ -0,0 +1,68 @@ +- name: Setup kitchen + hosts: localhost + connection: local + tasks: + - name: Create output directory + ansible.builtin.file: + path: ./out/ + state: directory + mode: '0775' + + - name: Create data directory + ansible.builtin.file: + path: ./out/data + state: directory + mode: '0775' + + - name: Clone repos + ansible.builtin.git: + repo: "{{ item }}" + dest: "./out/{{ item | basename }}/" + version: main + loop: + - https://git.marks.kitchen/cgit/journal_api.git + - https://git.marks.kitchen/cgit/docker_cgit.git + - https://github.com/Mark-Powers/cafe_bot.git + + - name: Clone repos + ansible.builtin.git: + repo: "{{ item }}" + dest: "./out/{{ item | basename }}/" + version: master + loop: + - https://git.marks.kitchen/cgit/soundboard.git + - https://git.marks.kitchen/cgit/markskitchen.git + - https://git.marks.kitchen/cgit/games.git + - https://git.marks.kitchen/cgit/tracker-spa.git + - https://git.marks.kitchen/cgit/markskitchen_hugo.git + + - name: Template docker-compose files + ansible.builtin.template: + src: "{{ item }}.j2" + dest: ./out/{{ item }} + mode: u=rw,g=r,o=r + loop: + - git-compose.yml + - huginn-compose.yml + - hugo_kitchen-compose.yml + - journal-compose.yml + - kitchen-compose.yml + - miniflux-compose.yml + - mumble-compose.yml + - podcast-compose.yml + - rss_bridge-compose.yml + - tracker-compose.yml + - cafe_bot-compose.yaml + - docker-compose.yml + + - name: Template soundboard config + ansible.builtin.template: + src: "soundboard_config.js.j2" + dest: ./out/soundboard.git/config.js + mode: u=rw,g=r,o=r + + - name: Template bot config + ansible.builtin.template: + src: "cafe_bot.env.j2" + dest: ./out/cafe_bot.git/.env + mode: u=rw,g=r,o=r -- cgit v1.2.3