-
Notifications
You must be signed in to change notification settings - Fork 11
/
local-setup.yml
36 lines (32 loc) · 923 Bytes
/
local-setup.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
34
35
36
# This playbook contains all tasks to setup a FSL test bench as
# virtual machine.
#
# Copyright (c) 2013-2021 Fabian Affolter <[email protected]>
#
# Licensed under CC BY 3.0. All rights reserved.
#
# Usage: sudo ansible-playbook fsl-test-bench/local-setup.yml --connection=local
---
- hosts: 127.0.0.1
connection: local
gather_facts: no
remote_user: root
vars_files:
- variables/application-versions.yml
- variables/sensitive.yml
- variables/local.yml
- variables/containers.yml
tasks:
# Virtual machine setup
# Setup Test bench connection
- include: tasks/auth-key.yml
# Runtime changes aren't detected
- name: setup ansible host file
lineinfile:
dest: /etc/ansible/hosts
regexp: '^'
insertafter: '127.0.0.1'
line: '127.0.0.1\n\n[fsl-tb]\n{{ ip }}'
handlers:
- include: handlers/system.yml
- include: handlers/services.yml