main.yaml
author Luke Hoersten <luke@hoersten.org>
Tue, 01 Jan 2019 21:57:11 -0600
changeset 67 bd34ae082697
parent 61 2dd82d9e2103
child 68 6024861525db
permissions -rw-r--r--
Split out nginx sites.
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
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    19
- hosts: pleroma-01
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"
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    24
      pleroma_port: 4000
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"
bd34ae082697 Split out nginx sites.
Luke Hoersten <luke@hoersten.org>
parents: 61
diff changeset
    29
      pleroma_port: 4001
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