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.

---

- name: setup python2
  hosts: all
  gather_facts: no
  tasks:
    - name: install python2
      become: yes
      raw: "apt-get install python -y"

    - name: set hostname in OS
      become: yes
      hostname: name="{{inventory_hostname}}"

    - name: change timezone to UTC
      become: yes
      timezone: name="UTC"

- hosts: pleroma
  roles:
    - role: pleroma
      pleroma_host: "haskell.social"
      pleroma_user: "pleroma_haskell_social"
      pleroma_port: 4001

    - role: pleroma
      pleroma_host: "nth.io"
      pleroma_user: "pleroma_nth_io"
      pleroma_port: 4000


# - hosts: haskell.social
#   roles:
#     - nginx
#     - pleroma

# - hosts: nth.io
#   roles:
#     - nginx
#     - pleroma