forked from sympa-community/sympa-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 1.13 KB
/
.travis.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
dist: xenial
sudo: required
language: python
before_install:
- sudo apt-add-repository -y ppa:ansible/ansible
- sudo apt-get update
install:
- sudo apt-get install software-properties-common
- sudo apt-get -y install ansible
- sudo apt-get install python-pip
- sudo pip install --upgrade pip
- pip install python-keyczar
- sudo pip install --upgrade Jinja2
- ansible --version
script:
- ./scripts/create_new_environment.sh environments/local
- echo "localhost ansible_host=localhost" > environments/local/inventory
- echo "" >> environments/local/inventory
- echo "[sympa]" >> environments/local/inventory
- echo "localhost" >> environments/local/inventory
- echo "" >> environments/local/inventory
- echo "[postfix]" >> environments/local/inventory
- echo "localhost" >> environments/local/inventory
- echo "" >> environments/local/inventory
- echo "[apache]" >> environments/local/inventory
- echo "localhost" >> environments/local/inventory
- sed -s -i 's/local-sympa-ubuntu16/localhost/' environments/local/private/vhosts/*
- ansible-playbook site.yml --connection=local --become -i environments/local/inventory