Skip to content

Commit 00278ec

Browse files
committed
Add Git repositories to Ansible
1 parent e3c19fb commit 00278ec

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

website.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,50 @@
3737
- podman
3838
state: present
3939

40+
# Prepare and clone Git repositories
41+
# ##################################
42+
- name: Create Git repository directories
43+
ansible.builtin.file:
44+
path: "/usr/share/caddy/{{ item }}"
45+
state: directory
46+
mode: 0755
47+
owner: caddy
48+
group: caddy
49+
loop:
50+
- mpl-brochure-site
51+
- matplotlib.github.com
52+
- basemap
53+
- cheatsheets
54+
- cycler
55+
- devdocs
56+
- governance
57+
- matplotblog
58+
- mpl-altair
59+
- mpl-bench
60+
- mpl-gui
61+
- mpl-third-party
62+
63+
- name: Clone Git repositories
64+
become: true
65+
become_user: caddy
66+
ansible.builtin.git:
67+
repo: "https://github.com/matplotlib/{{ item }}"
68+
dest: "/usr/share/caddy/{{ item }}"
69+
version: gh-pages
70+
loop:
71+
- mpl-brochure-site
72+
- matplotlib.github.com
73+
- basemap
74+
- cheatsheets
75+
- cycler
76+
- devdocs
77+
- governance
78+
- matplotblog
79+
- mpl-altair
80+
- mpl-bench
81+
- mpl-gui
82+
- mpl-third-party
83+
4084
# Caddy server setup
4185
# ##################
4286
- name: Configure Caddy

0 commit comments

Comments
 (0)