ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

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 
---

- name: "Create directory: /var/lib/pleroma"
  file:
    state: directory
    path: /var/lib/pleroma
    owner: pleroma
    group: pleroma

- name: "Copy config-file to: /etc/pleroma/config.exs" 
  template: 
    src: "{{ services.pleroma.configFile }}"
    dest: /etc/pleroma/config.exs
    mode: 0755
    owner: pleroma
    group: pleroma
  notify: "Restart pleroma"

- name: "Copy secretsContent to: /var/lib/pleroma/secret.exs"
  copy:
    content: "{{ services.pleroma.secretsContent }}"
    dest:    /var/lib/pleroma/secret.exs
    owner:   pleroma
    group:   pleroma
    mode:    0700
  notify: "Restart pleroma"