homelabos.yml 922 Bytes
Newer Older
1 2
---

3 4 5 6 7 8 9 10 11 12 13 14
# Initial setup so Ansible can actually work.
- name: Install python (required by Ansible).
  gather_facts: no
  hosts: all
  become: True
  become_method: sudo
  pre_tasks:
    - name: 'Update Apt Cache'
      raw: sudo apt-get update
    - name: 'Install Python'
      raw: sudo apt-get -y install python-simplejson

Nick Busey's avatar
Nick Busey committed
15
# Configure the server itself
16 17 18
- hosts: all
  become: True
  gather_facts: True
19
  tags: common
20 21

  roles:
22
    # Install Docker, configure basic server settings
23
    - common
24
    # Configure a TOR hidden service for remote access without a public IP
25
    # - { role: systemli.hidden-service }
26

Nick Busey's avatar
Nick Busey committed
27 28 29 30 31 32 33 34 35
# Install and configure HomelabOS documentation
- hosts: all
  become: True
  gather_facts: True
  tags:
    - homelabos
    - docs

  roles:
36
    - docs
Nick Busey's avatar
Nick Busey committed
37

38
# Install and configure HomelabOS services
39 40 41
- hosts: all
  become: True
  gather_facts: True
Nick Busey's avatar
Nick Busey committed
42 43 44
  tags:
    - homelabos
    - deploy
45 46 47

  roles:
    - homelabos