main.yaml
author Luke Hoersten <luke@hoersten.org>
Thu, 03 Jan 2019 20:46:13 -0600
changeset 69 be979818d483
parent 68 6024861525db
permissions -rw-r--r--
Lots of updates.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: setup python2
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  hosts: all
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  gather_facts: no
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
  tasks:
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
    - name: install python2
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
      become: yes
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
      raw: "apt-get install python -y"
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    11
    - name: set hostname in OS
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    12
      become: yes
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    13
      hostname: name="{{inventory_hostname}}"
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    14
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    15
    - name: change timezone to UTC
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    16
      become: yes
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    17
      timezone: name="UTC"
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    18
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    19
    - name: authorize ssh keys
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    20
      authorized_key:
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    21
        user: "ubuntu"
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    22
        key: "https://github.com/LukeHoersten.keys"
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    23
68
6024861525db Fixed port placement of multiple instances.
Luke Hoersten <luke@hoersten.org>
parents: 67
diff changeset
    24
- hosts: pleroma
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
  roles:
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    26
    - role: pleroma
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    27
      pleroma_user: "pleroma_haskell_social"
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    28
      pleroma_link_host: "haskell.social"
68
6024861525db Fixed port placement of multiple instances.
Luke Hoersten <luke@hoersten.org>
parents: 67
diff changeset
    29
      pleroma_port: 4001
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    30
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    31
- hosts: pleroma
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    32
  roles:
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    33
    - role: pleroma
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    34
      pleroma_user: "pleroma_nth_io"
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    35
      pleroma_link_host: "nth.io"
68
6024861525db Fixed port placement of multiple instances.
Luke Hoersten <luke@hoersten.org>
parents: 67
diff changeset
    36
      pleroma_port: 4000
69
be979818d483 Lots of updates.
Luke Hoersten <luke@hoersten.org>
parents: 68
diff changeset
    37
      pleroma_signup_open: "false"