main.yaml
author Luke Hoersten <luke@hoersten.org>
Wed, 02 Jan 2019 23:24:27 -0600
changeset 68 6024861525db
parent 67 bd34ae082697
child 69 be979818d483
permissions -rw-r--r--
Fixed port placement of multiple instances.
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
68
6024861525db Fixed port placement of multiple instances.
Luke Hoersten <luke@hoersten.org>
parents: 67
diff changeset
    19
- hosts: pleroma
60
48a3a65119d5 Initial commit.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
  roles:
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    21
    - role: pleroma
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    22
      pleroma_host: "haskell.social"
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    23
      pleroma_user: "pleroma_haskell_social"
68
6024861525db Fixed port placement of multiple instances.
Luke Hoersten <luke@hoersten.org>
parents: 67
diff changeset
    24
      pleroma_port: 4001
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    25
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_host: "nth.io"
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    28
      pleroma_user: "pleroma_nth_io"
68
6024861525db Fixed port placement of multiple instances.
Luke Hoersten <luke@hoersten.org>
parents: 67
diff changeset
    29
      pleroma_port: 4000
67
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    30
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    31
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    32
# - hosts: haskell.social
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    33
#   roles:
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    34
#     - nginx
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    35
#     - pleroma
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    36
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    37
# - hosts: nth.io
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    38
#   roles:
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    39
#     - nginx
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    40
#     - pleroma