Skip to content

Commit 98c2578

Browse files
committed
Add Git repositories to Ansible
1 parent a4ae311 commit 98c2578

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

matplotlib.org.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
---
22
- hosts: website
3+
vars:
4+
repos:
5+
- mpl-brochure-site
6+
- matplotlib.github.com
7+
- basemap
8+
- cheatsheets
9+
- cycler
10+
- devdocs
11+
- governance
12+
- matplotblog
13+
- mpl-altair
14+
- mpl-bench
15+
- mpl-gui
16+
- mpl-third-party
317
tasks:
418
# Installation tasks
519
# ##################
@@ -37,6 +51,26 @@
3751
- podman
3852
state: present
3953

54+
# Prepare and clone Git repositories
55+
# ##################################
56+
- name: Create Git repository directories
57+
ansible.builtin.file:
58+
path: "/usr/share/caddy/{{ item }}"
59+
state: directory
60+
mode: 0755
61+
owner: caddy
62+
group: caddy
63+
loop: "{{ repos }}"
64+
65+
- name: Clone Git repositories
66+
become: true
67+
become_user: caddy
68+
ansible.builtin.git:
69+
repo: "https://github.com/matplotlib/{{ item }}"
70+
dest: "/usr/share/caddy/{{ item }}"
71+
version: gh-pages
72+
loop: "{{ repos }}"
73+
4074
# Caddy server setup
4175
# ##################
4276
- name: Configure Caddy

0 commit comments

Comments
 (0)