-
Notifications
You must be signed in to change notification settings - Fork 0
/
restore.yml
33 lines (31 loc) · 963 Bytes
/
restore.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# Initial setup so Ansible can actually work.
- name: Install python (required by Ansible).
gather_facts: "False"
hosts: all
become: "True"
become_method: sudo
any_errors_fatal: true
pre_tasks:
- name: "Update Apt Cache"
raw: sudo apt-get update
run_once: true
- name: "Install Python"
raw: sudo apt-get -y install python-simplejson python3 python3-simplejson python3-pip
python3-virtualenv python3-passlib python3-openssl
run_once: true
- name: Configure python and pip
raw: sudo apt-get -y purge python-simplejson && if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi &&
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python ; fi
run_once: true
# Restore HomelabOS from the most recent backup.
- hosts: all
become: true
# gather_facts: "True"
tags:
- common
- restore
roles:
- homelabos_common
- homelabos_restore
...