machine:
  environment:
    ANSIBLE_FORCE_COLOR: 1
    PYTHONUNBUFFERED: 1
  pre:
    # use aptitude to remove dependencies
    - sudo aptitude remove -y postgresql
    - sudo aptitude remove -y ~nrabbitmq
    - sudo aptitude remove -y ~nmongo
    - sudo aptitude remove -y ~nmysql-

dependencies:
  pre:
    - sudo pip install ansible
    - ansible --version
    - ansible-galaxy install -r roles/mistral/requirements.yml

test:
  pre:
    - echo localhost > inventory
  override:
    - ansible-playbook -i inventory --syntax-check playbooks/st2express.yaml
    - ansible-playbook -i inventory --connection=local -vv playbooks/st2express.yaml
    - st2 --version

machine:
  environment:
    ANSIBLE_FORCE_COLOR: 1
    PYTHONUNBUFFERED: 1
  pre:
    # use aptitude to remove dependencies
    - sudo aptitude remove -y postgresql
    - sudo aptitude remove -y ~nrabbitmq
    - sudo aptitude remove -y ~nmongo
    - sudo aptitude remove -y ~nmysql-

dependencies:
  pre:
    - sudo pip install ansible
    - ansible --version
    - ansible-galaxy install -r roles/mistral/requirements.yml

test:
  pre:
    - echo localhost > inventory
  override:
    - ansible-playbook -i inventory --syntax-check playbooks/st2express.yaml
    - sudo ansible-playbook -i inventory --connection=local -vv playbooks/st2express.yaml
    - st2 --version

Fix CircleCI tests for PostgreSQL
Fix CircleCI tests for PostgreSQL

TASK: [ANXS.postgresql | PostgreSQL | Add PostgreSQL repository preferences] ***
failed: [localhost] => {"failed": true}
msg: Destination /etc/apt/preferences.d not writable
