aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_mkdocs/tasks/main.yml
blob: 83ed41bf1adcfc0fc1ba175598d9467b3a2114df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

# =========================================================================== #
#                   __                    __       __               
#       _________  / /__       ____ ___  / /______/ /___  __________
#      / ___/ __ \/ / _ \     / __ `__ \/ //_/ __  / __ \/ ___/ ___/
#     / /  / /_/ / /  __/    / / / / / / ,< / /_/ / /_/ / /__(__  ) 
#    /_/   \____/_/\___(_)  /_/ /_/ /_/_/|_|\__,_/\____/\___/____/
#
# =========================================================================== #

---
- name: Check mkdocs-material install
  pip:
    name: mkdocs-material

- name: Check mkdocs mermaid plugin install
  pip:
    name: mkdocs-mermaid2-plugin

- name: Add user mkdocs
  user:
    name: "{{ mkdocs_user }}"
    comment: "{{ mkdocs_user_comment }}"

- name: Copy syncthing systemd unit
  template:
    src: "{{ mkdocs_daemon_unit }}.service"
    dest: "{{ g_systemd_unit_directory }}"
    owner: root
    group: root
    mode: 0644

- name: Start and enable syncthing systemd unit
  systemd:
    name: "{{ mkdocs_daemon_unit }}"
    state: restarted
    daemon_reload: yes
    enabled: yes

remember that computers suck.