Reverting branch to the original - Travis CI can't test the playbook entirelly

I can't validate the install process because the error:  "mkdir: cannot
create directory ‘/opt/zimbra/.pyenv’: Permission denied\nmkdir: cannot
create directory ‘/opt/zimbra/.pyenv’:
This commit is contained in:
Lucas Costa Beyeler 2017-02-03 23:58:42 -02:00
parent f996ae57b8
commit 56e73da07b
4 changed files with 7 additions and 21 deletions

View File

@ -6,7 +6,7 @@ python: "2.7"
sudo: true
# This playbook need to run on Ubuntu 14.04 or later
dist: trusty
dist: trust
# Install ansible
addons:
@ -24,12 +24,12 @@ install:
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
# Install ansible-commons
- ansible-galaxy install lucascbeyeler.commons
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
# Run the role/playbook with ansible-playbook.
- "ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo"
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@ -17,4 +17,5 @@ galaxy_info:
galaxy_tags:
- zimbra
- monoserver
dependencies: []
dependencies:
- { role: lucascbeyeler.commons }

View File

@ -10,7 +10,6 @@
#
# Starting the install
###################################
- include: nodistro/hostname.yml
- include: '{{ ansible_os_family }}/packages.yml'
- include: nodistro/install-zimbra.yml
- include: nodistro/install-spamassassin.yml

View File

@ -1,14 +0,0 @@
# Change the hostname and ensure the /etc/hosts has the hostname linked to the
# localhost. This is very important for some services, like Zimbra, who will
# check for the LDAP Server's IP.
- name: Correct the machine's hostname to {{ hostname }}
hostname: name='{{ hostname }}.{{ domain }}'
- name: Changing the host's file for the template
template:
src: hosts.j2
dest: /etc/hosts
owner: root
group: root
mode: 0644