---
sudo: required
dist: trusty
language: python
python: "2.7"
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq python-apt python-pycurl curl ufw
install:
  - pip install ansible --upgrade
  - ansible --version
  - printf '[defaults]\nroles_path=../' >ansible.cfg
  - echo localhost > inventory
script:
  - ansible-playbook -i inventory --syntax-check --list-tasks test.yml
  - ansible-playbook -i inventory --connection=local --become -vvvv test.yml
  - ansible-playbook -i inventory --connection=local --become -vvvv test.yml
after_script:
  - prosodyctl status
  - prosodyctl check
  - prosodyctl about
  - ls -la /etc/prosody/
  - cat /etc/prosody/prosody.cfg.lua
notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/

---
sudo: required
dist: xenial
language: python
python: "2.7"
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq python-apt python-pycurl curl ufw
install:
  - pip install ansible --upgrade
  - ansible --version
  - printf '[defaults]\nroles_path=../' >ansible.cfg
  - echo localhost > inventory
script:
  - ansible-playbook -i inventory --syntax-check --list-tasks test.yml
  - ansible-playbook -i inventory --connection=local --become -vvvv test.yml
  - ansible-playbook -i inventory --connection=local --become -vvvv test.yml
after_script:
  - prosodyctl status
  - prosodyctl check
  - prosodyctl about
  - ls -la /etc/prosody/
  - cat /etc/prosody/prosody.cfg.lua
notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/

Update Travis CI to xenial
Update Travis CI to xenial
